Help! Open World Save/Load for individual assets.

I’m creating a small open world game (1sq m) and it is an exploration type game where you can rummage so every drawer,fridge, door, chest, etc should be persistent across game plays. This obviously means that I need to make 100’s of object states savable.

I would prefer to not open a file and save it every time the player opens and closes or collects an item so I’m trying to figure out how to make one big serializable object that contains references to all of these objects as well as my player’s inventory, etc.

I’ve tried watching videos, and google but most of them focus on player data, not hundreds of random object states.

Anyone have a suggestion or two?

  • where are you storing your data? local db? cloud?
  • do you have save/load functions (buttons) or are you planing to save as the objects change?
  • live multiplayer or single player?
  • what platform? mobile? web? desktop?
  1. Planning on storing it locally.
  2. I do not currently have save/load functions, but I would like to not save as objects change. I planned on having one big serializable object that stores the states of all objects but I’m not sure where to start with this.
  3. single player.
  4. PC