Search found 17 matches

by David_Nightcap
Thu Jun 17, 2021 12:41 pm
Forum: General Discussion
Topic: Proper way to load a byte array into ES3?
Replies: 2
Views: 643

Re: Proper way to load a byte array into ES3?

AHA! There it is. Yep, that was it.
Looks like I missed a few ES3 calls when I switched from the older version where I wasn't passing settings to every call.
Thanks!
by David_Nightcap
Wed Jun 16, 2021 2:30 pm
Forum: General Discussion
Topic: Proper way to load a byte array into ES3?
Replies: 2
Views: 643

Proper way to load a byte array into ES3?

So my ES3 saving/loading code has been working fine but long story short, I'm running into some bugs months after I thought it was working fine. I found I was calling ES3.SaveRaw() in the my load data function that is reading a byte array (due to platform) from disk. It's been a long time since I lo...
by David_Nightcap
Mon Mar 22, 2021 3:31 pm
Forum: General Discussion
Topic: Loading a byte array into ES3
Replies: 8
Views: 1685

Re: Loading a byte array into ES3

Also, for anybody else reading this later, disabling encryption allows the rest of the code to work fine.
by David_Nightcap
Mon Mar 22, 2021 3:16 pm
Forum: General Discussion
Topic: Loading a byte array into ES3
Replies: 8
Views: 1685

Re: Loading a byte array into ES3

Reply with more info sent to PM due to NDA fun times of PLATFORM. :-/
by David_Nightcap
Mon Mar 22, 2021 2:58 pm
Forum: General Discussion
Topic: Loading a byte array into ES3
Replies: 8
Views: 1685

Re: Loading a byte array into ES3

Oh interesting...I have encryption enabled in the editor settings but when I copied the save file from the PLATFORM, it was unencrypted. On PC, the file is encrypted. In code, the only thing I'm changing is: #if PLATFORM Debug.Log("Setting ES3 settings to PLATFORM."); settings.location = E...
by David_Nightcap
Mon Mar 22, 2021 2:30 pm
Forum: General Discussion
Topic: Loading a byte array into ES3
Replies: 8
Views: 1685

Re: Loading a byte array into ES3

Thanks for the quick reply! I tried the following: byte[] fileAsByteArray = new byte[fileSize]; //fileSize is grabbed previously via platform function call ES3.SaveRaw(fileAsByteArray, settings); // settings on this platform are Cache and DataPath But it causes this exception. Any thoughts? Argument...
by David_Nightcap
Mon Mar 22, 2021 1:45 pm
Forum: General Discussion
Topic: Loading a byte array into ES3
Replies: 8
Views: 1685

Loading a byte array into ES3

Hello! I'm trying to fix my save file loading after upgrading to a recent version of ES3. My previous code that used to work: byte[] fileAsByteArray = SecretFileReader(); //redacted due to NDA cache = new ES3File(fileAsByteArray, settings); I already have the byte array of the ES3 file from the file...
by David_Nightcap
Mon Aug 31, 2020 9:16 pm
Forum: General Discussion
Topic: Quick clarification about sync()
Replies: 7
Views: 2121

Re: Quick clarification about sync()

OMG it's so obvious. I'm so embarrassed I didn't notice this before.
I began work on this months ago and returned to it and must have just copy/pasted the ES3.Save() instead of cache.Save() as I was fleshing it out.
Sorry for the bonehead question but thank you for clearing it up!
by David_Nightcap
Mon Aug 31, 2020 7:43 pm
Forum: General Discussion
Topic: Quick clarification about sync()
Replies: 7
Views: 2121

Re: Quick clarification about sync()

Hmmm...I have no idea how it's writing to disk after every save but the fact it's not supposed to is concerning. I have no changes to ES3 locally and my code is very simple. I have the save file open in a text editor so I can watch it. Stepping through with a debugger, after every ES3.Save() it upda...
by David_Nightcap
Fri Aug 28, 2020 12:48 pm
Forum: General Discussion
Topic: Quick clarification about sync()
Replies: 7
Views: 2121

Re: Quick clarification about sync()

Hmmmm....I must not be up to date on the latest version since ES3.Location.Cache isn't found. I'm also reluctant to upgrade since I'm shipping within the next few months. Also, will ES3.Location.Cache work on consoles? Can I safely just remove the ES3.Sync() call? It seems to be writing to the file ...