How to store the cache file?

Discussion and help for Easy Save 3
Post Reply
doodlinbee
Posts: 23
Joined: Sat Sep 05, 2020 12:53 pm

How to store the cache file?

Post by doodlinbee »

I create a setting to store in the cache

Code: Select all

ES3Settings settings = new ES3Settings(ES3.Location.Cache);
I add stuff to the cache

Code: Select all

ES3.Save("aKey", 1, settings);
How do I then store the content of the cache in two files named "save1" and '"save2"?
I expected this to work:

Code: Select all

ES3.StoreCachedFile("save1");
ES3.StoreCachedFile("save2");
It doesn't, and throws a FileNotFoundException. But I actually want to create those files from the cache.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: How to store the cache file?

Post by Joel »

Hi there,

You should use the same filename when saving to the cache as you use when storing the cache. As you haven’t specified a filename when saving to the cache, you shouldn’t specify one when storing the cache as this indicates that you’re using the default filename.

If you want to store two separate files in the cache you would need to have separate ES3.Save calls for each.

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