I'm simply trying to load ES2 generated saved file from the Resources folder, but with no luck. I've searched on the forum for help and this is the closest related post I found:
http://www.moodkie.com/forum/viewtopic. ... urces#p601, but it doesn't solve my problem.
I sent you an email previously (prior to purchasing ES2) and you sent me this example:
Code: Select all
string myString = ES2.Load<string>("myFile.bytes?tag=myTag&savelocation=resources");
I cannot get it to work and I'm wondering what I'm missing. I have confirmed that I can actually save and load a file, but only using the default settings (on my machine the file gets saved to an AppData directory on my Windows machine via the Application.persistentDataPath default). The save call I make looks like this:
Code: Select all
ES2.Save("test", "myTestFile.bytes?tag=myTag");
What I did next was manually move that file into my
Resources folder in my project (from what I can understand this is the only way to get an ES2 saved file into that folder as saving to that folder doesn't work). I then try to load from the Resources folder via:
Code: Select all
string myString = ES2.Load<string>("myTestFile.bytes?tag=myTag&savelocation=resources");
but I get the error
ES2NotFoundException: The data, tag, file or folder you are looking for does not exist. Please ensure that ES2.Exists(string identifier) returns true before calling this method.. I understand that it is saying that file doesn't exist but it should.
What am I doing wrong? Where can I view a working example of ES2 loading from the Resources folder?