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.

learn more… | top users | synonyms

139
votes
4answers
8k views

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, ...
31
votes
3answers
2k views

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 ...
20
votes
6answers
12k views

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 ...
18
votes
4answers
3k views

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 ...
15
votes
4answers
1k views

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 ...
15
votes
4answers
11k views

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.
8
votes
3answers
673 views

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 ...
7
votes
5answers
306 views

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? ...
6
votes
4answers
474 views

Set Checkpoints vs. Player Saves

I'm making a top-down action / horror game, and I'm in the process of adding a "save game" feature. However, I'm torn between having automatic checkpoints throughout the level and letting the user ...
6
votes
5answers
1k views

How to save and restore Bullet Physics state?

I'm looking for information on how to save the runtime state of rigid bodies with Bullet Physics. Most of my world consists of static objects, but I have a few dynamic and kinematic objects as well. I ...
6
votes
1answer
844 views

What methods should save/load a game state

There are a lot of articles about how to save a state of a game and they are pretty good. But I have one conceptual misunderstanding where should I save the state? My game has number of screens and ...
5
votes
3answers
653 views

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 ...
5
votes
3answers
447 views

How do some games save without creating data files?

I downloaded a game called Brain Exercise with Dr.Kawashima. It contains only one executable and no data files. However, it's still possible to save the game! Where does the save data go?
5
votes
3answers
275 views

Mismatch of Entity System and Savegames

There is a theoretical mismatch of the entity system and the savegame system, which is think is common, but I haven't found resources about that. Therefore I will explain both systems first, as short ...
5
votes
1answer
443 views

How is the Call of Duty checkpoint system implemented?

Does anybody know how it is implemented or has any advice how to do it? I'm especially interested in how to avoid that a player dies right after a checkpoint. How does the game evaluate when it's ...
4
votes
3answers
389 views

Saving instances of classes, then recreating the instances [closed]

I have many types of entities, each type has a lot of if instanceof Spider (for example ) then do this in the game code... Now I got to the part where I want to save each type. They all are based on ...
4
votes
3answers
655 views

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 ...
4
votes
1answer
137 views

Forward Compatibility of Save Files

My game is driven by a scripting language, and the user can save at almost anytime in the middle of the script, so the instruction number of the script engine must be saved. The problem is that the ...
4
votes
2answers
203 views

Load state / continue game based on user input

I'm working on a rather simple 2D game, with a pretty small set of values that will need to be preserved for a user to pick up where they left off last time they played. Rather than saving/loading ...
3
votes
5answers
562 views

Saving data in games?

I'm soon going to make a game for the iPhone as a school project. My idea was to make a TLOZ remake, with Tiled Maps. However, I'm not quite sure how save the data. In TLOZ you have a lot of ...
3
votes
1answer
421 views

What are game save files?

I've reached the saving part of my game, as in, you press save and it writes to a text file, but I've noticed that most games and programs out there use custom save formats, like Dwarf Fortress DAT ...
3
votes
1answer
112 views

Saving data across same game in multiple devices [closed]

Is there any library or something that works like iCloud but for different operating systems (Android, IOS, Windows Phone) that allow me to save game data to cloud and open the game data from another ...
2
votes
5answers
891 views

How can I write data to a file that users can't easily edit? [duplicate]

Possible Duplicate: How can I protect my save data from casual hacking? While working on game saving and loading I figured I could just write all the variable values to a file and then load ...
2
votes
4answers
2k views

How to save a game state?

So I am currently working on a simple game project that most people start of with: "breakout". part of my goal is to make a gamesave of the current gamestate the simplest way possible. For example, ...
2
votes
1answer
157 views

RPG - storing player data

Given the following tree structure, where each player logged in can have data for current and completed levels, quests per level, NPCs per quest, and multiple tasks per NPC... I'm trying to figure out ...
2
votes
1answer
129 views

Writing via content pipeline in Xbox game project

I'm creating an Xbox application and I have this problem with the content pipeline. Loading .xnb files is not a problem but I can't seem to find any helpful tutorials on writing via the content ...
2
votes
2answers
620 views

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)); ...
1
vote
3answers
161 views

Algorithm for securing a retro password system

For a game I am working on, one of the build targets is the Unity Webplayer, which does not support saving file I/O at all. However, as it's an action/adventure game based on Zelda 2: The Adventure ...
1
vote
2answers
250 views

Optimization and Saving/Loading

I'm developing a 2D tile based game and I have a few questions regarding it. First I would like to know if this is the correct way to structure my Tile class: namespace TileGame.Engine { public ...
1
vote
3answers
592 views

How to save game progress (savefile)

I am currently working on a terminal text game just to practice my skills (C). It will be story driven escape the mansion kind of game. Even though the game will be short I want it to support save ...
1
vote
1answer
68 views

