Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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

Discussion in 'Editor & General Support' started by stephane_m37, Oct 26, 2020.

  1. stephane_m37

    stephane_m37

    Joined:
    Oct 26, 2020
    Posts:
    2
    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 :
    Code (CSharp):
    1. PROP
    2.     {
    3.         name = pb_AG07-F03-G1
    4.         position = -0,34234,0,0166,-0,6497122
    5.         rotation = 0,7071068,0,0,0,7071068
    6.         scale = 0,6319448,0,5927175,0,2973354
    7.     }
    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 :
    Code (CSharp):
    1. PROP
    2.     {
    3.         name = PanelDivider
    4.         position = -0.1352702,0.2921445,-0.6558286
    5.         rotation = 0,0,1,0
    6.         scale = 299.6408,1.01184,1.011836
    7.     }
    8.     PROP
    9.     {
    10.         name = IndADV_2Scales_ChargeCons
    11.         position = -0.1879842,0.3277046,-0.656464
    12.         rotation = 0.7071068,0,0,0.7071068
    13.         scale = 0.3678923,0.4636782,0.3678954
    14.     }
    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)
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
  3. stephane_m37

    stephane_m37

    Joined:
    Oct 26, 2020
    Posts:
    2
    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.
     
    karl_jones likes this.