loadrawstring

Discussion and help for Easy Save 3
Post Reply
fahrulmr
Posts: 5
Joined: Sat Feb 27, 2021 12:35 pm

loadrawstring

Post by fahrulmr »

hi,

i have some issue on loadrawstring
so i succesfull to save data but i want to load this data(from datapersistentpath) to 3D object

my goal is use easy save to load this coordinat and 3D cube moving rotate follow json file

i use ES3.loadrawstring but still error to load directly
am I wrong to use loadrawstring? or should I use LoadInto?
Attachments
issueloadrawstring.PNG
issueloadrawstring.PNG (174.29 KiB) Viewed 880 times
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: loadrawstring

Post by Joel »

Hi there,

Please could you show me the code you're using and any errors you're getting?

Note that LoadRawString just loads the data from the file as a string. Because the data is in your own JSON format, it would be up to you to parse this JSON data and apply it to your objects.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
fahrulmr
Posts: 5
Joined: Sat Feb 27, 2021 12:35 pm

Re: loadrawstring

Post by fahrulmr »

"LoadRawString just loads the data from the file as a string"

what do you mean this?? i dont understand

can you show me how to use loadrawstring
with empty scene, i dont find any video tutorial
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: loadrawstring

Post by Joel »

Hi there,

LoadRawString loads the data within the file as a string. So in your case the result of LoadRawString will return your entire JSON data as a string. It will not parse that JSON data.

As the JSON data is in your own format you would need to parse this yourself.

You can find more information in the Raw Strings guide:
https://docs.moodkie.com/easy-save-3/es ... ytes-file/

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