es3 was not found on the server

Discussion and help for Easy Save 3
Post Reply
elmstrom
Posts: 10
Joined: Thu Sep 07, 2017 8:16 am

es3 was not found on the server

Post by elmstrom »

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.
User avatar
Joel
Moodkie Staff
Posts: 4848
Joined: Wed Nov 07, 2012 10:32 pm

Re: es3 was not found on the server

Post by Joel »

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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
elmstrom
Posts: 10
Joined: Thu Sep 07, 2017 8:16 am

Re: es3 was not found on the server

Post by elmstrom »

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?
elmstrom
Posts: 10
Joined: Thu Sep 07, 2017 8:16 am

Re: es3 was not found on the server

Post by elmstrom »

On a new clean scene i get:
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);


    }
User avatar
Joel
Moodkie Staff
Posts: 4848
Joined: Wed Nov 07, 2012 10:32 pm

Re: es3 was not found on the server

Post by Joel »

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
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply