x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

no member named 'GetSourceSize' in 'UPaperSprite' when packaging for android

Hey guys,

I'm trying to package my game for Android to test some features on mobile but I get hit by this error when trying to package it.

I am using a plugin for brashmonkey's Spriter program(Found Here) which has been made in 2014.

The plugin probably uses old code which isn't used by 4.17 anymore, but I don't know what to change the used functions in.

These are the errors I'm getting when trying to package:

Package Log

But summarized these are the errors I'm getting:

 error: no member named 'GetSourceData' in 'UAssetImportData'
                 OutTags.Add( FAssetRegistryTag(SourceFileTagName(), AssetImportData->GetSourceData().ToJson(), FAssetRegistryTag::TT_Hidden) );
 
  error: no member named 'GetSourceSize' in 'UPaperSprite'
                                               const float PivotInPixelsX = SpriteFile>GetSourceSize().X * Keys[0]->PivotX;
 
  error: no member named 'GetSourceSize' in 'UPaperSprite'
                                               const float PivotInPixelsY = SpriteFile>GetSourceSize().Y * (1.0f - Keys[0]->PivotY);
 
 error: no member named 'SetPivotMode' in 'UPaperSprite'
                                               SpriteFile->SetPivotMode(ESpritePivotMode::Custom, FVector2D(PivotInPixelsX, PivotInPixelsY));
 
 ERROR: UBT ERROR: Failed to produce item: C:\Users\sembe\Documents\repositories\angelolauncher\AngeloLauncher\Plugins\Spriter-master\Binaries\Android\UE4-Spriter-armv7-es2.a
 

These all refer to the spriter plugin I'm using.

Any help is appreciated!

Product Version: UE 4.17
Tags:
more ▼

asked Jan 10 '18 at 12:59 PM in Packaging & Deployment

avatar image

EvilMyself
1 1

avatar image falola Jan 20 '18 at 11:33 AM

i'm getting the same error with 4.18.3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

That function is located within a #if WITH_EDITOR in the source code, so I guess that means it can't compile outside of the editor.

paperSprite->GetRenderBounds() seems to work though.

more ▼

answered Jun 02 '19 at 03:29 AM

avatar image

bigbadbogie
6 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question