Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
How can I save a game in coppercube any tips? I am making a horror game and I seriously need this feature |
||||
|
Use these two CC functions: ccbWriteFileContent() & ccbReadFileContent() to write/read your save data in a text file. |
||||
|
Or you can save copper cube variables. Just use "load or store a variable from or to disk". |
||||
|
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. |
||||
|
Thanks All of You |
||||
|
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. |
|