Giveaway Errors, and Bug Fixing

Hey Folks! First up, let me apologize for the issues you've encountered with NationFusion's giveaway. Apparently, this is a bigger issue than originally thought, and they're working on a fix. The good news is that it's still going to happen, but it'll take some more time to sort out.

In other news, I'm still working on crash bugs.

I stumbled upon a crash while crafting a shotgun with a strap, and in the process of fixing that, I broke a memory leak fix. Ugh. So one full day later, I've finally got both fixed at the same time. I had to take one big destroy() call out, and sprinkle it strategically around in other places to avoid killing items prematurely when crafting.

Fortunately, this seems to not only fix the bug, but also improves memory leaks a bit. Hopefully, no side effects as a result, but we're on the lookout.

A second issue I've encountered involved items changing modes, such as with flashlights. It seems that if you tried to turn a flashlight on and failed, and later found one that worked, the one that fails after that might crash the game. Really. This is the type of bug we're down to fixing.

As it turned out, this was again due to memory leak fixes being too aggressive. Or more accurately, being too aggressive because of inaccurate bookkeeping. The failed "turn on" was trying to destroy the "on" mode too many times, which is why this only happened after a few flashlights were spawned and switched on/off. But, fixed now!

And lastly, I'm on the heels of a crash bug when trying to revisit the Last Chance diner. This appears to be a problem with (again) memory leak fixes destroying the sign object in the hex, but somehow leaving it in the hex's list of objects to draw. It seems like it's being removed correctly from the hex, so I'm unsure why it tries to draw the next time the hex is rendered.

That'll be tomorrow's task.

I guess the bright side of all this is that these are pretty esoteric bugs. They'll happen for a fraction of the users, usually long into the game. And with autosave, it should only be a minor setback. But still, it'd be nice to launch without a thousand bad reviews :)