so, if the maximum value in range for byte entries is 127, i could easily set all the unsure parameters to signed chars?If there are content files that contains invalid negative values (value range does not exceed 127, negative value not allowed but used anyway) we still need signed to be able to detect these properly.
the fields in question are reputation value (the opencs validator checks if this value is below 0, but a comment says that there are no npcs in morrowind.esm with negative reputation, so that is assumed invalid) and the skill list, mSkills (this one is an array of base skill attributes for npcs, when loaded, the actual npc will have the skill value determined by
Code: Select all
actualSkill[i] = std::max(0, mSkill[i])
i assumed those two parameters as unsigned, but i'm totally unsure about my choice.. should i check tribunal.esm and bloodmoon.esm as well as some random plugin files or there is a easy answer to my doublt?