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

1
vote
3answers
3k 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
1k 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
1answer
84 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
50 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
0answers
92 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 ...
1
vote
3answers
718 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, ...
1
vote
0answers
20 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 ...
1
vote
1answer
187 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?
1
vote
2answers
405 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 ...
1
vote
1answer
115 views

How would I create a save function to my random generated game? [duplicate]

I'm making a 2D Tower Defense and currently looking into making a save feature. The problem is that my game is procedural generated (based on the rogue-like tutorial posted by Unity): At runtime I ...
0
votes
1answer
374 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
48 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
57 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 ...
0
votes
1answer
244 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
512 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
279 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
76 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
207 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
0answers
27 views

Should I keep a record of each game played or just the current game and the overall score?

I'm doing a very simple mod of one of the phaser.io samples with Wordpress as a backend. A player logs into Wordpress and when they start a new game, even if they log out, when they log back in it ...
0
votes
1answer
70 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 ...
0
votes
1answer
337 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 ...
0
votes
0answers
20 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 ...
0
votes
2answers
201 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 ...
0
votes
0answers
368 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 ...
0
votes
0answers
788 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 ...
0
votes
1answer
138 views

Saving an arbitrary sized 2d array

I'm trying to create an arbitrary sized(but not infinite) 2d tilebased world. My question is, how do i save a world like this? My idea was to split up the tiles into bigger chunks and then save those ...
0
votes
1answer
181 views

Saving big maps

When the map is relatively small, it takes a few milliseconds to save it, so it's generally ok. But with other, much much bigger maps, it could take several seconds, which is both annoying and hangs ...
-1
votes
1answer
1k 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 ...
-2
votes
1answer
811 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
407 views

iPhone game - saving player state data

I am developing my first app for iPhone, using C++ and some Objective C code to interface with ios sdk api. My app is obviously a game. I was wondering where to save the state of the player (in my ...
-3
votes
1answer
250 views

How to save a lodu game state

I am coding lodu game in c++ 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