playMaker

Author Topic: Easy Save not saving Playmaker Float Value  (Read 1836 times)

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Easy Save not saving Playmaker Float Value
« on: June 13, 2022, 10:01:23 AM »
Wondering if anyone has experience with Easy Save and Playmaker?

If so, I'm just trying to Save and Load a simple global float variable. Screenshots attached. I have a global float variable called moneyAdd. So you can see it gets added to Save and Load but they're not firing. And when I quit and play again, the float value does not get saved.

I tried asking the Easy Save folks but they won't help with Playmaker logic.

Thank you!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Easy Save not saving Playmaker Float Value
« Reply #1 on: June 13, 2022, 10:39:50 AM »
Hi.
Try setting save above the set text variable.

Also did you Save before Load.

On Load you can set a default variable (of nothing was saved yet it will set that value)

If you use non global does it work? (It should work with globals tho)

What unit/playmaker version are you using?

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Re: Easy Save not saving Playmaker Float Value
« Reply #2 on: June 13, 2022, 02:44:04 PM »
Hey thanks for the reply.

I set the Save above the set text and still not saving.

In my screenshots you can see that I have Save before Load...but is that how it's supposed to be setup? I tried Easy Saves examples for PM and still couldnt get this to save, and I have the Easy Save manager in my scene.

I tried setting a default variable for Load as well....

I also tried a non-global and still not working...

The Save and Load action just arent turning green and arent loading the float value.

I'm using PM 1.9.5 and Unity 2021.3.4

Any chance you could send me a few screenshots of how to set this up? I'd be so grateful!

BTW - I should also mention that I cant even get Save/Load to work using Playmaker PlayerPrefs. They dont fire! What could be causing these issues? The PlayerPrefs are greyed out and the only ones that dont fire.
« Last Edit: June 13, 2022, 03:35:04 PM by Shizane »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Easy Save not saving Playmaker Float Value
« Reply #3 on: June 13, 2022, 04:21:55 PM »
HI.
You should always load 1st and you can set a default variable if nothing was saved yet.

Then change the value and save.

Also you might want to reset the save if you have been playing around with the settings.
To do that go to assets/Easy Save 3/Open ES 3 window
Then on tools click on open persistent Data Path and delete what is in the folder (or use Clear Persistent Data Path)

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Re: Easy Save not saving Playmaker Float Value
« Reply #4 on: June 13, 2022, 05:11:19 PM »
Thanks but how do you set this up? I've been trying for hours and nothing gets saved when I hit play again.

I did what you mentioned, made Load first, and cleared the data as well. Check out my new screenshots.

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Re: Easy Save not saving Playmaker Float Value
« Reply #5 on: June 14, 2022, 10:56:53 AM »
I've finally got this working...thanks so much for the help DJay.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Easy Save not saving Playmaker Float Value
« Reply #6 on: June 15, 2022, 05:20:32 PM »
HI.
No Problem :)