can ES3 Save to a String variable and not just a file ?

Discussion and help for Easy Save 3
Post Reply
vortavasail
Posts: 1
Joined: Mon Aug 28, 2017 11:16 pm

can ES3 Save to a String variable and not just a file ?

Post by vortavasail »

is there an equivelant to something like this

string item = ES3.Save<GameObject> ("Gameobject" , this);
and ofc
ES3.Load<GameObject> (item );

i just want to put the data into a database.


if there is nothing like that is the tag System work in ES3 the same way it does in Es2 for Saving Game objects in Es3 to the same file ?

like this ES3.Save<GameObject> ("Gameobject" , this , "Playername inventory" +".txt?tag= normal Tag stuff ");
User avatar
Joel
Moodkie Staff
Posts: 4852
Joined: Wed Nov 07, 2012 10:32 pm

Re: can ES3 Save to a String variable and not just a file ?

Post by Joel »

Hi there,

This is not yet possible as the functionality to do it has not yet entered the beta.

However, you can save the data to file and load this as a string using ES3.LoadRawString.

In the future there will be a LoadRawString method in the ES3File class, which is the main class for managing data in memory rather than on disk.

Also just to clarify, the first parameter in the ES3.Save methods is the tag (or 'key' as it's now referred to), and the third (optional) parameter is the filename.

Please see the documentation for more information on the parameters:
http://docs.moodkie.com/easy-save-3/es3 ... /es3-save/
http://docs.moodkie.com/easy-save-3/getting-started/

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply