Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormatException: Input string was not in a correct format. #2

Open
Haapavuo opened this issue Mar 22, 2020 · 1 comment
Open

FormatException: Input string was not in a correct format. #2

Haapavuo opened this issue Mar 22, 2020 · 1 comment

Comments

@Haapavuo
Copy link

MixandJam scene gives the following error when you go talk to the brown guy.

FormatException: Input string was not in a correct format.
System.Number.ParseSingle (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Single.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Single.Parse (System.String s) (at <437ba245d8404784b9fbab9b439ac908>:0)
TMPro.TMP_Animated+<>c__DisplayClass5_0.g__EvaluateTag|2 (System.String tag) (at Assets/TMP_Animated/Runtime/TMP_Animated.cs:89)
TMPro.TMP_Animated+<>c__DisplayClass5_0+<g__Read|1>d.MoveNext () (at Assets/TMP_Animated/Runtime/TMP_Animated.cs:62)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :0)

@Haapavuo
Copy link
Author

This can be fixed by changing "pause=.1" to "pause=0,1" in the dialogue data files. My Windows 10 locale doesn't want to parse decimal dots (Finland has commas instead). You should change float.Parse to use invariant culture in TMP_Animated.cs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant