SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

Validate game state

Pathoschild opened this issue ยท 2 comments

commented

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).

commented

Example errors:

  • NullReferenceException in update loop (log).
commented

The scope for this task is too broad; smaller tickets will be created as needed instead.