Open Skaruts opened 2 years ago
Found the solution for this here. The problem has to do with the CurrentCulture
settings.
There's probably an easier solution, but for now I fixed it by adding the CultureInfo.InvariantCulture
argument to all calls to float.Parse
and to all ToString
calls that are made on float values.
The test map was imported successfully now. :)
How do I do that?
(Found solution, see second post.)
I'm on Unity 2019.3.13f1. When I do
Tools -> BSP -> Import Map
I immediately get an error:On this line here:
https://github.com/JohnEvans512/UBSPMapTools/blob/4c4a2eec33d40808e22ae7e41aad38694d207598/UBSPMapTools/Scripts/Editor/BSPCommon.cs#L166
I'm new to Unity and C#, so I don't know how to fix this. However, if I try to workaround it by replacing
float.Parse(settings[6])
with0.02f
, then it works, but I still get similar errors during the map import process (and it fails to import):