Resolving Decision Race Conditions


I continue to hammer down the most obvious and pesky bugs in preparation to the start of the closed alpha next week.

The biggest issue I fixed this time around was a weird race condition that occurs when a tribe has to resolve two or more decision chains at the same time. In this case, what was happening is that a clan had to decide at the same time to demand influence from the dominant clan while at the same time it was deciding to split from the tribe to form its own, This made the game crash because the clan would end up demanding influence from another clan that is no longer part of the same tribe. 

Normally, decisions are resolved in a first-come-first serve basis. But some decisions, when resolved, spawn other decisions, forming a decision chain, and these new decisions are pushed to the end of the queue, causing a problem when two different decision chains intermix. To solve this issue, I decided to add a priority system, where some decisions have to be solved before others even if they were created after. In this manner, an already initiated decision chain must be completed before any other decision chain can start. This was a rather big change that broke other things, but I had a chance to solve those issues in a creative way. Saving me some time.

Anyway, as I mentioned, the closed alpha will start next week. If you want to be part of it, please make sure to read this post with all the details.

Get Worlds - History Simulator

Leave a comment

Log in with itch.io to leave a comment.