REQUEST EXAMPLES AND TUTORIALS HERE

Examples using Easy Save's API code
Post Reply
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by Joel »

To do this you can use Reflection to check whether the ES3 class exists: https://newbedev.com/c-how-to-check-if- ... xists-in-c

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
MikeyNg
Posts: 11
Joined: Tue Nov 30, 2021 8:16 pm

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by MikeyNg »

Is there a "best practices" place for just starting up?

Here's where I am with my project and my questions:

It seems best to set up a local cache and then load/save at appropriate times. (Not constantly)

It also seems like I should set up some sort of "SaveManager" and call scripts from there?

How would I get a consistent filename to use? The ES3.Settings docs feel a little light in that regard. How would I get consistency across my different scripts?

For multiple saves: Would it be best to have some sort of "master" file save with the names of the other save files in them?

Thanks in advance!
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by Joel »

Hi there,

Generally the best practice is the same as with any code: call it as infrequently as makes sense for your project to maximise performance.

Regarding whether a save manager makes sense, this very much depends on your project and what you personally find easiest. So do whatever makes most sense for you.

If you want consistency in filename, simply don't specify one. It will use the default filename as defined in the settings.
For multiple saves: Would it be best to have some sort of "master" file save with the names of the other save files in them?
Generally this isn't necessary as you can just use ES3.GetFiles to get a list of filenames.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
MikeyNg
Posts: 11
Joined: Tue Nov 30, 2021 8:16 pm

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by MikeyNg »

Thanks!

Best way to change the default filename in the settings would be...?

Code: Select all

// Create a new ES3Settings to enable encryption.
var settings = new ES3Settings(ES3.EncryptionType.AES, "myPassword");
// Change the save location to PlayerPrefs.
settings.saveLocation = ES3.Location.PlayerPrefs;
I found that code on the ES3 Settings class https://docs.moodkie.com/easy-save-3/es ... ngs-class/ but does it set it for all the scripts in my project even if it's just a var in one of them???
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by Joel »

Hi there,

If you want to change the default filename in the settings you can go to Tools > Easy Save 3 > Settings.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
MikeyNg
Posts: 11
Joined: Tue Nov 30, 2021 8:16 pm

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by MikeyNg »

thank you! Somehow I forgot to look at the Tools menu and was trying to do everything through scripts.....

Thanks again!!
gojak.d
Posts: 1
Joined: Fri Oct 29, 2021 7:11 am

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by gojak.d »

Hello ,
I 'm trying simple Load image to texture but i always get:
mytexture = ES3.LoadImage("C:/New/myImage.jpg");
FileNotFoundException: File C:/New/myImage.jpg could not be found
and im shure that this file exist ?
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by Joel »

gojak.d wrote: Sun Dec 12, 2021 4:05 am Hello ,
I 'm trying simple Load image to texture but i always get:
mytexture = ES3.LoadImage("C:/New/myImage.jpg");
FileNotFoundException: File C:/New/myImage.jpg could not be found
and im shure that this file exist ?
Hi there,

This is a support request rather than a request for a tutorial. Please could you create a new thread for this issue in the General Discussion forum.

In that thread could you also post a screenshot of the Properties window for that image (i.e. right-click your image in Windows, press Properties, and take a screenshot of the properties window).

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
xyztankman
Posts: 2
Joined: Mon Jan 24, 2022 4:16 pm

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by xyztankman »

Hey, I have a couple questions:

1. Does an Easy Save 3 Manager have to be in every scene? I'm confused on if it's even needed as the four documents listed in https://docs.moodkie.com/product/easy-save-3/ don't describe what the manager is for. The only video tutorial I've seen is on ES2 from 2016 and they created their own manager for holding variables.

2. is there a tutorial for saving to different locations (slot numbers) with an ES3.Save setup? I currently have save and load buttons for different slot numbers but I am having trouble getting them to work.

Thanks for the save system!
User avatar
Joel
Moodkie Staff
Posts: 4826
Joined: Wed Nov 07, 2012 10:32 pm

Re: REQUEST EXAMPLES AND TUTORIALS HERE

Post by Joel »

Hi there,

You only need to add an Easy Save 3 Manager to your scene if you get an error message asking you to do so, or if it's automatically added.

Regarding saving to slots, I've created an example of this for you here:
https://moodkie.com/forum/viewtopic.php?f=16&t=2466

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