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.
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…
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”]
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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
///Deserialize the blackboard from json
//We deserialize ON TOP of existing variables so that outside references to them are stay intact.
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.