Questions tagged [savegame]

Questions about saving and loading (resuming, restoring) state of the game, allowing player stop and continue playing game at arbitrary moments of real and game time.

Game saving can be different in their realisation and tend to fall in some of the following categories:

  1. Any time exact state save: game saves state completely and restores it to exact same moment of game time.

  2. Game save stations and checkpoints: game can be saved at specific locations or saves aotomatically at some game story points.

  3. Diablo style 'save and exit': game is saved only on exit, and, to prevent cheating, usually some of the player progress is lost (he is returned to some checkpoint).

193 questions
213
votes
4 answers

How can I store game metadata in a .png file?

Spore allows player-created creatures to be shared by exporting a .png file. That .png is a photo of the creature, but if it's imported into the game, the creature's information (such as textures, size, and shape) also come with it. How can I…
ibrabeicker
  • 2,951
  • 4
  • 24
  • 20
38
votes
4 answers

In which directory to write game save files/data?

I need a definite list of directories, one or more per platform, of where to put game save files and other game generated data . Either based on the OS developer specification, or because it is common usage if there is no recommendation. Please…
Klaim
  • 2,634
  • 1
  • 28
  • 37
36
votes
9 answers

How do I create a save file for a C++ game?

I am coding my final for a Video game Programming course, and I want to know how to create a save file for my game, so that a user can play, and then come back later. Any idea how this is done, every thing I have done before has been single run…
Tucker Morgan
  • 847
  • 2
  • 12
  • 16
33
votes
4 answers

How can I protect my save data from casual hacking?

What options are there for saving game data in a secure manner? I'm interested in solutions specifically tailored for C++. I'm looking for something that is fast and easy to use. I'm only concerned about storing simple information such as Which…
dan369
  • 993
  • 1
  • 10
  • 20
31
votes
8 answers

Is there a practical reason for saving game data in %UserProfile%\Documents instead of %AppData%?

My documents folder is flooded with subfolders of various games, including those of some very recent AAA titles. As a professional application developer with no experience in the gaming industry this is just plain wrong, these files belong into…
Peter
  • 9,975
  • 2
  • 36
  • 46
27
votes
4 answers

How do you save game state?

What is the procedure followed by game programmers for saving and resuming game state? like files/mappings. I want to save it for tower defense game and I am using unity3D game engine.
Syed
  • 959
  • 3
  • 16
  • 28
23
votes
4 answers

Saving player's progress in a Unity game

I am making a game using the Unity game engine and I want to save the player's progress including level, experience points, chosen character, etc. Presently I am using PlayerPrefs but I want to know whether this will work for gamers who will run…
Shantanu Singh
  • 355
  • 2
  • 5
  • 10
22
votes
4 answers

How do I implement a retro-style password-based "savegame" system?

How would I make a password system for a single-player game like the ones used in older console games? For example, Mega Man X saves work by giving you a series of numbers that you can enter later to load your save.
Accumulator
  • 806
  • 13
  • 29
18
votes
4 answers

How does one save a procedural world?

I have recently read about how to create procedural worlds... but how do I save one? In games like Terraria or Minecraft users can freely modify the landscape, but that world can't be recreated from the start seed. What techniques are used to save…
user1075940
  • 655
  • 1
  • 9
  • 20
17
votes
1 answer

How can I implement persistent state for objects defined in a level?

I am developing a 2D Metroidvania which consists of a series of interconnected levels that can be revisited. Each level is represented by a Tiled TMX file in which I have specified where various objects of different sprite classes spawn (for…
DyingIsFun
  • 1,367
  • 1
  • 18
  • 44
11
votes
3 answers

Saving roguelike game state?

I'm working on a basic roguelike using HTML5 and jQuery, and I've come across a problem. The way the game currently stands, the system only saves the game state every time the user moves between floors - to minimize overhead. The peril of this is…
CodeMoose
  • 537
  • 2
  • 5
  • 18
10
votes
6 answers

How can I maintain saved game backward compatibility?

I have a complex sim game I want to add save game functionality to. I'll be updating it with new features continually after release. How can I make sure my updates don't break existing save games? What sort of architecture should I follow to make…
Rye bread
  • 298
  • 2
  • 9
8
votes
4 answers

Best practices for periodically saving game state to disk

I'm working on an MMO. All of the player and environment data lives on a server and is kept in memory. There's a "world" object which keeps track of all of the maps, characters, etc. and their relations to each other. To avoid data loss in case of a…
heyitsbmo
  • 203
  • 2
  • 5
7
votes
3 answers

Save-security with MD5 hash

I'm working on a flash game that saves your progress locally. These saves can easily be hacked. My solution is to add an md5 hash of all the variables saved into the save file itself. When loading the save, the game would check if the hash is valid.…
Abdulla
  • 301
  • 2
  • 6
7
votes
2 answers

Retrieve the original prefab from a game object

How would one proceed to retrieve the original prefab used for instantiating an object? In the editor these two functions work : Debug.Log(PrefabUtility.GetPrefabParent(gameObject)); Debug.Log(PrefabUtility.GetPrefabObject(gameObject)); But I need…
Coyote
  • 3,230
  • 1
  • 21
  • 35
1
2 3
…
12 13