playMaker

Author Topic: (Solved) ArrayMakerEasySave3 vs ArrayMaker - what's the difference  (Read 1099 times)

Aaddiction

  • Full Member
  • ***
  • Posts: 166
In the Ecosystem there are two packages for ArrayMaker: ArrayMakerEasySave3 vs ArrayMaker. What's the difference between the two? One works with ES3 and the other does not?

How to save a Playmaker Array List Proxy if I don't want to use EasySave 3?
When I set an index at the Array and I load another scene, when I come back the information I saved in the array is gone, because the object holding the array was destroyed. I don't have such problem with default Playmaker arrays which are in the global variables.

Thank you.
« Last Edit: February 07, 2022, 04:04:37 AM by Aaddiction »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: ArrayMakerEasySave3 vs ArrayMaker - what's the difference
« Reply #1 on: February 06, 2022, 08:29:27 AM »
Hi.
ArrayMakerEasySave3 are just extra actions for the Easy Save 3 Asset.

If you only to 'Save' during a game session you can make a game object (call it 'Meta Data' for example)
Then set a Global Variable (Game Object) to Reference it.

On start 1st set a 'Singleton Manager' Action and set a reference name.
Then set a 'Dont Destroy On Load' action
Then set 'Get Owner' and connect to the global variable.

now the object is accessible and will not get destroyed when changing scenes.

The Singleton makes sure that there is no duplicate of this object,
for example if you load to the scene where you created the "Meta Data"
Dont Destroy On Load will place it in a separate scene that will persists when changing scenes.

Now you can set Array Lists / Hash Tables on this "Meta Data" object
Also you can set Fsm(s) to hold variables and use Get/Set Fsm actions to Get/Set its data

to load/save with player prefs for example, you will need to loop thru the array and load save each index separately.

i strongly suggest though, getting Easy save 3 if you can.
I have it for years now and use it in all my projects.

Aaddiction

  • Full Member
  • ***
  • Posts: 166
Re: ArrayMakerEasySave3 vs ArrayMaker - what's the difference
« Reply #2 on: February 06, 2022, 10:14:09 AM »
Thanks a lot. I will try I think I got ES3 to work.

I have another issue. I'm trying to get a float from an array and store in a float value, but I get the following error:

The fsmVar value <System.Single> doesn't match the value <System.Int32> on stateperfect la int on fsm:FSM on GameObject:top-speed-stat

Cannot understand what's the issue here.
« Last Edit: February 06, 2022, 10:15:55 AM by Aaddiction »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: ArrayMakerEasySave3 vs ArrayMaker - what's the difference
« Reply #3 on: February 06, 2022, 06:52:53 PM »
Hi.
is this from an array list or build in array.
it points out a format issue
what action are you using and if the array is populated @runtime how are you populating.

Aaddiction

  • Full Member
  • ***
  • Posts: 166
Re: ArrayMakerEasySave3 vs ArrayMaker - what's the difference
« Reply #4 on: February 07, 2022, 04:04:22 AM »
Hi.
is this from an array list or build in array.
it points out a format issue
what action are you using and if the array is populated @runtime how are you populating.

I mixed they save and load keys, this where the error came from. :)