get wrong varible after load back the blackboard from playerprefs

Forums 💬 FlowCanvas ⚙️ Support get wrong varible after load back the blackboard from playerprefs

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #22850
    nicoyiqi
    Participant

      hi, I notice there is a bug that get a incorrect varible after use blackboard.load() method.

      [attachment file=”save and load.jpg”]

      I suggest that we can customize the sequence of the flowscript asset defined blackboard parameters, so that after creat defined blackboadr variables on a new gameobject still remain the same sequence as flowscript asset.

      [attachment file=”asset parameter.jpg”]

      sorry for my bad english.

      #22857
      nicoyiqi
      Participant

        re-upload first image

        [attachment file=”save and load.jpg”]

        #22856
        rixter757
        Participant

          Hi nicoyiqi,

          Can I ask you where you found the “Save” and “Load” functions? Maybe these are from EasySave 3rd party?

          I think you need to move the variable to before the call to save, as per attached. The nodes work from left to right. I might be wrong, but it’s worth a try until Nuverian replies.

          Edit: sorry, I was wrong, your code is fine. Over to Nuv…

          Thanks,

          Rix

          #22855
          nicoyiqi
          Participant

            hi,rixter757.

            I do not use EasySave, I use reflection blackboard class method.
            [attachment file=”save.jpg”]

            this method can save and load all parameters of the blackboard. I find this method useful, but after load the value has not changed, I think it should be there is a bug.

            There is no problem when I use write code to save and load blackboard variables,
            [attachment file=”save3.jpg”]

            but using flowscript with the same logic, the result is wrong;
            [attachment file=”save2.jpg”]

            #22854
            Gavalakis
            Keymaster

              Hello,

              Can you please confirm that the code in Blackboard.cs, Deserialize method at line #147 looks like the following and if not replace the code with this one and let me know if it works for you:

              Thanks

              #22853
              rixter757
              Participant

                Hi nicoyiqi,

                Thanks very much for giving me that information, it was really helpful. I posted a new thread based on this, hopefully it helps out others too 🙂

                Rix

                #22852
                rixter757
                Participant

                  Gav,

                  I had made your code change manually in the previous build, but it looks like you didn’t include it with the new build as mine was back to the older version following upgrade.

                  Rix

                  #22851
                  nicoyiqi
                  Participant

                    hi,Gavalakis. I replace this code and it works. thanks.

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