Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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 ) |
||||
|
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 |
||||
|
very nice script! |
||||
|
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. |
||||
|
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. |
||||
|
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. |
||||
|
@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. |
||||
|
can it saves array varible? |
||||
|
wow! |
||||
|
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. |
||||
|
Great script, thanks! |
||||
|
Updated: Some changes here and there and removed some bugs. Download link is same at first post. |
||||
|
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? |
||||
|
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.) |
|