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
2
votes
1answer
176 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
2k 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
58 views

Tilemaps are loading differently each time

Tilemap data is stored in a 2D array. It is saved using the following code ...
2
votes
1answer
191 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
495 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?
2
votes
1answer
152 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
1answer
281 views

How do I manually define save paths in GMS?

I want to know if it is possible to set the path for my game's save data in GameMaker: Studio outside of the two default options I am given in the program. The options I get are: ...
2
votes
1answer
637 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 ...
2
votes
0answers
48 views

Output save file name conflict [closed]

I am making a game in GameMaker: Studio, but I've run into a problem. Originally, the game would create three possible save files: save1 save2 save3 The issue is ...
1
vote
2answers
213 views

How can I implement versioning into a save system?

I currently have a crude save system in my game. When my game is first launched after download, it checks for three directories in a certain location on the client computer, ...
1
vote
3answers
235 views

When is the right time to save game data in a standalone game?

For standalone game, what's the best time to save game data, such as player's coins, level, skill data and so on? Should the data be saved before quitting? Or whenever it changes? Or something else?
1
vote
2answers
296 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: <...
1
vote
1answer
495 views

Is this a reasonable method of detecting JS memory hacks?

I'm working on a single-player browser-based RPG in my free time. I do allow for saving the user's game on the server, but the game is largely going to run locally and I therefore acknowledge that it ...
1
vote
1answer
941 views

How to save and load scene in realtime?

I'm working on an editor where one important feature is to save and load changes (all type of changes like adding and removing objects and their components and components property values) I want to ...
1
vote
1answer
2k 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, ...
1
vote
1answer
1k views

What's the easiest way to get a JavaScript game to save?

I'm doing a re-skin of and old open source web game, the current game is in HTML, CSS and JavaScript. I'm trying to redo the save game bit as I can't make sense of it and want something I can ...
1
vote
3answers
2k views

How to keep Unity data after reinstall?

After the use uninstall/reinstalls my app, all of his serialized data is gone. Is there a way to store a file on a mobile device permanently - which persists through various installs? Without using a ...
1
vote
1answer
636 views

How to implement a save/load system in Unity? [duplicate]

Many game allows the player to save progress at any time and load the save back at any time (like Minecraft and Doom 3). I would like to implement it in Unity. I think I will need to put the value ...
1
vote
2answers
245 views

How to securely store xml/json information about actors in a game?

I'm developing a 2D "small" offline rpg game, and to this point I have many actors (mobs, heroes, NPCs) and what I did, is created a class named "Actor" and each time I have a new actor I create a ...
1
vote
1answer
976 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. I'...
1
vote
2answers
253 views

Need help with using Player Prefs to save number of coins collected

I'm using unity 3D to make a game where the character collides with coins in order to collect them. When playing the game, the player should start out with zero coins and each time he collides with a ...
1
vote
1answer
45 views

How should I resolve saved game(cloud saved progress) conflict with local game progress?

I am using play game services and decided to create a small progress manager which will protect user progress. Now consider this, Player launches the game and sign in to cloud service (play game ...
1
vote
1answer
44 views

Codify user progress [duplicate]

I want to generate a string-code for the user that represents his progress in the game (so he can load this state somewhere else). I don't want him to be able to guess the system and thus load a state ...
1
vote
1answer
64 views

How to protect save game data when saving game over the network?

Newbie question please - I am working on my own RPG, using Unreal Engine 4 and C++. Regarding data formats - I figured I would just make HTTP Post requests to store the data as JSON in AWS's ...
1
vote
1answer
668 views

MonoGame Save Game Location Example

I am building a game using Monogame 3.6 and Visual Studio Community 2017. Up until this point I have been serializing the data using BinarySerialization and created a custom ...
1
vote
2answers
71 views

Why can I sometimes access Static objects' elements and sometimes not?

I'm making a game in Unity and I learned to make my Player object static for reference by other objects quickly and easily. So I have a "public static Player player." I remember when I first made this ...
1
vote
1answer
492 views

Way to deserialized or load last save state scene with GameObject and other classes instead of storing normal fields via binary format?

I humbly ask for help in order to solve this problem. I successfully take a quick guide to learn more about save and load state of the game. Basically first, I know how to use ...
1
vote
2answers
305 views

Updating an XML Document to Match New Save Data?

The Problem I'm developing a game and using the XmlSerializer to store some user data. While it isn't an immediate problem, I'm trying to conceptualize what would happen if I needed to update Save ...
1
vote
1answer
109 views

How to handle user save games?

I started on my first game; and now im confused how to handle the player SaveGames. I use google-play-services to persist the user's save games across devices, and I am keeping a local save too. So ...
1
vote
1answer
84 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
118 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 ...
1
vote
3answers
3k 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
1answer
401 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 does ...
1
vote
2answers
955 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 levels,...
1
vote
1answer
4k 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
4k 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
0answers
57 views

Saving player Position and Rotation in Unity

I'm making a game using Unity, and I'd really appreciate knowing how to save and then load my player's position and rotation. I'm not very experienced at c#, so I ...
1
vote
1answer
231 views

Serializing nested ScriptableObjects with runtime changes

I'm making an effort to use ScriptableObjects more in my game architecture, after watching a fantastic Unity Unite talk on the subject. The central idea is to use ScriptableObjects, during runtime, as ...
1
vote
0answers
66 views

How can I save data in Unity? [duplicate]

I'm making a game that's pretty simple and I really only need to save one int for when the game is closed (the scene the payer is at), but all the tutorials and ...
1
vote
0answers
47 views

What is the difference between engine approach and language approach in terms of saving game data?

I was asked to find a way to somehow save gamedata for a game we (my friends and I) are making and i found that there is something called engine and language approach. I have found something i would ...
1
vote
0answers
52 views

What strategies are best for managing Game Center and offline saves in the same app?

I have an iOS app for which I want to use the Game Center API for saving games. At the same time, I want to have the option to save multiple games on the local file system, using the familiar save-...
1
vote
1answer
174 views

Google Play Services Save Game to store single long?

I want to implement a Google Leaderboard in my game. The score I will send to the leaderboard is a single long number. Now I want to make sure that the user's progress won't get lost when ...
1
vote
0answers
64 views

Game stopped working after adding savegame feature? [closed]

I'm trying to make a text based adventure game with my limited c++ knowledge.. But I ran into trouble with saving and loading gamestates.. The functions I made are ...
1
vote
0answers
205 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 days,...
1
vote
0answers
41 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
642 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
446 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
685 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
219 views

Does it matter what file type my save file is?

So, I am looking into game development, and I just learned how save files work and how to create and implement them. Here is the code that I was using on Dev C++: ...