playMaker

Author Topic: Playmaker + Easy Save - globals got unchecked[SOLVED]  (Read 1438 times)

Happycloud

  • Playmaker Newbie
  • *
  • Posts: 3
Playmaker + Easy Save - globals got unchecked[SOLVED]
« on: May 08, 2022, 11:14:10 AM »
Hello,

I use:
Unity: 2021.2
Playmaker: 1.9.3
Easy Save 3
 
Situation:
I use unique globals (bool) for different objects. (e.g. object 1 with global_o1; object 2 with global_o2)
If a global is true, the object ll appear in level via 'Active Game object'.

When I click the object, the global sets to true. Used is Action 'Raycast' via Main Camera in Frist Person. Actually seems to work fine.
When I exit the level, I save all globals via 'Save all', Save global variables is checked.
When I load from main menu the level again, I use 'Load all', Load global variables is checked.
Save and load seems to work cause the expected objects appear after restart.

Problem:
I restart the level, e.g. 2 globals been set to true and both objects are active.
But when I click now on another object (Object 3 with global_o3) suddenly all other globals got unchecked. Only global of object 3 is set to true.
Saw the effect under 'Playmaker->Edit Window ->Global Variables'.
If I leave the game now and save, all progress would be lost.

I don't understand why the independet globals got set to false.
The objects use 'Set Bool Value' Action, but only with it's own global and only once when it's clicked.

Hope the description is good enough.

Any ideas?
Thanks for suggestions.
« Last Edit: May 11, 2022, 08:24:17 AM by djaydino »

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 824
Re: Playmaker + Easy Save - globals got unchecked
« Reply #1 on: May 08, 2022, 03:02:14 PM »
It could be caused by a spelling error. Check again your actions, if you point to the right global vars when loading values into them and, when saving, if you have properly typed different names used in the Easy Save file to serve as recipients for the values.
Easy Save can also save game objects.
https://docs.moodkie.com/easy-save-3/es3-guides/saving-loading-gameobjects-prefabs/
And scenes too

Happycloud

  • Playmaker Newbie
  • *
  • Posts: 3
Re: Playmaker + Easy Save - globals got unchecked
« Reply #2 on: May 10, 2022, 09:40:00 AM »
Thanks for your quick answer.
After your reply I was checking everything again and it was my own mistake.
Another object had marked 'every frame' and created the problem.

Topic solved.