Deep Debugging On Mobile
Still digging into bugs on mobile today. Been spending most of my time tracking down a weird demo bug which spawned feral dogs and King Elias in the demo, instead of the player.
As it turns out, this was a tiny bug in the code with big implications. A missed closing quote caused all creaturesources (i.e. spawn rules) to be added to the list of creatures (i.e. actual creature stats), so we ended up having our creature list IDs mixed up. Adding that quote into the code seems to have fixed the issue, and I'm checking for any others.
I'm also trying to figure out why the hypothermic car/sleeping bag encounter doesn't trigger in the Haxe version. And so far, signs point to a limitation in the Date() class on Haxe. Flash supported years up to 9999, which was my default "Max date" for encounter triggers. In Haxe, however, that gets changed to 1900, probably due to some overflow causing a default value. As a result, almost all date-based encounter triggers are failing.
Again, simple fix, but tricky to find. A NEO Scavenger specialty!
More like this to come, I suspect!
Finally, I've been chatting with Josh on his latest track. As usual, it sounds awesome. I'm checking with him to see if we can make it shorter, as it's closer to 7 minutes, and that might feel a bit long in-game. But it sounds quite good, so I don't want to break it by being picky. We'll see what he says about the difficulty of shortening it.
That's all for today. Have a good one, all!