Nenkai / FF16Tools

Tools for Final Fantasy XVI / 16.
MIT License
39 stars 4 forks source link

NXD to SQL fails on floating point values on locales that use comma as decimal separator #17

Closed ThisIsMyNameBecauseEverythingIsTaken closed 1 month ago

ThisIsMyNameBecauseEverythingIsTaken commented 1 month ago

Throws an sqlite exception "SQLite Error 1: 'all VALUES must have the same number of terms'" because the dot gets replaced by a comma and sqlite sees it as two separate values.

Quick and dirty fix is to add Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; to the beginning of Main.

Nenkai commented 1 month ago

I actually had no clue why this was happening for some users. Thanks for the tip, will be fixed for the next release

Nenkai commented 1 month ago

Should be solved with 1.4.0