Bug fix


A player reported that their game simulation was stuck and unable to end. This was a major bug, and I'm glad someone found it. The user said they tried to call a timeout near the end of the sim (4th quarter), and then this happened. After recreating the scenario so many times, slowing down the timers for each possession, I finally did it.

Reason: During simulation, performing an action (sub, timeout, strategy) when there is 0 second remaining would lead to no generated sim, making the data empty.

Fix: Before entering the game layout, check if the data is empty. If it's empty, delete that data before entering the game layout. If not empty, then just enter normally into the game layout.

This is just to fix the issue for the affected player(s) to let them continue to play the simulation, but I need to figure out how to prevent it from happening again.

Leave a comment

Log in with itch.io to leave a comment.