A Fix for the "Heat Stroke" Bug?

We may have found (and fixed) the "heat stroke" bug today!

I stumbled across this thread today, which features a puzzled Stelcio asking how his perfectly healthy character died of "heat stroke."

As with many reports of the bug, initially, I didn't think there was much I could do to reproduce it. It seemed to be something that just happened after "a while." However, Stelcio ran into it with a subsequent game, and I caught his comment soon enough to get a savegame from him. After some testing, I started to see the "heat stroke" for myself!

It turns out, the bug is one which slowly builds over time, and only in certain situations. Namely, the player needs to load a game, and return to the same camp they loaded multiple times. Then, each time they re-enter the camp, that camp's effects get stacked on the player.

To make matters trickier, each camp has different stats, so the effects are different depending on the camp. Some players experience heat exhaustion, others get insomnia. Still others experience healing rate changes. And it can be any combination of the three, or none at all, depending on the camps, and number of times visited.

Fortunately, it's actually a simple fix. The tricky part was just figuring out where the problem happens. I just had to add a special step in the loading code to make sure the starting camp is correctly accounted for, and then, everything seems to be working again.

Unfortunately, I didn't have time to make a new build and upload the fix today, so it'll have to wait until Monday. Until then, you can actually minimize the bug by avoiding the camp you start in after loading a game. (I.e. save your game in a campsite you don't care about, until I can upload the fix.)

So is this the end of the infamous "acid rain?" Only time will tell. But I'm optimistic!

Have a great weekend, all!


Scavenger's picture

Wait a moment.. weren't stacking camp effects suspected culprit last time the bug was being handled as well as discussed on the forum? Either I developed precognition or I don't understand something.

dcfedor's picture

It may have been. But I think that way back when, camp stats stacked all the time, not just after loading and revisiting the one camp.

It's also possible that I just broke it again while changing something :)

Dan Fedor - Founder, Blue Bottle Games

mdqp's picture

No heat strokes anymore! Yay! :D :D :D

I lost many unfortunate scavengers to that plague (post apocalyptic worlds must be very hot indeed!), glad to hear it got sorted out.