I'm having a number of problems with cloudsave:
Issue1: Installing.
I dropped the ES3Cloud.php script in my webserver in a subdirectory. I follow the steps described in documentation. ES3Cloud fails to create variables.php, and fails to write what should be IN the ES3Variables file. I can only see that, by looking at the page source of the error page I get. I create a ES3Variables.php file with the following content:
Code: Select all
<?php
$api_key = 'secretsecret'; // The API key you need to specify to use when accessing this API.
$db_host = 'mysql26.secretsecret.com'; // MySQL Host Name.
$db_user = 'myUser'; // MySQL User Name.
$db_password = 'myPass'; // MySQL Password.
$db_name = 'myDB_db'; // MySQL Database Name.
?>
What I'd like: A way to test that the installation went well: I'd like to see the php script tell me that everything is fine. Right now, because I had to do manual stuff, I do not trust that the installation went well.
Issue 2: Actually saving something, and loading it too.
Code: Select all
IEnumerator TestCloud()
{
var cloud = new ES3Cloud("http://mydomain/data/ES3Cloud.php", "myapikey"); //this line redacted for secredy, but values are trippled checked and correct
var es3File = new ES3File("MyFile.es3");
es3File.Save<int>("myOtherInt", 7);
yield return StartCoroutine(cloud.Sync("MyFile.es3"));
if (cloud.isError)
{
Debug.LogError(cloud.error);
}
yield return StartCoroutine(cloud.Sync("MyFile.es3"));
if (cloud.isError)
{
Debug.LogError(cloud.error);
}
int myOtherInt = es3File.Load<int>("myOtherInt");
print("Loaded " + myOtherInt);
}
Code: Select all
<h1>Security incident detected</h1><p>Your request was blocked. Please try again later (or don't).</p>
UnityEngine.Debug:LogError(Object)
<TestCloud>c__Iterator0:MoveNext() (at Assets/_Scripts/Cloud/CloudHandler.cs:29)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
If I direct a browser at http://mydomain/data/ES3Cloud.phpabove, I get "wrong API key" , Which I think IS thrown by ES3Cloud.php ?
If I change http above to https I get instead "unknown error". (there is no ssl certificate on the webadress, so I WOULD expect https to fail, but tried it anyway).
What am I doing wrong? There's some issue with the webserver setup right ? Can I test the setup somehow ?