Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Plugin breaks on non-english systems #4

Closed
ric20007 opened this issue Apr 21, 2020 · 0 comments · Fixed by #5
Closed

Plugin breaks on non-english systems #4

ric20007 opened this issue Apr 21, 2020 · 0 comments · Fixed by #5

Comments

@ric20007
Copy link
Contributor

The plugin fails to start on systems where the decimal point is not "." when parsing a color, some countries use a different decimal point separator and it's making the plugin crash.

The exception I get when starting the game:

[Error  : Unity Log] FormatException: Input string was not in a correct format.
Stack trace: 

System.Number.ParseSingle (System.String value, System.Globalization.NumberStyles options,
 System.Globalization.NumberFormatInfo numfmt) (at <2fa7a6a452ca43df998f07fd1486c0df>:0)  
System.Single.Parse (System.String s, System.Globalization.NumberStyles style, System.Glob
alization.NumberFormatInfo info) (at <2fa7a6a452ca43df998f07fd1486c0df>:0)  
System.Single.Parse (System.String s) (at <2fa7a6a452ca43df998f07fd1486c0df>:0)  
System.Array.ConvertAll[TInput,TOutput] (TInput[] array, System.Converter`2[TInput,TOutput
] converter) (at <2fa7a6a452ca43df998f07fd1486c0df>:0)  
Pingprovements.Extensions.ToColor (System.String colorString) (at <2c90838e5b43455a9dddee7
f0b2d3518>:0)  
Pingprovements.PingerController..ctor (Pingprovements.Pingprovements plugin) (at <2c90838e
5b43455a9dddee7f0b2d3518>:0)  
Pingprovements.Pingprovements.Awake () (at <2c90838e5b43455a9dddee7f0b2d3518>:0)  
UnityEngine.GameObject:AddComponent(Type)  
BepInEx.Bootstrap.Chainloader:Start()  
UnityEngine.Application:.cctor()  
RoR2.SkinDef:Awake()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant