NPC Character Definition assets fail to validate when using a custom verse behavior with the "event" type referenced

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Assets

Summary

If you use a custom verse behavior/class inside a NPC Character Definition asset, and your custom verse class for that behavior has a type “event” ANYWHERE within the class (including inside references to other classes) the NPC Character Definition will FAIL to validate!!!

Steps to Reproduce

To reproduce this, copy & paste the class below into a verse file, then build verse, and create a NPC Character Definition asset and place this class into the “NPCBehavior Script” slot after setting behavior to be “verse behavior”. Try these steps, then go to the class and remove the event type constant variable. You’ll see it then validates.
invalid_npc_behavior<public> := class(npc_behavior){ BasicEvent : event() = event(){} }

Expected Result

The expected result is that the NPC Character Definition asset should validate

Observed Result

The NPC Character Definition fails to validate when it should

Platform(s)

PC

The status of FORT-725913 incident has been moved from ‘In Testing’ to ‘Closed’. Resolution Reason: ‘Fixed’

I am getting the same error, cannot upload the project because of this validation failing

this is related to Broken NPC Spawner - custom verse behevior

we need someone to shed a light on this… thanks in advance

1 Like