Reply To: C# Event driven FSM no longer works?

Forums 💬 NodeCanvas ⚙️ Support C# Event driven FSM no longer works? Reply To: C# Event driven FSM no longer works?

#19184
awsullivan
Participant

    Hehe… Kinda funny that you don’t allow FSM attachments that are generated by your own software. 😉

    Here is the raw text from the FSM export.

    {
    “version”: 2.0,
    “type”: “NodeCanvas.StateMachines.FSM”,
    “name”: “FSM”,
    “comments”: “”,
    “translation”: {
    “x”: -5000.0,
    “y”: -5000.0
    },
    “nodes”: [
    {
    “_actionList”: {
    “executionMode”: “ActionsRunInParallel”,
    “actions”: [
    {
    “waitTime”: {
    “_value”: 5.0,
    “_name”: null
    },
    “finishStatus”: “Success”,
    “_isActive”: true,
    “overrideAgent”: null,
    “$type”: “NodeCanvas.Tasks.Actions.Wait”
    }
    ],
    “_isActive”: true,
    “overrideAgent”: null
    },
    “_repeatStateActions”: false,
    “_transitionEvaluation”: “CheckContinuously”,
    “_collapsed”: false,
    “_position”: {
    “x”: 5430.0,
    “y”: 5040.0
    },
    “_name”: null,
    “_tag”: null,
    “_comment”: null,
    “_isBreakpoint”: false,
    “$type”: “NodeCanvas.StateMachines.ActionState”,
    “$id”: “1”
    },
    {
    “_actionList”: {
    “executionMode”: “ActionsRunInParallel”,
    “actions”: [
    {
    “functionWrapper”: {
    “result”: {
    “_value”: null,
    “_name”: “”
    },
    “_targetMethod”: {
    “_baseInfo”: “TestScript|Dock”,
    “_paramsInfo”: “”
    },
    “$type”: “NodeCanvas.Framework.Internal.ReflectedFunction1[[System.Collections.IEnumerator, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]”
    },
    “_isActive”: true,
    “overrideAgent”: null,
    “$type”: “NodeCanvas.Tasks.Actions.ExecuteFunction”
    }
    ],
    “_isActive”: true,
    “overrideAgent”: null
    },
    “_repeatStateActions”: false,
    “_transitionEvaluation”: “CheckContinuously”,
    “_collapsed”: false,
    “_position”: {
    “x”: 5580.0,
    “y”: 5220.0
    },
    “_name”: null,
    “_tag”: null,
    “_comment”: null,
    “_isBreakpoint”: false,
    “$type”: “NodeCanvas.StateMachines.ActionState”,
    “$id”: “5”
    },
    {
    “_actionList”: {
    “executionMode”: “ActionsRunInParallel”,
    “actions”: [
    {
    “functionWrapper”: {
    “result”: {
    “_value”: null,
    “_name”: “”
    },
    “_targetMethod”: {
    “_baseInfo”: “TestScript|Undock”,
    “_paramsInfo”: “”
    },
    “$type”: “NodeCanvas.Framework.Internal.ReflectedFunction
    1[[System.Collections.IEnumerator, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]”
    },
    “_isActive”: true,
    “overrideAgent”: null,
    “$type”: “NodeCanvas.Tasks.Actions.ExecuteFunction”
    }
    ],
    “_isActive”: true,
    “overrideAgent”: null
    },
    “_repeatStateActions”: false,
    “_transitionEvaluation”: “CheckContinuously”,
    “_collapsed”: false,
    “_position”: {
    “x”: 5835.0,
    “y”: 5370.0
    },
    “_name”: “sdfsdf”,
    “_tag”: null,
    “_comment”: null,
    “_isBreakpoint”: false,
    “$type”: “NodeCanvas.StateMachines.ActionState”,
    “$id”: “11”
    }
    ],
    “connections”: [
    {
    “_condition”: null,
    “_infoExpanded”: true,
    “_sourceNode”: {
    “$ref”: “1”
    },
    “_targetNode”: {
    “$ref”: “5”
    },
    “_isActive”: true,
    “$type”: “NodeCanvas.StateMachines.FSMConnection”
    },
    {
    “_condition”: {
    “targetType”: “TestScript”,
    “eventName”: “Docked”,
    “_invert”: false,
    “_isActive”: true,
    “overrideAgent”: null,
    “$type”: “NodeCanvas.Tasks.Conditions.CheckCSharpEvent”
    },
    “_infoExpanded”: true,
    “_sourceNode”: {
    “$ref”: “5”
    },
    “_targetNode”: {
    “$ref”: “11”
    },
    “_isActive”: true,
    “$type”: “NodeCanvas.StateMachines.FSMConnection”
    },
    {
    “_condition”: {
    “targetType”: “TestScript”,
    “eventName”: “UnDocked”,
    “_invert”: false,
    “_isActive”: true,
    “overrideAgent”: null,
    “$type”: “NodeCanvas.Tasks.Conditions.CheckCSharpEvent”
    },
    “_infoExpanded”: true,
    “_sourceNode”: {
    “$ref”: “11”
    },
    “_targetNode”: {
    “$ref”: “5”
    },
    “_isActive”: true,
    “$type”: “NodeCanvas.StateMachines.FSMConnection”
    }
    ],
    “primeNode”: {
    “$ref”: “1”
    },
    “canvasGroups”: null,
    “localBlackboard”: {
    “_name”: “Local Blackboard”,
    “_variables”: [],
    “$type”: “NodeCanvas.Framework.Internal.BlackboardSource”
    }
    }