playMaker

Author Topic: DataMaker XML Save In Proxy does not work with In Memory  (Read 452 times)

Padenlee

  • Junior Playmaker
  • **
  • Posts: 57
  • You can't hit what you don't shoot for!
    • View Profile
DataMaker XML Save In Proxy does not work with In Memory
« on: June 10, 2019, 10:33:57 AM »
Hello great PlayMaker community!

I'm using In Memory for everything in XML. I'm wanting to save the XML on device and then load it again during start of next play session. I believe XML Save To Proxy does not work as intended with In Memory selected or I may have my logic wrong. Here is the logic:
-Paden Pierry
@padenpierry
Apple inc.'s first TV show, EP 1.
Game Dev since 2007
Coolest client: Bridgestone

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4615
    • View Profile
    • jinxtergames
Re: DataMaker XML Save In Proxy does not work with In Memory
« Reply #1 on: June 11, 2019, 06:24:36 AM »
Hi.
Save in memory, will only save during current game session.

and i think same goes for the Save to Proxy.

Maybe You can use XmlProxyGetXmlAsString then save the string (easy save / playerprefs)

and after you can load the string and use that as reference

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: DataMaker XML Save In Proxy does not work with In Memory
« Reply #2 on: June 12, 2019, 04:22:20 AM »
Hi,

 yes, "in memory" only works at runtime. you need to save xml as string inside player prefs.

 Check out the meface sample on the ecosystem, it shows how to do that.

 Bye,

 Jean

Padenlee

  • Junior Playmaker
  • **
  • Posts: 57
  • You can't hit what you don't shoot for!
    • View Profile
Re: DataMaker XML Save In Proxy does not work with In Memory
« Reply #3 on: June 14, 2019, 08:29:12 AM »
Phew, this one took me a few minutes to figure out o_O'

Thank for the reassurance I'm not crazy djaydino :)

After loading up the MeFace example (Thanks for the suggestion Jean) from the Ecosystem and seeing the same action structure I was creating working in that example, I knew there had to be something wrong on my end. I rebuilt and rebuilt the action logic until I found the incredible subtle reason why I could not save to an XML Proxy when I tried to recreated the MeFace logic.

With the action Xml Save In Proxy, the Store Reference field can not be ticked for user input and left blank, It must be unticked and left as None.

See attached image.

Also, In Memory now functions as intended.

Thanks again everyone for the assistance! Go team Playmaker!
-Paden Pierry
@padenpierry
Apple inc.'s first TV show, EP 1.
Game Dev since 2007
Coolest client: Bridgestone

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14692
  • Official Playmaker Support
    • View Profile
Re: DataMaker XML Save In Proxy does not work with In Memory
« Reply #4 on: June 17, 2019, 01:05:33 AM »
Hi,

 Ah yes, I have made a check for this and will show an error "You must pick either storeReference or xmlSource. one them needs to be set to 'None'" when that's the case, this way you won't get into this trouble.

the change is on the ecosystem, just redownload DataMaker.

 Bye,

 Jean