the current version of OpenMW-CS only uses very generic limits for data fields (the min/max range of the used data types). However, vanilla Morrowind and, thus, our code need many values to be within a specific range.
This is true for line edits (32-signs limit for certain strings), spin boxes (limits for attributes or AI behaviour), and double spin boxes (limits for weapon speed or weapon reach). While this may "only" lead to unexpected behaviour in some cases, wrong values can break or crash the game.
Currently, modders only have the (optional and incomplete) verifier in order to check their changes for typos and plain mistakes. If you ask me, we should change that in the future. One possible way to do this:
- Create a list of all value ranges for the various record data. (Already done.)
- Implement some kind of limit mapping to be used while processing record data.
- Automatically add field limits to all user-editable fields using that map.
- Automatically add tool tips to all these fields in order to (i.a.) provide information about the corresponding value ranges.
- Extend the verifier's functionality to cover all record data (again, using the limits map).
- What shall we do, if an existing file contains values which are out of range?
- What limits shall we use, if a certain restriction isn't present in OpenMW? The vanilla limits or custom ones?