Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
2 answers
28 views

How to prevent the "_ready" events and pre-ready var declarations in a loaded,instantiated scene?

I have a simple savegame/loadgame system that packs the entire world scene to the disk, then loads it via ResourceLoader.load(): ...
Noideas's user avatar
  • 15
0 votes
0 answers
57 views

Stray (orphaned) nodes remain after queue_free() of their parent scene

Godot 4.2.1 I have implemented a simple scene-save system: The Savegame Autoload listens for the S key press. When S is pressed, the ...
Noideas's user avatar
  • 15
0 votes
2 answers
66 views

How do I save data for multiple things sharing the same script?

I have level 0 rusted sword, then I upgrade it and save my game. I implemented my save system by following Godot tutorials. But with this approach, after exiting and re-launching the game, all rusted ...
Xenophile's user avatar
1 vote
1 answer
70 views

How do I restore the cooldown time left I have previously stored?

Wether I convert the timer's .time_left to an interger or a float it always gives me an error saying ...
Atsinganoi Dragon's user avatar
0 votes
0 answers
44 views

Why doesn't my save system work on IOS?

I am building an IOS game in Unity. I have constructed a save system and it seems to function as expected in editor, but does not when I release a build to my device. Additionally, if there is some ...
Devin's user avatar
  • 1
0 votes
1 answer
59 views

Can't compare integer variable loaded from save data, but another identical variable works fine

this works: ...
Atsinganoi Dragon's user avatar
0 votes
1 answer
63 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
  • 113
1 vote
3 answers
143 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 ...
twilightstar's user avatar
0 votes
0 answers
78 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
67 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
296 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
287 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
157 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
399 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
751 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
48 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
134 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
84 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
47 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
57 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
1k 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
191 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,747
0 votes
0 answers
318 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,707
0 votes
1 answer
149 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
167 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
47 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
233 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
201 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
183 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
638 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
1k 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
  • 278
0 votes
1 answer
260 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
  • 581
1 vote
0 answers
326 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
487 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
685 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
  • 751
0 votes
0 answers
103 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
970 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
2k 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
86 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
2k 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
158 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
756 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
133 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
20 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
  • 689
0 votes
1 answer
309 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