Graceful mod loader error handling
Closed this issue · 3 comments
axiand commented
- Don't crash the game if
Fuji.json
is missing. - Display a user-friendly error message if a mod fails to load. Should not interrupt gameplay or force the game to be restarted.
- Enforce unique mod IDs.
jasminegamedev commented
Note: We should wait until #46 is merged to start this, because it moves all the relevant files around.
Update: This is merged now
jasminegamedev commented
I took care of the first and third parts of this in e20ea90, so now it properly enforces mods be unique, and it no longer crashes like it was doing before.
Currently, it will just log the error to the log file, but if we want it to show the error on screen, I think we should handle that as a separate commit.
jasminegamedev commented
Finished in 5bb0240. I added an on screen warning on overworld screen when mods failed to load plus I added a popup with more specific details when opening the mod menu.