Godot Version
Godot 4.7.stable
Question
So, for my game, I wanted to have pre-determined chunks that would be dynamically saved and loaded to disk. To do this, I built a save/load system that serializes the tscn and takes a snapshot of any animation players. To build upon this, I expanded the system to include what I’ve called Room Singletons; these are tscns like small buildings or houses that you can enter and that don’t use a chunk-loading system but still need to be saved. This system is used in conjunction with a more traditional JSON approach that saves stuff like player health and position.
Up until recently, this worked nicely. But after implementing some area2Ds that control my Camera2D’s limits, and reworking a bit of the system to save properly, I’ve run into this really weird issue–my camera2D doesn’t exist as far as the editor is concerned, even though all my other nodes do, and visually, while playing the game, it looks identical. It’s important to note that I have a 3.75 zoomed camera, so I’d notice if it were using the default Godot one, but it looks the same.
My main question is: has anyone else experienced nodes disappearing like this, and if you have, how did you fix it?
My save/load scripts are a bit lengthy (~300 lines total), so I won’t paste them here, but I can link a GitHub repo if that would be helpful. Thanks!!