Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Nog on March 13, 2015, 02:21:18 AM

Title: XML Save and Load
Post by: Nog on March 13, 2015, 02:21:18 AM
Hello Everyone,

Is it possible to use an XML file and DataMaker XML to create a save and load system, so the player can save his or her progress while they are playing a game?

Thank you for any information.

Nog


 
Title: Re: XML Save and Load
Post by: jeanfabre on March 13, 2015, 02:27:26 AM
Hi,

 yep, totally. You would need to use PlayerPrefs to save your xml as a string and store it on the user device, then XmlMaker can create nodes, edit them etc, and then saving it back as a string to be stored in that player pref.

 Bye,

 Jean
Title: Re: XML Save and Load
Post by: Nog on March 14, 2015, 02:47:26 AM
Hello,

How do you create and save XML files with PlayerPrefs? I believe the XML Select Nodes action can be used to extract data from the XML file using the Xpath query, but how do you save data to XML files?

Thank you for any help.

Nog
Title: Re: XML Save and Load
Post by: jeanfabre on March 18, 2015, 02:23:15 AM
Hi,

 Can you bump me beginning of next week if I haven't come up with a sample to demonstrate it.

 Bye,

 Jean
Title: Re: XML Save and Load
Post by: Nog on March 18, 2015, 11:31:47 AM
Will do.

Thank you for help.

Nog
Title: Re: XML Save and Load
Post by: Nog on March 23, 2015, 03:46:25 PM
Bump!
Title: Re: XML Save and Load
Post by: jeanfabre on March 24, 2015, 04:06:53 AM
Hi,

 On the case, wrapping up the demo and will push a new update with this demo.

 Bye,

 Jean
Title: Re: XML Save and Load
Post by: Nog on March 24, 2015, 04:33:15 PM
That sounds fantastic! I can't wait to try it out.

Thank you,

Nog
Title: Re: XML Save and Load
Post by: jeanfabre on March 27, 2015, 03:55:18 AM
Hi,

I have pm you with a early build. I need to go over all samples to clean them up before making a public release.

 Bye

 Jean
Title: Re: XML Save and Load
Post by: Nog on March 27, 2015, 09:45:29 PM
Thank you!
Title: Re: XML Save and Load
Post by: PlaymakerNOOB on March 28, 2015, 11:09:40 PM
Any chance that this would be added to be a part of 1.8's release?
Title: Re: XML Save and Load
Post by: jeanfabre on March 29, 2015, 07:49:45 AM
Hi,

I don't think this is the plan to put more in, at least on the front.


 Bye,

 Jean
Title: Re: XML Save and Load
Post by: lkmad on April 20, 2015, 12:00:35 PM
I'd like to also see this if possible! :) complete newbie and been pulling my hair for days trying to figure out how to get a database of sorts, working.

thanks!