Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Saving in Games of Coppercube?

Girik1234
Guest
Quote
2021-09-08 07:51:36

How can I save a game in coppercube any tips?

I am making a horror game and I seriously need this feature


Guest
Guest
Quote
2021-09-09 19:48:51

Use these two CC functions: ccbWriteFileContent() & ccbReadFileContent() to write/read your save data in a text file.


ngame
Registered User
Quote
2021-09-10 07:58:31

Or you can save copper cube variables. Just use "load or store a variable from or to disk".


VP
Guest
Quote
2021-09-10 18:00:00

In theory, you can run your game using Oracle VirtualBox - so when you click your save button (in game), coppercube passes an external "VBoxManage snapshot" command to snapshot/restore the entire memory state as a diskimage file.

As well as a quick-save/load option, it may also offer an extra layer of protection for your game/assets as you can encrypt the disk image so it can only be read by the Virtual Machine which is hosting the game...by creating a "Full Clone" diskimage of your game (not a linked clone), it can be distributed separately as a standalone virtual machine to run on any host PC.

Good thing about using a VM is that you can pre-define the environment (allocate how much Ram to use, screen resolution etc.) - handy if you've intended your game to run specific rig/PC spec.

Downside is that a VM is will run always slightly slower than the native machine which hosts it - it uses some system-resources.

Finally, a Virtual Machine will only ever have the privileges and hardware access you granted to it - you can enable/disable emulation for any operating system hardware/software components you desire. If you wish, you can even embed an entire operating system (XP/Linux etc with your image) to completely control the game environment. Great for packing reshade/external scripts with your game - knowing that they will work on the target machine without the user having to setup the correct file-systems beforehand.


Girik1234
Guest
Quote
2021-09-19 12:52:04

Thanks All of You


Hector
Guest
Quote
2021-09-29 17:33:18

VP wrote:
In theory, you can run your game using Oracle VirtualBox

What drugs are you on? He asked for a save function, not an advertisement for a VM.


Create reply:


Posted by: (you are not logged in)


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