erandis-vol / Trainer-Editor

A trainer editor for the 3rd generation Pokémon games.
MIT License
15 stars 4 forks source link

Add some form of OutOfBounds handling. #1

Open easyaspi314 opened 7 years ago

easyaspi314 commented 7 years ago

A misconfigured INI can be annoying, as it is almost guaranteed that there will be an out-of-bounds error if not configured properly.

And sometimes this happens, especially when modifying existing hacks.

Even if it is a try-catch that shows a dialog like this,

Error The <attack|Pokémon|etc> that was selected has an index that is out of bounds. This almost always means that the .ini isn't configured properly. Try changing the Count value under [<attack/pokemon/etc>] to the correct number and try again. (hidden stack trace)

…it would be better than just an unhandled exception error (far too common in these ROM hacking utilities)

erandis-vol commented 7 years ago

Good idea. This is definitely doable.