I spent a day isolated trying to get Final Orbit in a playable state for Early Access (since the whole project has been a bit fragmented up until now). Much of that day was spent trying to figure out why logging in wasn't working properly.
Here's the story. I had just restructured the splash screen and menu. It was just a bit of housekeeping, a simple tidy up with consequences. Now, logging in didn't last long. You'd be logged out again straight away.
On the bright side, this bug did help me uncover some related bugs. One that would have caused a minor issue- not being able to log in again if an error caused you to be logged out without restarting the game. The other major bug I uncovered was a big one- the game crashing during while receiving information from the Game Jolt API. I'm glad I got those fixed.
Finally, I realised the problem. When I restructured the game's opening, I duplicated my network handler. Every instruction passed to that handler was being received twice. The second login instruction effectively reset the logged state of the handler. Such a simple thing but I lost my mind over it.
The good news is, it's all fixed and I am so far ahead of schedule I could relax... but instead, I'll use the extra time to add polish and fix more bugs!
Tl;dr: I had a bug, with a simple solution. I fixed it... eventually.
0 comments