BepInExConfigManager icon indicating copy to clipboard operation
BepInExConfigManager copied to clipboard

Broken float handling

Open benediktwerner opened this issue 2 years ago • 0 comments

When opening the manager, the period is removed from all float settings, so e.g. 0.7 just becomes 7. Saving then ofc gives wildly incorrect values. I also can't type a period into any float fields.

This likely has something to do with my system language being German which uses a , instead of a . for decimals. I've had the same problem in the past with another config manager. Certain standard C# float formatting functions take this into account. Presumably, some different function then removes everything that's not a number or period which means the result then doesn't have either. And I guess the same mechanism also removes them when trying I try to type either of them.

It does insert and display a period . when resetting the value to the default though.

benediktwerner avatar Nov 11 '22 18:11 benediktwerner