playMaker

Author Topic: suggestions for saving Arraymaker data[SOLVED]  (Read 2809 times)

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
suggestions for saving Arraymaker data[SOLVED]
« on: January 29, 2019, 11:49:38 PM »
hi ive used Arraymaker a few times in the past, but never needed to retain data between play sessions and would like to know if there is a way of doing so, i assumed there would be an action like export/import hash table or something, but im not seeing something that does that. How are people doing this? is it a separate addon package?
« Last Edit: January 30, 2019, 02:18:49 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: suggestions for saving Arraymaker data
« Reply #1 on: January 30, 2019, 12:10:53 AM »
Hi.
Best is to use EasySave for this

You could save in playerprefs by looping thru the array and save each value separately.

Save for loading.

But playerprefs is not good for saving data, i only use it for some simple preferences like sound volume, music on/off, etc

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #2 on: January 30, 2019, 10:10:49 PM »
thank you, i am trying to do this with the Easy Save. i am a little confused by it as ive never used it before and i have a question regarding it. is the Easy Save 3 available? because i only see a folder for Easy Save 2 in my assets folder, yet i see Playmaker actions for ES2 and ES3. should there be a Easy Save 3 folder in my assets folder also?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #3 on: January 30, 2019, 10:15:57 PM »
Hi,
Not sure.
I believe you can activate easy save 3 somewhere.

But for most parts i think you wont need es3.

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #4 on: January 30, 2019, 11:00:18 PM »
thank you, i used the ES3 action because it was the only one i could find that let me specify a object, the Easy Save 2 action seen in this video https://www.youtube.com/watch?v=2WhnfayfDtg is no where to be found in the current playmaker easy save actions package on ecosystem.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #5 on: January 31, 2019, 04:47:45 AM »
Hi.
Indeed.

I know that they got updated recently, i will ask jean.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #6 on: February 01, 2019, 04:26:09 AM »
Hi,

 EasySave 3 asset folder is inside Plugins/

also, on the ecosystem, I only let easysave3 as it's the latest version so anyone starting a new project should get easysave3.

Bye,

 Jean

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #7 on: February 01, 2019, 05:40:19 PM »
hi Jean and Djaydino, thank you, are there Easy Save 3  actions for Arraymaker array lists and hash tables? i just ask because that was the initial purpose for why i asked for suggestions and i may have to ask the Easy Save developer for a refund if it does not.
« Last Edit: February 01, 2019, 07:03:30 PM by strange_aeons »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #8 on: February 02, 2019, 05:48:52 AM »
Hi.
Array maker is a custom add-on to playmaker so you probably can't ask for a refund.

But there are the array maker easy save 3 actions on the Ecosystem.

If you are missing some actions, let us know :)

strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #9 on: February 02, 2019, 05:58:46 PM »
hi Djaydino, that makes sense about the refund.

regarding the arraymaker easy save 3 actions on the ecosystem, i didnt realise but they were the ones i initially attempted to use (ES3 ArrayList Save and ES3 ArrayList Load) i have set up three buttons to test that it will save the data in the array list. the first button generates 3 random numbers and stores them in an array on another object then it saves the data using the ES3 ArrayList Save action. the second button resets the numbers in the array. the third button loads the saved numbers back into the array.

when i press the third button i get this instead of the expected saved numbers loading into the array list. i have no idea what all this red text means, but im not even certain that the save action did anything. have i used these actions incorrectly?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #10 on: February 03, 2019, 12:17:12 AM »
Hi.

From the error it gave i can see that the key was not found.
(2nd line "KeyNotFoundException")

Does the 'test' variable have a value?
and is it the same on the 'ES3 ArrayList Save' ?

The test variable must have a value and be the same for save and load, this is used to reference the save .

On the bottom left of the image below you can see a check box called 'Debug'
you can 'Check' that to see the values from your variables inside your actions




strange_aeons

  • Junior Playmaker
  • **
  • Posts: 62
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #11 on: February 03, 2019, 05:53:54 PM »
Djaydino thank you once again, i thought the "key" was like the reference on an array list and didnt realise it was a variable, so i had no value in the key~! i put a value in and then it worked as expected. feeling pretty embarrassed now, but thanks so much for the help on this :)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: suggestions for saving Arraymaker data[SOLVED]
« Reply #12 on: February 03, 2019, 10:59:36 PM »
Hi.
No problem, it happened to be also before :D