Unity 2019.2.20f1 format string error with Kerbal space program last Part Tools

hi !
using unity 2019.2.20f1 on french install windows 10
working with the last part tool pluggins for kerbal space program here
the save to config option generate “,” instead of “.” for number
ex :

PROP
    {
        name = pb_AG07-F03-G1
        position = -0,34234,0,0166,-0,6497122
        rotation = 0,7071068,0,0,0,7071068
        scale = 0,6319448,0,5927175,0,2973354
    }

the correct format would be ex : position = -0**.34234,0.0166,-0.**6497122
the option to import object in unity causes this error :

the result of this error object from .cfg file are not loaded in the scene only one with location set to 0,0,0
format of this cfg file is for example :

PROP
    {
        name = PanelDivider
        position = -0.1352702,0.2921445,-0.6558286
        rotation = 0,0,1,0
        scale = 299.6408,1.01184,1.011836
    }
    PROP
    {
        name = IndADV_2Scales_ChargeCons
        position = -0.1879842,0.3277046,-0.656464
        rotation = 0.7071068,0,0,0.7071068
        scale = 0.3678923,0.4636782,0.3678954
    }

number are in correct format !

my windows parameter for region and language are on french and the format option for number decimal symbol is selected on “.”
Package for my project are :
-Asset Bundle Browser
-Mathematics
-Package Manager UI
-Unity Collaborate
-Unity Timeline
-Unity UI
-Visual Studio Code Editor

thk !
stephane (french user)

This sounds like an issue with the tool
It sounds like they are using culture-specific number formatting when they should be using culture-independent (invariant). Try posting on the forum for the tool. It should be a simple fix once they spot the problem. https://forum.kerbalspaceprogram.com/index.php?/topic/160487-parttools-updated/

hi !
thank for the answer, i find the problem, it’s a windows regional format in parameter tab language and hour
changing to french → English solve the problem !!
need a fix for windows french plateform.
i 'm going to post you’re answer in ksp forum.
thk.

1 Like