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
0 votes
1 answer
50 views

Is it safe to store the state of a game in Javascripts localStorage?

I am going to be completely honest, this is not 100% about storing a game state in Javascript's localStorage, it is more to do with a utility program storing statistics. Since it can be related to ...
Rewind's user avatar
  • 111
1 vote
3 answers
122 views

Actual time-based plant growth even when game is off

I am developing a game in Unity, and I want a plant to grow based on actual time passed. Basically, if the player turns the game off and turns it back on one day after, the plant should be grown. I'm ...
Howler's user avatar
  • 169
0 votes
0 answers
73 views

How to store a separate high score for each level

I'm trying to make a game in game maker studio 2 where the highest score and ranking is saved for each level. I have an idea on how to do this for an entire game, but not individual levels. How can I ...
youwouldntknowwouldyou's user avatar
0 votes
1 answer
64 views

Persistent save value, event after deleting savefile

Now, I now the title is really obscure, but I have tried to solve the following problem for so long and most of it is integrated into my game so far that I can't just copy & paste it here, so this ...
Felix193's user avatar
0 votes
1 answer
153 views

Problem with JSON ScriptableObject saving using NewtonSoft JSON

I am saving a list of ScriptableObjects in a JSON file using NewtonSoft JSON, the problem being that the following error message is thrown when it tries to save: <...
Felix193's user avatar
0 votes
0 answers
125 views

"rigidbody property has been deprecated" when trying to save ScriptableObject to JSON with NewtonSoft

I am using NewtonSoft Json to save data in my Unity game, but when I try to save something it get this error: ...
Felix193's user avatar
-1 votes
1 answer
110 views

godot saving games, explain like I'm five

using this tutorial, my game crashes before opening and gives 0 errors... doesn't even tell me what's wrong. All the code I'm using is literally just this open project: https://github.com/...
Cei's user avatar
  • 863
2 votes
1 answer
231 views

How do I save the player's level progress in GameMaker?

My game, made in GameMaker, consists of various rooms (levels) through which you go on progress. So, imagine I'm on level 7, and I leave the game, it goes back to room 1. Also, the only thing I have ...
T14Seara's user avatar
1 vote
1 answer
431 views

Unity Save System - is there a better way?

I've been trying to understand how best to approach carrying state over between scenes, and how to save/load game state. I've built an isolated project to focus on building out this approach. You can ...
Samuel Slade's user avatar
0 votes
1 answer
39 views

How to make non-respawning collectables with a collection counter?

Using Godot 3.1, I've written this script for diamonds that the player collects: ...
Nina Monti's user avatar
0 votes
1 answer
105 views

Storing achievement code logic in JSON vs in source-code

I am creating an achievement system for my game engine. I represent an achievement as a class takes a predicate function to determine if requirement for unlock has been met. ...
Michael Moreno's user avatar
1 vote
2 answers
77 views

Loading game state before first save has occurred (chicken/egg problem)

I've learned that storing and loading game saves is commonly done by serializing runtime data into binary files and then loading in those binary files de-serialized to reconstruct the runtime state ...
Michael Moreno's user avatar
0 votes
1 answer
46 views

Confused about how specific bools or flags are actually accessed and used by other scripts

I have a problem which I'm sure can be abstracted to some larger concept but I don't really have the knowledge to know what to google. I'll just explain what im trying to do and if you can please tell ...
iamconfusion's user avatar
0 votes
1 answer
50 views

Should the state object be defined inside the actual object? For Save/Load purpose

I have a class Furniture with a subclass of FurnitureState where all the "live" data will be stored. During gameplay when the furniture will be turned off or relocated (Player action) it ...
RobinHood's user avatar
1 vote
2 answers
844 views

How to check if a Vector3 or Quaternion are unassigned?

How can I check whether Vector3 and Quaternion are not "null"? I have a saving system and didn't have a vector and ...
stingalimian galimian's user avatar
0 votes
2 answers
171 views

Where to trigger load from PlayerPrefs for data in a static class?

I have this save system that saves screenshots in consecutively-numbered files. I store the number of the last number used in PlayerPrefs, so that the next save ...
Daniel Lip's user avatar
  • 1,727
