Search found 4 matches

by Pil.0
Sat Jan 30, 2021 9:08 pm
Forum: General Discussion
Topic: Saving from Cache to specific file path?
Replies: 7
Views: 1866

Re: Saving from Cache to specific file path?

Ok, I think I've got this working, but would love confirmation that this is indeed utilizing the cache correctly. var settings = new ES3Settings(ES3.Location.Cache); ES3.Save<int>("myFavInt", 42, "Slot1.es3", settings); ES3.StoreCachedFile( "Slot1.es3"); The element I w...
by Pil.0
Sat Jan 30, 2021 6:16 pm
Forum: General Discussion
Topic: Saving from Cache to specific file path?
Replies: 7
Views: 1866

Re: Saving from Cache to specific file path?

As per your recommendation I've changed the Tools > Easy Save 3 > Settings -> Location to "Cache" My save code is: ES3.Save<int>("myFavInt", 42, saveSlotFileString); ES3.StoreCachedFile(saveSlotFileString); then, when I'm loading that save game: int foo = ES3.Load<int>("myFa...
by Pil.0
Sat Jan 30, 2021 4:38 pm
Forum: General Discussion
Topic: Saving from Cache to specific file path?
Replies: 7
Views: 1866

Re: Saving from Cache to specific file path?

Hi Joel, Thanks for the quick response! However I still don't understand how this would work... Doesn't the line ES3.Save("myKey", myValue, "myFileName.es3"); Save directly to the file, and not the cache? This was what my original code looked like. I believe my confusion is comin...
by Pil.0
Fri Jan 29, 2021 10:39 pm
Forum: General Discussion
Topic: Saving from Cache to specific file path?
Replies: 7
Views: 1866

Saving from Cache to specific file path?

I'm trying to refactor my save code to use the technique outlined on the Improving Performance page but I'm hitting a snag. I can't figure out how to save to a specific file path with this method. The user is allowed to save in three separate save slots, which I'm storing as 3 separate files. Prior ...