Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
Save / Load Action

sven
Registered User
Quote
2023-06-21 06:28:56

Save/Load script to save load game.
Simple example added.
Saves also clones and creates them again if loaded from save file.
Saves variables that added to save list.
Saves health value for AI players that uses gameActor behavior.
Saves camera position and target.

Download includes example plus image file with info.

Download: https://5v3n.itch.io/coppercube-...

This version is experimental version ,i had idea and made it fast..so it may have bugs that i am not aware of, if you see any error or have ideas to add then let me know.

Press 1 or 2 to save and load.
Press mouse button left to shoot.
(AI players have 100 health and bullet damage is 50 )


Monks aka 7mond
Guest
Quote
2023-06-21 08:15:03

Tnks a lot sven u are very beneficial to the society I imagine how some of us would hv struggled if you weren't there


eoh
Guest
Quote
2023-06-21 21:04:08

very nice script!


Guest
Guest
Quote
2023-06-22 00:31:57

It works but I cant add it to my project. By that I mean when I click on it to add as behavior it just doesnt add it and closes the menu.


sven
Registered User
Quote
2023-06-22 01:22:56

Thanks Monks aka 7mond and eoh.

Guest - I dont think its the script fault.. for me and for multiple people it works with no problems.. will test it tomorrow to see does i have any problems with my script.


Guest
Guest
Quote
2023-06-22 07:35:19

I dont think its a script error either because it works just fine on the example ccb. I think its just something to do with my coppercube.


just_in_case
Moderator
Quote
2023-06-22 11:03:12

@guest, try moving all your extensions to a temporary folder and then to your original extension folder, add only the extensions that you are going to use. It will fix the bug that you are facing. It's a weird bug, and maybe happens due to global variables or due to name of the behaviors sometimes. So having a fresh extensions folder will fix the issue.


Guest
Guest
Quote
2023-06-22 15:47:17

can it saves array varible?


bulletchain
Registered User
Quote
2023-06-22 15:55:18

wow!


sven
Registered User
Quote
2023-06-22 16:11:29

Guest wrote:
can it saves array varible?


It saves coppercube variables only.
For javascript variables it can be done also but because each game are different you need specific script for that.


andgameplay
Registered User
Quote
2023-06-23 02:55:21

Great script, thanks!


sven
Registered User
Quote
2023-07-07 11:01:20

Updated:

Some changes here and there and removed some bugs.
Download link is same at first post.


guest
Guest
Quote
2023-07-10 22:56:11

wrote:
@guest, try moving all your extensions to a temporary folder and then to your original extension folder, add only the extensions that you are going to use. It will fix the bug that you are facing. It's a weird bug, and maybe happens due to global variables or due to name of the behaviors sometimes. So having a fresh extensions folder will fix the issue.


Will that remove all my other extensions that are being used in my game?


sven
Registered User
Quote
2023-07-11 09:19:12

guest wrote:
wrote:
@guest, try moving all your extensions to a temporary folder and then to your original extension folder, add only the extensions that you are going to use. It will fix the bug that you are facing. It's a weird bug, and maybe happens due to global variables or due to name of the behaviors sometimes. So having a fresh extensions folder will fix the issue.


Will that remove all my other extensions that are being used in my game?



It will remove them yes..but not from your ccb file.
If you open your ccb file scripts your project uses will be put back in scripts folder. Some users have big mess in theyr scripts folder.. so its nice to clean up sometimes -remove scripts you dont use. (Just take them out from folder and store them somewhere where you can always take them and put back if needed.)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internati?nal" (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