• Editor
  • Can I force Spine to use a version for cmd line exports?

Related Discussions
...

Hi,

I just discovered that my current project ( which I hadn't touched for a while) does not work with files exported from Spine 3.
I modified the code of the runtime a bit, and it's probably not totally trivial for me to update the runtime right now. I rather use an old version of Spine for this project.

I have an automated build set up that exports many .spine files to atlases+json files.
Looks like that this batch process now (using Spine 3) produces files that are not compatible with the old runtime code


When I switch Spine back to a 2.xxx version, it works.

Here's my question(s):

1.) Can I tell spine via command line to use a specific version (only) when exporting? ( Something like "


use-version 2.1.xxxx") .

2.) Where is the "currently used version" stored? (<


This is more a general question about how Spine uses different versions in parallel on the same machine).

I think that this might be interesting for other ppl: Imagine a build server which needs to build different projects with source files built with a different version of Spine.

I would assume it uses the version that is currently used via settings. but if not this should be supported. 🙂

Indeed, I also have since then discovered a file "version.txt" in ~/Spine/ ...

The question if I can override it via command line still remains ;-)

See `


update` below.

$ spine 

---

help
Spine - Esoteric Software - http://esotericsoftware.com

Usage:
Editor: Spine [-hvlkn] [-x <host:port>] [-u <version>] [-s <scale>]
        [<project.spine>]
Export: Spine [-i <project.spine>] [-o <path>] -e <path>
  Pack: Spine -i <path> -o <path> -p <name>

Editor:
-h, 

---

help       Print this help message and exit.
-v, 

---

version    Print version information and exit.
-l, 

---

logout     Logout, removing activation code.
-u, 

---

update     The version number of the Spine update to use.
-k, 

---

keys       Enable hotkey popups by default.
-n, 

---

notimeout  Disable timeout when checking for and downloading updates.
-x, 

---

proxy      Proxy server to use when checking for and downloading updates.
-s, 

---

scale      Experimental: UI scale, default is 1.0.
project.spine    Path to Spine project file to open.

Export:
-i, 

---

input   Path to Spine project file, overrides export settings JSON.
-o, 

---

output  Path to write export file(s), overrides export settings JSON.
-e, 

---

export  Path to export settings JSON file.

Pack:
-i, 

---

input   Path to folder of images to be packed.
-o, 

---

output  Path to write texture atlas files.
-p, 

---

pack    Texture atlas name or path to pack settings JSON file.

Examples:
Spine 

---

export /path/to/export.json
Spine 

---

export "/path/with spaces/to/export.json"
Spine 

---

input /path/to/project.spine 

---

output /path/to/output/
      
--- export /path/to/export.json Spine -i /path/to/project.spine -o /path/to/output/ -e /path/to/export.json Spine -e /path/to/export1.json -e /path/to/export2.json Spine -i /path/to/images/ -o /path/to/output/ --- pack /path/to/pack.json Spine -i /path/to/images/ -o /path/to/output/ -p /path/to/pack.json Spine -i /path/to/project1.spine -o /path/to/output/ -e /path/to/export1.json -i /path/to/project2.spine -e /path/to/export2.json -i /path/to/images/ -o /path/to/output/ -p /path/to/pack.json