v0.44.0a Bug Fix Release! Resolves display issue. (Patreon)
Content
I've released v0.44.0a, replacing the old links. You can find the links here: Lab Rats 2 v0.44.0a. It should be save compatible with .44.0 saves.
A couple of nights ago I released v0.44.0, confident that my unit and integration tests had caught any critical bugs. I was expecting the normal suite of typos, crashes in specific events, and events improperly set up, but that had to be the worst of it, right?
Silly me.
Immediately after release I was getting reports of a major bug: the main UI elements weren't updating. But that's impossible, because I had tested all of the major actions in the game, all of which I checked were working by watching the UI change! I unpacked the built version of the game and confirmed that yes, all of the UI elements were failing to updating when a value changed, which meant you had no clue what your energy, arousal, or a girls Sluttinss were.
I checked the source version of the game, where I discovered that the bug was there too. That couldn't have been true though, because the exact same code run pre-release had been working fine. What followed was some frustrating debugging, which I will spare you from the bulk of.
The culprit wasn't me this time (not for this particular bug. There were other ones that were my fault that I fixed up at the same time), it was Ren'py! It seems that at some point during the build process, likely as part of the Android build, Ren'py auto-updated itself. This new version has incorrect (or at least different) behaviour for text buttons than old version. For some reason the new version doesn't update variable interpolation inside of child objects, like the text displayed on a text button. Most of the values displayed on main UI are actually text buttons which display tooltips when hovered, so none of them would update after being displayed for the first time.
The fix was simple enough once the problem was identified, I just had to manually grab the variables and avoid using Ren'py's value interpolation for them. The code is a little less neat now, but it's a small price to pay for it to actually work. I considered rolling back to an old version of Ren'py, but decided it was better to keep up with the most recent version.
Now I'm sure that was the last bug, right?