OpenMLTD / MLTDTools

Tools for THE iDOLM@STER Million Live! Theater Days (MLTD/MiriShita/ミリシタ) / 偶像大师百万演唱会剧场时光工具箱
BSD 3-Clause Clear License
142 stars 17 forks source link

input string was not in a correct format error #26

Open kdru opened 4 years ago

kdru commented 4 years ago

When I try to convert the model, I get an error A small window pops up and says "input string was not in a correct format". By default, my decimal separator is a dot. I changed the decimal separator to coma and have tried to run the program again. Now I get a huge error. Again about input string. 1 2

hozuki commented 4 years ago

Ah, decimal separators and globalization, what a nightmare... It seems to be the same problem in #25 (and #6 maybe). In a recent commit (f728db60a0eea9a11be92cf933631044725577dc) the unit of height is changed from meter (m) to centimeter (cm), so there will not be decimal points any more. (i.e. default height 1.6m -> 160cm) Please have a try on the latest CI build.

kdru commented 4 years ago

Actually i figured out how can I bypass this problem Set the decimal separator to a dot and enter the height like 1.60, program will give two warnings but will work anyway of you press ok

hozuki commented 4 years ago

But still it's an unexpected behavior and should be considered as a bug. :)