Validate game state
Pathoschild opened this issue ยท 2 comments
Add logic to validate the game state to detect problems that cause null-reference exceptions and index-out-of-bound errors in the game's Update
code. If it's efficient enough, possibly revalidate state after mod events so we can show meaningful errors:
PineApples Everywhere incorrectly changed game state, which will likely crash the game (detected location 'New Location' with null map).
Example errors:
NullReferenceException
in update loop (log).