Lua: Region record store bindings
Is the problem OpenMW specific or does it also happen in vanilla Morrowind?
This is specific to OpenMW 0.49. This issue does not occur in the stable release of OpenMW 0.48.
What version of OpenMW are you using? If you used a bleeding edge build, state the exact revision used.
OpenMW 0.49.0, revision 61d01f3b (Lua API_REVISION 56)
Do you use any mods? If so, does the problem also occur in a clean vanilla install without any mods?
This problem occurs without any mods, just using the Morrowind.esm is enough to reproduce the issue.
What are the exact steps to reproduce the problem?
Travel to any exterior cell, then open the console. Enter the "lua player context" (luap
) and then check the string returned from the command self.cell.region
. The issue is that the string is returned as all lowercase characters the used ID cannot be used to determine the region's displayed name.
What did you expect to happen? What happened instead?
The string was expected to be returned as a title case string but returned as lower case (e.g. expected "Bitter Coast Region", received "bitter coast region"). It's expected that there should be a way to determine the region's displayed name based on the ID provided by the cell.