btd6_mods icon indicating copy to clipboard operation
btd6_mods copied to clipboard

Damage and rate changer: decimal number with point not accepted

Open rody62 opened this issue 2 years ago • 0 comments

Hi, With Damage and rate changer, I have an error when I enter 0.5, but it works with 0,5 (comma OK, point KO). I am french, and comma is the standard for decimal in france, so this could explain that, and I play on Epic Games version:

Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.FormatException: Input string was not in a correct format.
   at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
   at System.Single.Parse(String s)
   at damage_changer.Main.<>c.<OnUpdate>b__4_0(String s) in C:\Users\Timothe\Documents\GitHub\btd6_mods\damage_changer\Main.cs:line 118
   at (il2cpp delegate trampoline) System.Void_System.Action`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]_System.String(IntPtr , IntPtr , Il2CppMethodInfo* )
Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.FormatException: Input string was not in a correct format.
   at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
   at System.Single.Parse(String s)
   at rate_changer.Main.<>c.<OnUpdate>b__1_0(String s) in C:\Users\Timothe\Documents\GitHub\btd6_mods\rate_changer\Main.cs:line 66
   at (il2cpp delegate trampoline) System.Void_System.Action`1[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]_System.String(IntPtr , IntPtr , Il2CppMethodInfo* )

I take this chance to say: Could you at least log in console the value on change for those two mods ? And thank you for those great mods.

rody62 avatar Feb 18 '23 10:02 rody62