0 votes
0 answers
263 views

Can't save high score in Unreal Engine blueprints

I'm trying to make a pinball game in Unreal Engine with blueprints, but the high score does not save. You have 2 lives while playing, and after the game ends this save game function executes. The game ...
UE GameDev's user avatar
2 votes
1 answer
2k views

How to design a save system for both desktop and webgl builds?

I am in the process of designing a save system for a game. I would like to save to a file and upload this file online so that it can be securely accessed via login from any computer. This works fine ...
FrontEnd's user avatar
  • 1,687
0 votes
1 answer
118 views

How to add feature to save game at any location during gameplay?

recently I was playing Cold War a game released in 2005 ( please refer wikipedia link > https://en.wikipedia.org/wiki/Cold_War_(video_game) ). This game has feature where player can save game at ...
Barry Barab's user avatar
-1 votes
1 answer
152 views

Best way to save game in story game

In a while I plan to create a story game that would have different routes and endings and I was wondering what would be the best way to save a game of a game like this, if it would be a folder, ...
Noel's user avatar
  • 1
0 votes
1 answer
44 views

What aspects do I need to consider when designing save-data of equipment reference in MySQL for online game?

Currently I have several things to save in MySQL for an online game. For simplicity let's say there are heroes, weapons and armors, where heroes can equip weapons and/or armors. Now I am facing three ...
cr001's user avatar
  • 153
0 votes
0 answers
131 views

How to save a class full custom property types and their data to disk

Background: My app is a sandbox with a large number of parameters that I want to be able to easily add / selectively expose to the user, edit during runtime through the game UI or from the Unity ...
arcadeperfect's user avatar
1 vote
1 answer
189 views

Unity C# XML How to load a saved position and a saved stage

I have a problem. I already figured out how to save the player stats (including the player position). But every time I load it back, the player ends up in the saved position but still within the open ...
user avatar
3 votes
1 answer
154 views

Storing stateful function-based actions in a JSON

System: My game uses an "ECS + event queue" architecture where every tick, various events change the state of JSON-able data. Plain JS objects. Problem: I want to be able to save the game-...
Hypergardens's user avatar
5 votes
2 answers
1k views

Is there a game-design related reason why games with checkpoints don't implement "save on exit" as well?

This seems like a common question but I couldn't find it anywhere. Please excuse me, if this is a duplicate. EDIT: After receiving the first answer I realized this is too broad of a question. It does ...
Reverent Lapwing's user avatar
1 vote
1 answer
565 views

Unity - How to create a game-save with a preview image?

I want my game-save to be shown with a preview image. This is often seen in City Builder games: The game-save usually has a name, a date and often also provides a preview of the build city (just a ...
Vivien Lynn's user avatar
0 votes
1 answer
946 views

How could I intercept a save scene action being run in Unity?

How could I intercept a save scene action being run in Unity? There is some code I would like to run in editor whenever a scene is saved. Is it possible for me to detect somehow when a scene is saved?
qqqqqqq's user avatar
  • 268
0 votes
1 answer
237 views

How to convert large grid data to easily saveable format?

I'm trying to recreate the grid system from RimWorld, and I'm facing an issue when having to save the map, which can be up to 500x500 tiles in size. My map has multiple layers, the base layer is ...
caleidon's user avatar
  • 561
1 vote
0 answers
292 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 ...
Ginger's user avatar
  • 111
-1 votes
1 answer
435 views

How do I save my Highest Time for each level on playerprefs?

So I want to make hill climb wanna be game but have an issue with saving bestTime each level, the point is I want to save the best time for each level to ...
YouCanCallMe Syarif's user avatar
1 vote
2 answers
2k views

Best way to save game data in Unity

I am currently developing a game in unity and I want to add some sort of saving system that saves the following: Locked / unlocked level. The amount of money the player has. Items / perks that the ...
Tair Galili's user avatar
0 votes
1 answer
626 views

How can I update data saved using PlayerPrefs when there is a new version of my Unity3D game?

I'm using PlayerPrefs to store the players' highscore on each level, but in the next version I'll change how scoring works. For example, In the old version players could easily reach 250 points on a ...
Tudvari's user avatar
  • 721
0 votes
0 answers
102 views

UE4 Procedural Planet Design

I am building a game that requires a full planet but it would be too complicated to create it as one mesh, so I decided that I will use procedural generation to create the (partially) editable ...
Datis Reyhani's user avatar
0 votes
1 answer
48 views

Score won't save to Android in Game Maker Studio 1.4

I have oController as the first object to run when the game is opened. In oController's Game Start event I have the following code: ...
Rubbish Ambush's user avatar
1 vote
2 answers
922 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 ...
Matheson's user avatar
2 votes
1 answer
1k 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 ...
crass_sandwich's user avatar
2 votes
1 answer
80 views

Tilemaps are loading differently each time

Tilemap data is stored in a 2D array. It is saved using the following code ...
Featherball's user avatar
3 votes
1 answer
1k views

How can I save game "professionally"?

I am a novice programmer and just learned about the concept of saving and loading games. The way I am doing it is to write data into a text file and read it afterward. However, I realize how insecure ...
KacyDillon's user avatar
0 votes
1 answer
29 views

When updating app from Google Play will the app data be deleted? [closed]

My question is pretty simple. I developed a game, uploaded it on the store. In order to keep player level record and UI prefs it writes an ini file. When the next update is up on the store and the ...
tavi_tudor's user avatar
0 votes
1 answer
145 views

When PlayerRemoving event is fired, for loop does not work properly

while I was implementing the Backback save feature in my Roblox Game (using game.Players.PlayerRemoving:Connect(), I found that when I used a loop of any form (<...
sciencepi's user avatar
0 votes
0 answers
694 views

Serializing object members within unordered_map and storing into binary file (C++)

I'm making a multiplayer game, the Server stores it's game world state as various std::unordered_map in a class called ServerWorldState. The server is composed by a single class called Game, which ...
Mithrandir's user avatar
0 votes
0 answers
121 views

using Playerprefs on Android Mobile Platform

I have a question about playerprefs on my android mobile game not initializing properly. I have already pre-set my playerprefs data on a variable with a value of 3. In my play mode on unity the value ...
Ryan Cat's user avatar
0 votes
0 answers
19 views

Unreal - Where should I put my 'Save System Controller'

Making a save game system for a single player platformer game in Unreal. Needs to be accessible from the Main Menu Cannot be a component on the player. Where is the best place to put/store this ...
Natalo77's user avatar
  • 679
0 votes
1 answer
305 views

Persisting unlocked characters in Player Prefs

I am working on a character selection menu in Unity. If you have enough coins, you can buy your desired character. Once player buys one, that character must not be locked on game restart, the number ...
amin007's user avatar
  • 19
2 votes
1 answer
2k views

Is it safe to save data OnApplicationFocus and OnApplicationPause on mobile?

Unity has messages called OnApplicationPause and OnApplicationFocus. They are called on each ...
Evorlor's user avatar
  • 5,775
0 votes
1 answer
102 views

Multiplatform game, save game state and resume it on other platform

This is for a personal and knowledge acquiring project. I want to create a little TIC-TAC-TOE multiplatform game, app & web. The choosen technology for the app will be Android or Flutter and for ...
notarealgreal's user avatar
4 votes
1 answer
368 views

What Situations is Saving a Game to Main Memory for?

I've been reading through Unreal's 'Saving and Loading' guide: Link Within, they present a capability to save a game to main memory rather than secondary storage: I haven't found any information on ...
Natalo77's user avatar
  • 679
1 vote
1 answer
85 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 ...
Ankit singh kushwah's user avatar
0 votes
2 answers
889 views

Unity - Save/load in a sandbox game, how to instantiate saved objects

I have a game where a player can place GameObjects. I can save/load this GameObjects data with using JSON, for example its position, but I cannot think of a good way to tell my save-file (and my ...
Green_qaue's user avatar
  • 1,883
1 vote
1 answer
46 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 ...
dasLort's user avatar
  • 111