Beyond the Fix: Uncovering Hidden Saves
Today I asked Gemini what I should work on. I had fed it my last two dev logs so it knew what I have on my plate. It suggested three things, fix a bug I identified, begin working on the interaction system, and work on my building template. It strongly urged me to fix the bug. This is something I had worked on previously and thought I fixed, but it kept cropping up.
So I dove back into making it work right. See, during the loading of a game, I have these signals that are sent by my in-game time keeper. Things trigger on these signals, but they shouldn't when the game is loading. I was having an issue that loading a game made my player's hunger drop. I re-arranged the order of operations and I thought that took care of the problem, but it was still popping up on occasion.
And that made it even weirder, why wasn't it happening all the time? Well, as it turns out I really messed up with my time signals. I had set my savegame manager to listen to one of those signals, so right after I loaded my game it would immediately save. I'm not sure how the two bugs interacted, but somehow they worked together to make my life difficult.
Eventually I stumbled on two different, but similar solutions. First, I was setting a variable used to flag starting a new game in the wrong location. Moving it up a few lines made it fire at the right time, preventing the playerstats manager from triggering when it shouldn't be. Second, I added a quick conditional to my time handler, so now it only starts to save the game when time naturally flows, and not during a forced update.
It's nice to find and solve a bug you didn't even know existed. And it's great to fix one you needed to address. There's still so much more to do, but this is great progress for today. What do you think I should work on next?
Xenodochium
The future is what you make of it!
Status | In development |
Author | Munchmo |
Genre | Role Playing |
Tags | 2D, Cozy, Godot, Indie, Life Simulation, Pixel Art, Sci-fi, Singleplayer |
Languages | English |
More posts
- Quitting: No More Ghosts16 hours ago
- Induction: Complete(ish)1 day ago
- Stepping Back: Keep Going2 days ago
- Induction? Terminal!3 days ago
- Quest Manager: Tool Level4 days ago
- Playerstats Manager: Starving To Death5 days ago
- A Minimal Day6 days ago
- Inventory: Now On Display8 days ago
- Inventory: Item Slots and Updates9 days ago
- Inventory: An Empty Display10 days ago
Leave a comment
Log in with itch.io to leave a comment.