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. 

Packaging error while using setter method in blueprint

Hello! Every day I package my multiplayer game and test it with others but for some reason, today it returned me an error while packaging:

 UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
 UATHelper: Packaging (Windows (64-bit)): BUILD FAILED PackagingResults:Error: Error Unknown Cook Failure

The reason for this error was a bit above in the log:

 UATHelper: Packaging (Windows (64-bit)): Cook: LogInit:Display: LogBlueprint:Error: [Compiler WeaponBaseClass_BP] Error Can't connect pins  New Current Weapon  and  Self : PLACEHOLDER-CLASS  Weapon Base Class BP C 1 Reference is not compatible with Self Reference. from Source: /Game/blueprints/Weapons/WeaponBaseClass_BP.WeaponBaseClass_BP
 UATHelper: Packaging (Windows (64-bit)): Cook: LogInit:Display: LogBlueprint:Error: [Compiler WeaponBaseClass_BP] Error Can't connect pins  Self  and  New Current Weapon : Self Reference is not compatible with PLACEHOLDER-CLASS  Weapon Base Class BP C 1 Reference. from Source: /Game/blueprints/Weapons/WeaponBaseClass_BP.WeaponBaseClass_BP

The thing is: I have two blueprint classes. First one is a character class, which has a "CurrentWeapon" variable, which holds the reference to the instance of a child class of my WeaponBaseClass. In my character class, there is a setter method that sets the "CurrentWeapon" variable with argument name "NewCurrentWeapon". I use this setter in my weapon class. So when I connect the self-reference node to setter argument I get the error above (it wasn't there until today), but when I manually set this variable from inside my weapon class it works just fine. Note that it also compiles fine while I am in the editor.

Product Version: UE 4.16
Tags:
more ▼

asked Aug 05 '17 at 09:43 AM in Packaging & Deployment

avatar image

Hnomer
63 3 6 9

avatar image Hnomer Aug 05 '17 at 07:52 PM

Ok so I managed to find a workaround: In that setter method, I now take the argument as an Actor class reference, instead of my custom WeaponBaseClass_BP, then inside setter, I use cast. The functionality was restored. BUT THE BUG IS STILL PERSISTS!!! Please, Staff, address this bug.

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

0 answers: sort voted first
Be the first one to answer this question
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