Custom task not always serialising in bound FSM

NodeCanvas Forums Support Custom task not always serialising in bound FSM

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14427
    sebjf
    Participant

    Hi,

    I create a custom ActionTask<DialogueActor> which I use as an action in an FSM node.

    My new one is a copy of the StartDialogueTree but with a couple of extra members (booleans) and a little extra functionality.

    When I replace the DialogueActor agent, the bound FSM graph does not always serialise. That is, I create the node, set the agent, and play the game or reload a scene. I then replace the agent with another reference. On reloading the scene or playing the game the original reference returns.

    A workaround is to remove the reference by unchecking the ‘is self’ flag, then rechecking it (after which the reference should be null) then setting it to the new reference and saving.

    Sj

    #14430
    Gavalakis
    Keymaster

    Hello again,

    Thank you for the report. It most than probably has to do with the fact that ObjectField assignment (either drag and drop or via the picker button), does not trigger the GUI to be marked as “.changed”. I will have to explicitely make an Undo call for this. I also plan to completely refactor the Undo/Redo in a future version at some point anyway, which will also solve this issue.

    Your workaround is fine, but you could also simply drag any node just to make the graph serialize (which could be a bit easier). I will have to fix this regardless though! 🙂

    Thank you for letting me know!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.