REQUEST EXAMPLES AND TUTORIALS HERE

Examples using Easy Save's API code
Krakentanz
Posts: 2
Joined: Wed Jun 08, 2022 10:49 am

ES3Cloud.php

Post by Krakentanz »

Hi,

since you asked - i have a request for a tutorial :idea: :?: :

Could you elaborate on how to set up the cloud server please?

The Docs just say "put ES3Cloud.php file on your server". Maybe it's just me being too inexperienced, but it would help me a great deal to know more about that server. Questions are:

- where to put the file exactly (like, what directory)?
- What Version of php do i need to install on that server?
- any additional software requirements? What needs to be installed/configured on that server for the .php to do it's job? just php?
- do i need to have any MYSQL databases up and running in the first place, or does ES3Cloud.php do the whole setup job for me?
- what does that file actually do? Is it the server-code itself? Or is it just a setup script? If so, what does it install?

stuff like that would be great to know, as a help for setting this up, and also cause i don't just want to execute some php on my raspberryPI that i don't know what it does...

Thank you so much, and thumbs up for the awesome job that you did with EasySave in general!!

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

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by Joel »

Hi there,
where to put the file exactly (like, what directory)?
This can be anywhere which can be accessed by a HTTP request.
What Version of php do i need to install on that server?
We don't use anything out-of-the-ordinary, so any version will be fine.
any additional software requirements? What needs to be installed/configured on that server for the .php to do it's job? just php?
Just PHP, MySQL and the server software itself is all that is required.
do i need to have any MYSQL databases up and running in the first place, or does ES3Cloud.php do the whole setup job for me?
During the setup process you will be asked for the details of a MySQL database where Easy Save can install it's tables. Easy Save will then install the tables on the database for you.
what does that file actually do? Is it the server-code itself? Or is it just a setup script? If so, what does it install?
The ES3Cloud.php script installs the MySQL database, creates a PHP file called ES3Variables.php containing the information such as database details and the API key. Once setup has completed the ES3Cloud.php file then accepts HTTP requests from your Unity client and communicates with the MySQL server to upload or download data to/from the server.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started

bradford
Posts: 1
Joined: Sat Jun 11, 2022 4:38 pm

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by bradford »

Scenario: I'd like to enumerate existing save data, and also sort existing save data by last-modified time.

Are there any ES3 APIs that let me do that?

If there aren't any APIs, are there any best practice patterns or examples that are recommended?

As one specific example, If I save game data into various keys as shown below, is it possible to enumerate/sort each save game entry?

Code: Select all

ES3.Save("savegame1", data);
ES3.Save("savegame2", data);
ES3.Save("savegame3", data);

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

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by Joel »

Hi there,

You can use ES3.GetKeys to get each key in a file, but no time data is associated with this. To sort then you would need to save your own time data as a separate key for each key and use these to sort the data yourself.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started

Post Reply