Hello
Maybe i have misunderstood the web sync, maybe not?
I am trying to sync a file to the server, that i know does not exist on it, i thought it would be creates on .sync. But it seams that is not the case.
Here is code:
var cloud = new ES3Cloud("http://notmyip/ES3Cloud.php", "notmyAPIcode");
yield return StartCoroutine(cloud.Sync("test.es3"));
if (cloud.isError)
Debug.LogError(cloud.error);
cloud.isError returns "File test.es3" was not found on the server", also the second time i run the code.
es3 was not found on the server
Re: es3 was not found on the server
Hi there,
Does test.es3 exist locally? If it does not exist locally, no file will be created on the server.
You can use something like Debug.Log("test.es3 exists: " + ES3.FileExists("test.es3") ); to output to console whether it exists locally.
If it indeed exists, please could you make me a basic test scene which replicates the error and PM me a link to it?
All the best,
Joel
Does test.es3 exist locally? If it does not exist locally, no file will be created on the server.
You can use something like Debug.Log("test.es3 exists: " + ES3.FileExists("test.es3") ); to output to console whether it exists locally.
If it indeed exists, please could you make me a basic test scene which replicates the error and PM me a link to it?
All the best,
Joel
Re: es3 was not found on the server
I will try and make a scene.
if (ES3.FileExists("K6P0Q8M0.es3"))
{
Debug.Log("local file is there");
}
That gives a "local fil is there" in the log.
var cloud = new ES3Cloud("http://localhost/ES3Cloud.php", "--------");
yield return StartCoroutine(cloud.Sync("K6P0Q8M0.es3"));
if (cloud.isError)
Debug.LogError(cloud.error);
Still gives a file was not found on the server.
The ES3Cloud is only on the local machine and i am running it in the editor, might that be a problem?
if (ES3.FileExists("K6P0Q8M0.es3"))
{
Debug.Log("local file is there");
}
That gives a "local fil is there" in the log.
var cloud = new ES3Cloud("http://localhost/ES3Cloud.php", "--------");
yield return StartCoroutine(cloud.Sync("K6P0Q8M0.es3"));
if (cloud.isError)
Debug.LogError(cloud.error);
Still gives a file was not found on the server.
The ES3Cloud is only on the local machine and i am running it in the editor, might that be a problem?
Re: es3 was not found on the server
On a new clean scene i get:
FormatException: Expected ',' separating properties or '"' before property name, found '�'.
On the ES3.save
FormatException: Expected ',' separating properties or '"' before property name, found '�'.
On the ES3.save
Code: Select all
void Start () {
ES3.Save<int>("test", 10, "K6P0Q8M0.es3");
if (ES3.FileExists("K6P0Q8M0.es3"))
{
Debug.Log("local file is there");
}
StartCoroutine("syncBooks");
}
IEnumerator syncBooks()
{
var cloud = new ES3Cloud("http://localhost/ES3Cloud.php", "xxxxxxxx");
yield return StartCoroutine(cloud.Sync("K6P0Q8M0.es3"));
if (cloud.isError)
Debug.LogError(cloud.error);
}
Re: es3 was not found on the server
Hi there,
I've managed to replicate the error at my end and appears to be that a change to the ES3Cloud API wasn't pushed to the version which was submitted to the Asset Store.
If you PM me your email address, I'll email you the update right away.
You will also need to delete your existing save file as the data in the file is likely incomplete due to the error. The easiest way to do this is to go to Window > Easy Save 3 > Tools > Open Persistent Data Path and remove the file manually.
All the best,
Joel
I've managed to replicate the error at my end and appears to be that a change to the ES3Cloud API wasn't pushed to the version which was submitted to the Asset Store.
If you PM me your email address, I'll email you the update right away.
You will also need to delete your existing save file as the data in the file is likely incomplete due to the error. The easiest way to do this is to go to Window > Easy Save 3 > Tools > Open Persistent Data Path and remove the file manually.
All the best,
Joel