Quantcast
Channel: General - Epic Developer Community Forums
Viewing all articles
Browse latest Browse all 9742

NPC Character Definition Fails Validation with Custom Behavior Referencing Asset Selector

$
0
0

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

AI

Summary

It appears that if you have a custom behavior that references any in-game assets like in the Medic Example from Epic Tutorials,
@editable
HealVolume:mutator_zone_device = mutator_zone_device{}

It will now fail if this is attached to your Character Definition

AssetCheck: Error: /VerseHell/NPCBehavior/NPC_New_Definition Illegal reference: /VerseDevices/_Verse/VNI/VerseDevices .
AssetCheck: Error: [AssetLog] /VerseHell/NPCBehavior/NPC_New_Definition : Illegally references asset /VerseDevices/_Verse/VNI/VerseDevices. . (FortValidator_IllegalReferences)

Steps to Reproduce

Tested Validation with custom verse behavior or without and with or without asset selector required. ONLY setting Default Behavior in NPC Character Definition and then setting it in the Properties NPC Override works.

Expected Result

Provide better error reporting AND / OR allow asset picker from the NPC Definition screen as right now you can’t select from there you’ll get the error below.
Please DO NOT enforce all fields to be completed as my behavior scripts use checks (if then) and not every part of my behaviors require the same assets selected.

LogProperty: Warning: Illegal TEXT reference to a private object in external package (Device_MutatorVolume_V2_C /VerseHell/LightSwitch_Test.LightSwitch_Test:PersistentLevel.Device_MutatorVolume_V2_C_UAID_FC3497696F9705E501_1781790057) from referencer (mutator_zone_device /VerseHell/NPCBehavior/NPC_New_Definition.NPC_New_Definition:CharacterModifier_GuardVerseBehavior_C_3.medic_example_0.__verse_0x89A2ED40_HealVolume). Import failed…

Observed Result

WORKAROUND:
Set Default Behavior In NPC Definition
Set Override Behavior on Asset NPC Spawner Properties
Select the items you need - IF you don’t fill in all the blank item selectors you will now get a runtime error even though validation will pass!

Platform(s)

PC Windows 11, PS5

Additional Notes

It does appear that now if you don’t set all fields in your verse script that are requesting in game assets to be set that you’ll get a verse runtime error when you goto play.

LogVerse: Error: VerseRuntimeErrors: Verse unrecoverable error: ErrRuntime_Internal: An internal runtime error occurred. There is no other information available.
Truncated callstack follows:
operator’.MoveToInternal’(:creative_movable_object?se,:tuple(),:tuple(vector3,rotation,float)) (Source: /opt/epic/offset_2/LinuxServer/FortniteGame/Plugins/VerseDevices/Source/VerseDevices/Verse/CreativeMovableObjectBase.native.verse(75,69, 76,70))
MoveTo(:vector3,:rotation,:float) (Source: /opt/epic/offset_2/LinuxServer/FortniteGame/Plugins/VerseDevices/Source/VerseDevices/Verse/CreativeObject.native.verse(41,29, 42,30))
task_medic_example$DeviceFollowCharacter:Update (Unknown source) (Source: Unknown(0,0, 0,0))
task_medic_example$OnBegin:Update (Unknown source) (Source: Unknown(0,0, 0,0))

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 9742

Trending Articles