ES2 and https://

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
User avatar
Loadus
Posts: 5
Joined: Tue Mar 12, 2013 5:28 pm

ES2 and https://

Post by Loadus »

Hi,

I uploaded my game to Facebook and I put the game behind https:// protocol. After that ES2 throws this on the screen and I'm not sure what to do (as I have very little understanding on serverside stuff):

Image

This happens when I call SaveToFile() or Save() in the WebPlayer. System.IO denied? Halp.

Is there a way to save the variable directly to the mySQL database without writing a file or saving to a file?
User avatar
Joel
Moodkie Staff
Posts: 4852
Joined: Wed Nov 07, 2012 10:32 pm

Re: ES2 and https://

Post by Joel »

Hi Loadus,

Saving to file is not supported by Webplayer. You can however save to PlayerPrefs by changing the save location. For example:
ES2.Save(123, "myData.txt?savelocation=playerprefs");
int loaded = ES2.Load<int>("myData.txt?savelocation=playerprefs");
All the best,
Joel
User avatar
Loadus
Posts: 5
Joined: Tue Mar 12, 2013 5:28 pm

Re: ES2 and https://

Post by Loadus »

Awesome. Thanks a lot. ^.^
Locked