We are using versions 2.1.27 and 3.8.99 concurrently, with a shift towards primarily working on version 3.8.99.
Understood. I still highly suggest targeting 4.1 or 4.2, if at all possible.
It seems setting the language in 4.x almost worked. Digging a bit deeper, the problem is that 2.1.27 saves its preferences in prefs.json
, which is the same file 3.8.99 uses. When 3.8.99 is started, the launcher is smart enough to set the correct language in the prefs.json
file. However, when 3.8.99 reads that file, it sees the 2.1.27 data in the file is so old that it is incompatible, so it recreates it with the default settings, losing the language.
In 4.x+ we fix this problem by versioning the settings file. That is why you will find files like settings/editor-1.json
and settings/editor-2.json
. When the file is incompatible with older versions, we increase the number.
We can improve this behavior by having the launcher check the prefs.json
version number. If you are launching 3.8.99 and the prefs.json
is so old that 3.8.99 will overwrite it, the launcher will overwrite it instead. That way the language from the launcher is used. We have done this in launcher version 4.2.06, available now (you'll need to download and reinstall Spine from your license page).
Another workaround would be to juggle the prefs.json
file yourself. You could write a shell script that copies a prefs.json
for 2.1.27, then launches Spine. You'd have another script that copies a prefs.json
for 3.8.99, then launches Spine. This way you are sure to get all the right settings for the respective version. Your prefs.json
file can be found here:
Windows: <user home folder>\Spine\prefs.json
Mac: <user home folder>/Library/Application Support/Spine/prefs.json
Linux: <user home folder>/.spine/prefs.json