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"

Custom AnimGraph Node not working on Standalone Game or Packaged Build

Gretings, I made a Custom AnimGraph Node, properly separating it into the Runtime and Editor Modules, and having it work as intended. That was until I tried testing it as a Standalone Game, the code inside the Custom Node seems to just not be executing, the skeletal mesh just stands in its reference pose, I also have various AddOnScreenDebugMessage that don't show up either.

The project Packages without errors, but when launching the executable I get the same behaviour.

To test If I made a programming error inside my Node's h or cpp files, I made a new custom AnimGraph Node where I just copy pasted the code from the TwoWayBlend AnimGraph Node. I am still getting the same behaviour in this new node, where it works as intended inside editor but not in Packaged builds or in Standalone Game mode.

After this I though I made a mistake in the implementation of modules and found in the AnswerHub this Question

but its solution of manually implementing the modules just causes a packaging error, and the same still happens in standalone game mode. Here I leave the code inside the Game.Build.cs file

 using UnrealBuildTool;
 
 public class PackTest : ModuleRules
 {
     public PackTest(TargetInfo Target)
     {
         PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "AnimGraphRuntime" });
     }
 }
 

and the GameEditor.Build.cs

 using UnrealBuildTool;
 
 public class PackTestEditor : ModuleRules
 {
 
     public PackTestEditor(TargetInfo Target)
     {
         PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "PackTest", "UnrealEd","AnimGraph",
                 "BlueprintGraph"});
     }
    
 }

Any help answering this question will be greatly apreciated.

Edit:

Seems like this was a bug for some time UE-22734

it says that it got resolved in january of 2016, but I'm experiencing the exact same circumstances described in it, so is it still a bug or is my code wrong?

Product Version: UE 4.15
Tags:
more ▼

asked Apr 21 '17 at 05:37 PM in C++ Programming

avatar image

Hethger
13 3 5 8

avatar image kamrann Apr 24 '17 at 08:21 AM

The issue you linked is marked as resolve but 'won't fix'. No info why, but from the output it looks like they had an editor module dependency in runtime code, so perhaps the issue was unrelated.

Maybe post links to your full log output (packaging log and also packaged build execution log), unless you're certain there is nothing related in either of them?

I haven't done custom anim graph nodes before, but if you see this issue even when duplicating an engine node, the only thing I can think of is perhaps it's related to module load order?

I'd try debugging the blueprint compilation, you should see your custom node being processed here. Though I don't know if this gets rerun specifically during packaging.

Then at runtime, you can check if it's being found here. You probably need a source engine install to debug this stuff, but it would at least let you know where the data is getting lost.

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

2 answers: sort voted first

I ended up redoing everything from scratch in a "cleaner" way, and also tweaking some things, which turned out to work. If anyone is also banging his head doing Custom AnimGraph Nodes, I share my insights on the following forum Post

more ▼

answered Apr 25 '17 at 05:49 PM

avatar image

Hethger
13 3 5 8

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

Hello,

I looked into this for you and the bug was closed as won't fix because the engineers know that this works in other projects. They suggested looking at "Platformer Game" as an example.

Hope this helps.

more ▼

answered Apr 24 '17 at 09:32 PM

avatar image

ImVawx ♦♦ STAFF
6.8k 114 18 127

(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