When attempting to use custom verse behavior for a NPC Character Definition, it will fail to validate when launching a session from the UEFN editor. See error below:
Create a new NPC Character Definition and set the behavior as a custom verse behavior file. Attempt to validate the character definition or just launch a session, then you will get the following error.
Expected Result
The NPC Character Definition would be valid and the session would successfully launch.
I was able to isolate the issue. It is due to accessing a creative_device inside of the npc_behavior class.
Is there a reason why this has changed and is no longer possible? It really cuts down on the innovation that can happen with the npc_behavior class as now it is isolated from other verse classes that can be interacted with to create complex and innovative player experiences.
The flip side of this bug is that NPCs without fully-populated Override Behavior scripts simply no longer spawn since 29.00 and 29.10.
(For example, if you previously used the canned âGuardâ behavior as a starting point inside of a custom NPC Character Definiion, but lots of modifiers, and didnât want to hand-code a Verse Override for every one of them⌠Those NPC simply donât spawn at all since 29.00.)