Bannerlord.MBOptionScreen
Bannerlord.MBOptionScreen copied to clipboard
Long texts in string settings
When using very long texts in the settings they overflow the text box. The text editing dialog also presents some glitches, and when trying to select the whole text the game throws:
System.ArgumentOutOfRangeException: 'Length cannot be less than zero.
Parameter name: length'
The example images are settings containing banner codes generated with the online banner editor
Images
Can't say it's expected that the game would handle this, but adding length checks in MCM would be a good thing anyway. Thanks for reporting!
This concrete error, if I remember right, is caused by some strange condition Basically, it will trigger when casually using the edit dialog and randomly selecting text. The game's logic is causing this. I added a simple workaround that ignores the exception. Further investigation is needed