Load saved File from folder in webGL?

Discussion and help for Easy Save 3
dev_PmaInc
Posts: 11
Joined: Thu Nov 30, 2023 3:20 pm

Re: Load saved File from folder in webGL?

Post by dev_PmaInc »

Hi Joel,

Thanks for the reference, but I couldn't find the specific details I'm looking. To clarify, I need guidance on retrieving the value associated with the key 'Name' from a file stored on the Cloud Server with the filename 'lord.es3'. Could you provide more targeted assistance or direct me to the relevant documentation?

Appreciate your help.
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Load saved File from folder in webGL?

Post by Joel »

Hi there,

You would use ES3Cloud's DownloadFile or Sync method as described in the ES3Cloud guide:
https://docs.moodkie.com/easy-save-3/es ... -es3cloud/

You would then use the filePath parameter to load from that file. I.e.

Code: Select all

var data = ES3.Load<Type>("key", "filename.es3");
All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
dev_PmaInc
Posts: 11
Joined: Thu Nov 30, 2023 3:20 pm

Re: Load saved File from folder in webGL?

Post by dev_PmaInc »

Hi Joel,

I appreciate your guidance. I followed the steps outlined in the ES3Cloud guide and used the filePath parameter as suggested. However, when I attempt to check if the key exists with "if (ES3.KeyExists(key, 'lord.es3'))", it returns false, even though 'lord.es3' is stored on the cloud. Could you provide insights on what might be causing this issue?

Thank you for your patience.
Attachments
Screenshot 2024-01-15 164635.png
Screenshot 2024-01-15 164635.png (9.09 KiB) Viewed 1187 times
User avatar
Joel
Moodkie Staff
Posts: 4849
Joined: Wed Nov 07, 2012 10:32 pm

Re: Load saved File from folder in webGL?

Post by Joel »

Hi there,

If you're trying to check whether data exists in the cloud you should use ES3Cloud.SearchFilenames:
https://docs.moodkie.com/easy-save-3/es ... oud-class/

ES3.FileExists is for checking whether a file exists locally.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
dev_PmaInc
Posts: 11
Joined: Thu Nov 30, 2023 3:20 pm

Re: Load saved File from folder in webGL?

Post by dev_PmaInc »

Hi Joel,

Big thanks for the help! I was searching way too far. :roll:

Best regards,
William
Post Reply