How do I implement references or relations for entities within a serialized savegame?

I have a 2D tile based RPG for which I'm developing save game function. In particular, I'm trying to save this structure: A caster can have multiple buffs that he maintains. Each buff can have ...
1
vote
1answer
91 views

How to apply game progression changes on screen loading in a Zelda like game

I'm trying to develop a 2D game like Zelda. The game is divided in screens with exits linking each other. I store each screen data (including objects and NPC positions) on a separate file, and when ...
1
vote
2answers
114 views

In Android, is saving game data in a binary file a good approach?

I am nearly finished with my Android game, but I want to make sure my save format is good. I am working on a fairly large game, so data such as high scores, stars, etc. are stored for around 80 ...
1
vote
1answer
451 views

MonoGame - when/how to save data

I am making a simple 2d game for WP in monogame/xna and am at a point where I want to save data. I have created a method to serialize the data (index, counter and percentage counter) to an isolated ...
1
vote
1answer
358 views

sharing preferences between two apps on android with libgdx

I am making an android game with both a demo version and a paid version. I want users who decide to buy the paid version to continue from where they left off, with all their old data and settings. ...
1
vote
3answers
2k views

CCUserDefault, iOS/Android and game updates

My game uses cocos2d-x and will be published on iOS platform first, later on Android. I save a lot of things with CCUserDefault (scores, which level was completed, number of coins taken, etc...). But ...
1
vote
1answer
706 views

Saving and Loading the Game (Automatically or Manually) via Internal Storage Only (Tablet PC Issues)

Here is my question. When making a game app for Android, I considered first the device. It's no problem to save progress everything (from levels to records) on a smartphone because it has an SD Card ...
1
vote
2answers
67 views

Unity3d - Playerprefs not saving

Im trying to make a script to save the player settings like volume and field of view.It used to work before but it suddenly stopped for some reason.This is the script Im using(a part of it actually) : ...
1
vote
2answers
326 views

Cocos2d savegame cctmxtiledmap

my game features several tilemaps that are initially loaded from a tmx file and modified during gameplay. How can I save the changed tilemaps in a save game? Will NSCoding do the trick here or is the ...
0
votes
1answer
164 views

Are binary storage methods more efficient than text based ones?

I'm working on a game which could potentially generate rather large save files, and so I'd like to find the smallest (most efficient, if you will) method of saving the game's data. I would need to ...
0
votes
1answer
281 views

Saving Scores Using Cookies

I've recently created a small galiga like game recently using JavaScript and HTML5. I've run into a bit of trouble saving cookies, the cookie saves, but then resets itself when the page is refreshed, ...
0
votes
1answer
86 views

What's the best way to save scores per level in android?

I'm in the middle of programming a tile based puzzle game, then i realized i don't have any good ways to save data. For the moment i'm using these long combined strings for sharedpreferences and i'm ...
0
votes
1answer
60 views

How do I save my game with highscores and player positioning in LibGDX?

So I have a game that needs to save high scores for the number of waves, what guns the player has, positioning of the player and the zombies, and so on. I saw something about SharedPreferences but ...
0
votes
1answer
36 views

Shared Object Not saving the level Progress

I am making a flash game in which i have a variable levelState that describes the current level in which user has entered I am using SharedObject to save the progress but it does not do so first i ...
0
votes
1answer
175 views

Good way to store entity data

I'm building an RPG style game, but i have some trouble with storing data from entities. These entities can carry data including but not limited to their location, their graphics, whether they are ...
0
votes
1answer
13 views

Export session variables easily and permanently in php

I feel like I must be missing something simple, or misunderstanding sessions or cookies. I want to save all session variables and allow players to copy/paste a long string to load the game up from a ...
0
votes
1answer
49 views

What is the best aproach using SharedObject to a save game? [closed]

I was thinking of saving a XML, but I have read about the SharedObject but I didn't got how well it's used, how to include keys and values and what types I can save on it. Also, ...
0
votes
0answers
6 views

Open file with java application [migrated]

I am using Ubuntu. I would like to have a user be able to double-click (or whatever they have set to open a file) on the save file for a java game i'm making, and have the game start and automatically ...
0
votes
0answers
262 views

Using Parcelable in Android to save an object to a Bundle

I'm attempting to ascertain the best method of saving the state of everything in my game for those cases when the app is sent to the background, so, for instance.... • User has pressed the 'Home' key ...
0
votes
0answers
141 views

Run a few seconds of simulation just after loading a scene

I'm looking for a way to execute 3 to 15 seconds of simulation once a scene is loaded. The problem is: some objects can be left suspended in motion while the player exits the scene. their state is ...