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

0
votes
1answer
30 views

If I save some information with PlayerPrefs, they will remain saved even if the game is online?

If I make a game in unity and I use the PlayerPrefs function to save the progress and load it in another play, that information will be stored even if the game is loaded on an online platform? I mean: ...
0
votes
1answer
42 views

How can I save a score for a web game made in Unity and load it when the game starts again?

In other words, how can I load the progress for a game? I only want to store a score and load it again when the game starts (ex. if I get the 100 score and close the game, when I come back, I want to ...
2
votes
3answers
73 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
2answers
87 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 ...
1
vote
1answer
62 views

Can you use a standard multi-thread if only reading unity objects?

First of all I know about coroutines and how to use them (they're awesome). A friend of mine was telling me about the way the he implemented his saving system in a game he was working on, after ...
1
vote
1answer
47 views

“Saving…” dialog isn't shown until after the saving is complete

I have implemented serialization/de-serialization process in my Unity game where I save/load data from/to XML file. During the serialization, my game isn't responding until the serialization is ...
1
vote
1answer
44 views

saving script state

I'd like to ask you, since most of you have some or a lot of experience in writing games. What is your approach to running scripts and saving game state when script is executing when there is a chance ...
0
votes
1answer
44 views

Libgdx - when / how to save data

I'm making a simple 2D game in libgdx, and now I'm at the point where I have to save data. I already have a mechanism to save the data itself. The problem is that I don't know when/where the procedure ...
4
votes
1answer
349 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. { data: [ { x: 400 y: 424 d: UP name: ...
5
votes
2answers
117 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. ...
31
votes
4answers
4k 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 ...
1
vote
3answers
85 views

When should we save our game data?(Before quit game or just when some data changed?)

For standalone game, what's the best time to save game data, such as player's coin, player's level, skill data and so on. Save data before we quit game.So we just save data to file just one time, ...
1
vote
0answers
73 views

Save game on Android keeps disappearing

my company has developed an Android game using Cocos2D-X. Game works quite well except that for some unknown reason, save games keep disappearing. Users report that they play the game for several ...
0
votes
0answers
22 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, Stash, Quests, etc) all get stored into the memory buffer. For example, ...
19
votes
3answers
2k 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 ...
1
vote
2answers
511 views

Saving/Loading PlayerPrefs only works in the editor

I'm creating a game which stores a few variables using PlayerPrefs. It saves and loads the PlayerPrefs perfectly fine while testing in the editor, however when I build it to WebGL or Unity Web Player, ...
-2
votes
1answer
578 views

Unity - How To Save Some Variable WIth PlayerPrefs?

I have a small problem. in the game that I'm creating I created an array of items, each item includes a number of variables (cost, level, etc.). my goal is to save your own variables for each item, ...
2
votes
1answer
387 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 public class Click : MonoBehaviour{ public UnityEngine.UI.Text proiettiliTotali; ...
0
votes
1answer
221 views

Saving and Loading File to Application.persistentDataPat not working on Android device

I am trying to save data and load data on the project i am working on, but i cant seem to get it work in an Android device it works fine on Unity when i play it, not sure what i am missing or done ...
1
vote
0answers
19 views

How to save characters in iOS game app

BOOL = GREENIE, UIButton =GREEN. When I click the GREEN button, I coded that now you play as GREENIE character. However, I don't know how to code it that the game always remember that the I clicked on ...
0
votes
0answers
19 views

When saving data locally for a mobile game, how to protect it? [duplicate]

I am designing a mobile (iOS/Android) game and I try to save data (such as levels, coins, status) in local files. In this way, I am concerning a case that someone can just copy these files and give ...
2
votes
2answers
2k 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 ...
0
votes
2answers
174 views

Storing a block world

I've gotten a basic Minecraft clone working (thanks to gamedev.stackexchange's help! ^_^), but know I have no idea how to save the file. Minecraft itself uses a naive list of block ids as far as I ...
1
vote
1answer
118 views

Question about save games format

my question is about save-games format. Look at this screenshot: On the left I made a "simple" fake savegame (Ini format) and on the right there is a "complex" TR2 save game. I'm wondering how ...
1
vote
1answer
157 views

How do you save Path2D data?

I am making a java game using path geometry. Is there any way to save the data stored in a Path2D to a file?
5
votes
1answer
239 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 ...
2
votes
1answer
294 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?
0
votes
1answer
236 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 ...
1
vote
1answer
132 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 ...
0
votes
1answer
462 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
217 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 ...
-1
votes
1answer
896 views

Saving game data to server [closed]

What's the best method to save the player's data to the server? Method to store the game saves Which one of the following method should I use ? Using a database structure(e.g.. mySQL) to store the ...
1
vote
2answers
483 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 ...
2
votes
1answer
328 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 ...
0
votes
1answer
72 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 ...
168
votes
4answers
11k 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, ...
3
votes
2answers
5k 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)); ...
0
votes
0answers
344 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 ...
7
votes
5answers
525 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? ...
1
vote
1answer
85 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
2k 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
3answers
282 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 ...
0
votes
1answer
330 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 ...
4
votes
3answers
876 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 ...
5
votes
3answers
397 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 ...
0
votes
0answers
691 views

pause or freezing game screen

I have a question regarding the pausing/freezing a game while a window/pausemenu will appear at center of the screen. I've already created a pausescreen class which will be called each time the back ...
3
votes
1answer
140 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 ...
1
vote
1answer
593 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. ...
7
votes
5answers
2k 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 ...
10
votes
3answers
1k 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 ...