We’re rewarding the question askers & reputations are being recalculated! Read more.

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.

Filter by
Sorted by
Tagged with
208
votes
4answers
17k 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 ...
37
votes
3answers
6k 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 ...
33
votes
9answers
50k 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 ...
33
votes
6answers
6k views

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 ...
32
votes
5answers
7k 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 ...
27
votes
4answers
27k 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.
20
votes
4answers
3k views

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 ...
17
votes
4answers
4k 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 ...
17
votes
1answer
2k views

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 ...
10
votes
3answers
2k 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 ...
8
votes
5answers
1k 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? ...
7
votes
4answers
624 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 ...
7
votes
5answers
4k 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
4answers
2k 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 ...
6
votes
3answers
689 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 ...
6
votes
2answers
15k 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 : ...
6
votes
1answer
1k 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
2k 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
1k 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
2answers
211 views

How do I save a procedurally-generated map as binary level-data in C++? [closed]

For example, I'd like to do something as simple as a generating an array matrix using Conway's Game of Life and then filling each cell with particular data to be saved to a binary file. ...
5
votes
1answer
302 views

Is there a way to prevent the user from playing the game simultaneously on 2 devices

Our game uses Google Play Services for authentication, multiplayer and cloud saves. We save the users inventory as a cloud save, and as the player partakes in multiplayer matches they might use items ...
5
votes
1answer
903 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
2k 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 ...
4
votes
1answer
413 views

How do I save which NPCs the player has talked to?

I have built a save system that saves the players name, x and y location, map and the direction they are looking at in JSON. ...
4
votes
1answer
256 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
1answer
621 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 ...
4
votes
1answer
678 views

How do open-world game saves work? [closed]

(Sorry if this shouldn't be asked here, I'm unsure if it's appropriate based on what's allowed here.) I'm not developing a game, but I'm very curious about this. I've played some large open-world ...
4
votes
2answers
228 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 ...
4
votes
1answer
385 views

What record stores the inventory in a Skyrim savegame file?

For The Elder Scrolls V: Skyrim, I'm looking for a way to read the player's inventory without having to go into the game to do it. I've scoured the pages from the UESP wiki on save file format but I ...
3
votes
5answers
3k 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 that ...
3
votes
5answers
736 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 sub-...
3
votes
4answers
8k 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, ...
3
votes
3answers
1k views

How to save large data in Unity?

Can anyone please tell me how to save data for Android. I have too much data to save (many npc-enemy stats). Also, it should work after updating: I read on stack overflow that, with ...
3
votes
1answer
171 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 ...
3
votes
2answers
109 views

game resuming stats password

i'm asking for a more clever encoding algorithm to retrieving game stats which generates a shorter and more clear password for example i have this information's to be saved via a short CODE Health   ...
3
votes
2answers
640 views

How to make an event happen only at the first start of the game?

I want to know how to make something happen only once like a tutorial in a game which appears only when you first start your game and then when your game got saved to a further point it never appears ...
3
votes
1answer
761 views

Saving Unity Custom Inspector state to a text / save file?

For the basic values I know how to do it like: Item name (Simple string value) Amount (Simple int value) isNormalDrop (Simple bool value) The problem is saving the Reflection variable (The script ...
3
votes
1answer
979 views

Unity - How to save variables for Android Game?

This is my current code, it only work into unity, when i test it in an Android Device it don't save the variable ...
2
votes
3answers
436 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 ...
2
votes
2answers
821 views

What is the reason that people avoid PlayerPrefs to store character data and coins etc?

PlayerPrefs are easy to implement and i think it can be used to store important game data like selected character and coins and completed quests for small games, but i have read too much to make me ...
2
votes
2answers
7k views

How do I save and restore an int value with PlayerPrefs?

I am stuck on how to save the player's amount of money. When I build the game in the exe as soon as I shutdown the game my money value gets lost. I want this money to be saved. I am using the ...
2
votes
3answers
4k views

Is it bad practice to store inventory and scores in PlayerPrefs?

I'm building a mobile game for a client in Unity. To save time, we started with a template game from the Asset Store that had some of the features that the client wants. The game includes a ...
2
votes
3answers
2k 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 ...
2
votes
1answer
56 views

Persisting Data with C#

In Unity, I'm trying to save the game data to a file to be loaded upon the game reopening. But for some reason it is not saving and I cannot figure out why. I have it so that if it cannot find that ...
2
votes
3answers
458 views

Storing game data on user end?

A thought occurred to me after seeing this question: Storing data - think character data for an online game - on the user`s computer is definitely less safe (maybe an understatement) than on a server ...
2
votes
1answer
114 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 ...
2
votes
1answer
366 views

Unity - PlayerPrefs.SetString appears to save garbage data

In Unity, I have an InputField calling this method for OnValueChanged: ...
2
votes
1answer
166 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 ...
2
votes
1answer
134 views

When do I save the buffer data to the database?

My entire game is server side and I use nodejs with mysql. When players connect or join a game, their player data (Items, ...
2
votes
1answer
493 views

How do I save variables and load them in Unity with JavaScript?

I made a game and i want to save the high score and load it back. I need to save 3 variables and load them when the game starts. How do i do it?