Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Okay. It is fixed.

The issue was the third-party open source library we were using to save/load was based entirely on a recursive algorithm. Once the number of people grew too large, it kept just going through their social relationships, calling the recursive function each time it encountered a new person. As such, the thing hit a stack overflow due to having, for every person, called a new recurrence of the function.

Technically it worked, it just scaled so badly that once people hit a certain threshold Unity died.

I've reworked how people refer to one another. The new implementation is technically ugly, and goes against accepted best practices, but it at least works.

At least, I hope. New bugfix version is available for download.

Saving and loading 64x60 map is flawless, testing autosave now, when I have finished testing on this save I will stress/chaos test it by trying double, quadruple, octuple, etc. sizes of maps and if you want I can try and hexedit a test save to be some insane dimensions, with either cloned or random data. :) I really enjoy helping you out here. Will report back if there are any further bugs, crashes or oddities!

(+1)

We've got no current bugs which need tracking down, thanks. The TODO file has a few things, but they're mostly just missing features and gameplay adjustments.

Of course, since it's open source, if you really want to see how it works you could even recompile from source (as long as you can find a version of Unity old enough). The code base is somewhat organised, but has had to compromise in a few areas. Certainly not my best code, but sadly not my worst.

Thanks again for the help, though. Glad to have save/loading actually stable and functional for all known configurations. One problem taken care of for the immediate future, leaving more time to implement vampires and zombies.

Gotcha! I'll keep playing the game, might actually buy the game soon, it being "name your own price" priced after all, I'll probably pay an equivalent of a few packs of cigarettes or a bag of coffee beans, a box of energy drinks, whichever "programmer stimulant" you favor :) Good luck with the development!

Thanks man. New version just compiled, hopefully this one won't break the save/load system again. I prefer to solve new bugs, not the same damn one repeatedly.