Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
save game doubt

camagames
Registered User
Quote
2018-05-23 14:30:23

hello the save game saves all the values of the game in a single file? life, points etc etc .. and can you save all the values in one file and upload them? or do you have to do them one by one? for windows, thanks


just_in_case
Moderator
Quote
2018-05-23 20:09:18

Yes , you can save all the variables in a single file... And you can read them back from a single file... You can use action created by me read specific line from a file to do so...

Just save every variable in a new line in your savefile... By using a line break....

And then use action read specific line and mention the line no to load the variable from the file...


camagames
Registered User
Quote
2018-05-24 04:05:00

Interesting. Is it possible to have an example? Thank you


wild-master
Registered User
Quote
2018-05-24 19:37:04

Try this extension:
https://drive.google.com/file/d/...

You must add it to your "Documents\CopperCube\extensions" directory.

The Save file must be a text file in the same directory of your game, like "savefile1.txt".

Example of usage:
1. In your Save file, write this on the first line: "yes".
2. With the extension, search Line 1 for the word "yes".
3. You can choose an "Action" to do if the word "yes" is detected, and you can choose what to do if it's NOT detected.

You might decide that line 20 of your text file is for detecting whether your customers want music enabled. If the line doesn't say "yes", you can choose an Action that will stop playing music.

Important notes:
1. The text is case-sensitive.
2. You can leave the "Actions" blank if you don't need them. You shouldn't feel obligated to use both every time. For example, you could put "no" in the search box and decide to use an Action to disable sound if "no" is detected, while leaving the second Action box blank, because the music should still continue if "no" is NOT found, so you won't need to do an Action.

This may need to be modified for more complex uses of Save files. I hope this example will allow you to improve it to build it around your game!


jdw6701
Registered User
Quote
2019-11-01 15:17:02

I'm requesting Access to the google drive file you posted.


Mokey96732
Guest
Quote
2019-11-23 09:32:03

Same


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact