Bug report: Calling Application.isPlaying in ActionListPlayer

Forums 💬 NodeCanvas ⚙️ Support Bug report: Calling Application.isPlaying in ActionListPlayer

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17984
    aronze
    Participant

      Produced unity version: Unity5.5.2p4

      When calling ActionListPlayer.OnAfterDeserialize, following error message occurred.

      [Error] get_isPlaying is not allowed to be called during serialization, call it from Awake or Start instead. Called from MonoBehaviour ‘ActionListPlayer’ on game object ‘GameObject’.
      See “Script Serialization” page in the Unity Manual for further details.
      0. UnityEngine.Application.get_isPlaying()
      1. BBParameter.set_bb() Assets/ParadoxNotion/NodeCanvas/Framework/Runtime/Variables/BBParameter.cs:164
      2. BBParameter.SetBBFields() Assets/ParadoxNotion/NodeCanvas/Framework/Runtime/Variables/BBParameter.cs:54
      3. Task.set_blackboard() Assets/ParadoxNotion/NodeCanvas/Framework/Runtime/Tasks/Task.cs:331
      4. Task.SetOwnerSystem() Assets/ParadoxNotion/NodeCanvas/Framework/Runtime/Tasks/Task.cs:169
      5. ActionListPlayer.SendTaskOwnerDefaults() Assets/ParadoxNotion/NodeCanvas/Modules/ActionListPlayer/ActionListPlayer.cs:71
      6. ActionListPlayer.set_actionList() Assets/ParadoxNotion/NodeCanvas/Modules/ActionListPlayer/ActionListPlayer.cs:38
      7. ActionListPlayer.OnAfterDeserialize() Assets/ParadoxNotion/NodeCanvas/Modules/ActionListPlayer/ActionListPlayer.cs:28

      I want to be fixed this issue next NodeCanvas release. Thanks:D

      #17987
      aronze
      Participant

        Before NodeCanvas updated, I’m fixed BBParameter.cs:125, 164 lines like this:

        // if (!Application.isPlaying){
        if (!JSONSerializer.applicationPlaying){

        Thanks.

        #17986
        Gavalakis
        Keymaster

          Hello,
          That’s weird, I don’t get this when using ActionList, but your fix is indeed fine and correct. 🙂 Does this always happens?
          Thanks.

          #17985
          aronze
          Participant

            Yes, It’s always happened at Unity5.5.2p4. I guesss, if you don’t get this error message because it is relative of Unity specific version.

            Thanks.

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