• Editor
  • Command line bug

  • تم التحرير
Related Discussions
...
6 أيام لاحقا

Working with setting up some batch exporting of .spine files, however when running the export from the command line the .json is different than from using the editor. Using version 3.1.08, tried using both the .com and the .exe for the command line, using a .json export settings file from a working .spine file. The cli version has LESS vertices than the manually exported one, also a different ordering for the skeleton bit at the top and a width and height of the skeleton == 0. Any thoughts on what I might be doing wrong here?


Is anyone else seeing anything similar? Am I using the Spine CLI incorrectly?
Doing

spine.com -i blah.spine -o /outputPath/ -e /settings.json 

then using kdiff and checking it in Unity to see that they aren't the same as a manual export.


Tried with a more updated version of Spine, still seeing a difference in the vertex count between the two exports and the newer versions put everything in "". Am I doing it wrong or is someone else seeing this too?

5 أيام لاحقا

Hi,

I've tried to reproduce your issue using the spineboy-mesh.spine project that comes as an example for Spine. I saved the export settings in the editor and exported from the editor to export/. Then i exported from the CLI using:

./Spine 

---

input ../../../examples/spineboy/spineboy-mesh.spine 

---

output /Users/badlogic/Desktop/export2/ 

---

export /Users/badlogic/Desktop/spineboy-mesh.json

Finally, I did a diff between the resulting JSON files:

diff /Users/badlogic/Desktop/export/spineboy-mesh.json /Users/badlogic/Desktop/export2/spineboy-mesh.json 
2c2
< "skeleton": { "hash": "U+e8jqpZrH1fDLO/0R/aO7yXyps", "spine": "3.4.01", "width": 0, "height": 0, "images": "./images/" },


---


"skeleton": { "hash": "VINkfhwM1ewwp32eV9+fiLvUsH0", "spine": "3.4.01", "width": 0, "height": 0, "images": "./images/" },
6,7d5
<    { "name": "rear_foot_ik", "parent": "root", "x": 61.9, "y": 0.42, "color": "ff3f00ff" },
<    { "name": "rear_ankle_ik", "parent": "rear_foot_ik", "x": -33.9, "y": 37.33, "color": "ff3f00ff" },
66c64,66
<    { "name": "hair4", "parent": "hair3", "length": 80.28, "rotation": 83.7, "x": 62.22, "y": -0.03, "color": "e0da19ff" }


---


   { "name": "hair4", "parent": "hair3", "length": 80.28, "rotation": 83.7, "x": 62.22, "y": -0.03, "color": "e0da19ff" },
   { "name": "rear_foot_ik", "parent": "root", "x": 61.9, "y": 0.42, "color": "ff3f00ff" },
   { "name": "rear_ankle_ik", "parent": "rear_foot_ik", "x": -33.9, "y": 37.33, "color": "ff3f00ff" }
141c141
<             "vertices": [ 2, 16, 18.17, 41.57, 0.72255, 17, 12.46, 46.04, 0.27744, 2, 16, 24.08, 40.75999, 0.57406, 17, 16.12, 41.34, 0.42592, 2, 16, 29.8, 39.97, 0.47663, 17, 19.67, 36.77, 0.52336, 2, 16, 32.8, 41.66, 0.37452, 17, 22.99, 35.89, 0.62547, 2, 16, 37.86, 44.51, 0.24772, 17, 28.6, 34.4, 0.75227, 2, 16, 42.65, 47.21, 0.17783, 17, 33.91, 32.98, 0.82216, 1, 17, 64.15, 14.56, 1, 1, 17, 64.51, -5.87, 1, 1, 17, 21.07, -6.63, 1, 2, 16, 35.38, -16.16, 0.99998, 17, -15.54, -7.28, 1.0E-5, 2, 16, 3.1, -48.81, 1, 17, -61.44, -8.09, 0, 2, 16, -26.72, -19.31, 1, 17, -62.18, 33.84, 0, 2, 16, -45.95, -0.29, 1, 17, -62.66, 60.88, 0, 1, 16, -30.14, 15.69, 1, 2, 16, -1.84, 44.31, 0.91511, 17, 0.05, 61.98, 0.08488 ],


---


        "vertices": [ 2, 14, 18.17, 41.57, 0.72255, 15, 12.46, 46.04, 0.27744, 2, 14, 24.08, 40.75999, 0.57406, 15, 16.12, 41.34, 0.42592, 2, 14, 29.8, 39.97, 0.47663, 15, 19.67, 36.77, 0.52336, 2, 14, 32.8, 41.66, 0.37452, 15, 22.99, 35.89, 0.62547, 2, 14, 37.86, 44.51, 0.24772, 15, 28.6, 34.4, 0.75227, 2, 14, 42.65, 47.21, 0.17783, 15, 33.91, 32.98, 0.82216, 1, 15, 64.15, 14.56, 1, 1, 15, 64.51, -5.87, 1, 1, 15, 21.07, -6.63, 1, 2, 14, 35.38, -16.16, 0.99998, 15, -15.54, -7.28, 1.0E-5, 2, 14, 3.1, -48.81, 1, 15, -61.44, -8.09, 0, 2, 14, -26.72, -19.31, 1, 15, -62.18, 33.84, 0, 2, 14, -45.95, -0.29, 1, 15, -62.66, 60.88, 0, 1, 14, -30.14, 15.69, 1, 2, 14, -1.84, 44.31, 0.91511, 15, 0.05, 61.98, 0.08488 ],
179c179
<             "vertices": [ 1, 27, 41.97, -41.79, 1, 3, 25, 73.46, 27.54, 0.18925, 27, -5.75, -51.7, 0.72418, 26, 112.98, -11.43, 0.08656, 3, 25, 38.23, 10.98, 0.84283, 27, -41.00999, -35.22, 0.09705, 26, 92.72, -44.67, 0.0601, 1, 25, 73.35, 10.89, 1, 1, 25, 58.59, -10.38, 1, 2, 24, 75.49, -4.55, 0.10257, 25, 14.35, -24.8, 0.89742, 2, 24, 59.82, -13.72, 0.41734, 25, -2.69, -18.57, 0.58265, 1, 23, 163.06, -108.68, 1, 1, 23, 151.52, -95.04, 1, 1, 23, 110.6, -87.69, 1, 1, 23, 81.05, -86.58, 1, 1, 23, 89.81, -114.32, 1, 1, 23, 68.72, -120.91, 1, 1, 23, 58.1, -115.89, 1, 1, 23, 51.03, -100.62, 1, 1, 23, 38.78, -106.76, 1, 1, 23, 2.67, -89.69, 1, 1, 23, -22.07, -19.29999, 1, 1, 23, 1.19, 45.62, 1, 1, 23, 8.07, 64.81, 1, 1, 23, 35.43, 93.72, 1, 1, 23, 59.98, 119.66, 1, 1, 23, 109.25, 136.98, 1, 1, 23, 174.07, 135.27, 1, 2, 23, 205.58, 101.22, 0.83763, 26, -16.79999, 104.63, 0.16236, 2, 27, 58.93, 30.5, 0.60735, 26, 38.37, 61.89, 0.39264, 2, 27, 75.55, 19, 0.94502, 26, 51.62, 77.15, 0.05497, 1, 27, 106.69, 26.9, 1, 1, 27, 83.78, -9.5, 1, 4, 24, 44.52, 27.24, 0.19601, 25, 19.12, 19.33, 0.58066, 27, -46.82, -15.19, 0.07453, 26, 72.17, -48.24, 0.14877, 2, 24, 7.42, 19.08, 0.79203, 26, 34.31, -45.24, 0.20796, 1, 26, 45.94, -9.06, 1, 1, 27, 20.62, -16.35, 1, 1, 27, 75.73, 0.94, 1, 3, 23, 200.44, 40.47, 0.4822, 27, 44.58, 56.29, 0.14949, 26, 11.16, 50.46, 0.3683, 1, 23, 171.41, 90.11, 1, 2, 24, 1.07, 18.93, 0.79203, 26, 28.19, -43.54, 0.20796, 3, 23, 168.13, -6.01, 0.11484, 24, -28.63, 49.03, 0.13133, 26, 8.54, -6.08, 0.75382, 2, 23, 167.82, 37.86, 0.27101, 26, -15.06, 30.9, 0.72898, 1, 23, 162.36, 71.5, 1, 1, 23, 163.1, -47.44, 1, 1, 23, 165.94, -5.87, 1, 1, 23, 165.14, 37.37, 1, 1, 23, 157.6, 71.39, 1, 1, 23, 163.5, -99.53, 1, 1, 23, 45.37, 27.24, 1, 1, 23, 63.73, 44.98, 1, 1, 23, 70.69999, 61.92, 1, 1, 23, 62.87, 78.69999, 1, 1, 23, 46.52, 85.3, 1, 1, 23, 29.92, 79.33999, 1, 1, 23, 15.07, 62.21, 1, 1, 23, 14.09, 45.32, 1, 1, 23, 24.29, 27.05, 1, 1, 23, 48.63, 15.29, 1, 1, 23, 84.87, 62.14, 1, 1, 23, 61.9, 94.83, 1, 1, 23, 22.54, 21.87, 1, 1, 23, 43.14, -95.94, 1, 1, 23, 41.77, -87.23, 1, 1, 23, 60.05, -70.35, 1 ],


---


        "vertices": [ 1, 25, 41.97, -41.79, 1, 3, 23, 73.46, 27.54, 0.18925, 25, -5.75, -51.7, 0.72418, 24, 112.98, -11.43, 0.08656, 3, 23, 38.23, 10.98, 0.84283, 25, -41.00999, -35.22, 0.09705, 24, 92.72, -44.67, 0.0601, 1, 23, 73.35, 10.89, 1, 1, 23, 58.59, -10.38, 1, 2, 22, 75.49, -4.55, 0.10257, 23, 14.35, -24.8, 0.89742, 2, 22, 59.82, -13.72, 0.41734, 23, -2.69, -18.57, 0.58265, 1, 21, 163.06, -108.68, 1, 1, 21, 151.52, -95.04, 1, 1, 21, 110.6, -87.69, 1, 1, 21, 81.05, -86.58, 1, 1, 21, 89.81, -114.32, 1, 1, 21, 68.72, -120.91, 1, 1, 21, 58.1, -115.89, 1, 1, 21, 51.03, -100.62, 1, 1, 21, 38.78, -106.76, 1, 1, 21, 2.67, -89.69, 1, 1, 21, -22.07, -19.29999, 1, 1, 21, 1.19, 45.62, 1, 1, 21, 8.07, 64.81, 1, 1, 21, 35.43, 93.72, 1, 1, 21, 59.98, 119.66, 1, 1, 21, 109.25, 136.98, 1, 1, 21, 174.07, 135.27, 1, 2, 21, 205.58, 101.22, 0.83763, 24, -16.79999, 104.63, 0.16236, 2, 25, 58.93, 30.5, 0.60735, 24, 38.37, 61.89, 0.39264, 2, 25, 75.55, 19, 0.94502, 24, 51.62, 77.15, 0.05497, 1, 25, 106.69, 26.9, 1, 1, 25, 83.78, -9.5, 1, 4, 22, 44.52, 27.24, 0.19601, 23, 19.12, 19.33, 0.58066, 25, -46.82, -15.19, 0.07453, 24, 72.17, -48.24, 0.14877, 2, 22, 7.42, 19.08, 0.79203, 24, 34.31, -45.24, 0.20796, 1, 24, 45.94, -9.06, 1, 1, 25, 20.62, -16.35, 1, 1, 25, 75.73, 0.94, 1, 3, 21, 200.44, 40.47, 0.4822, 25, 44.58, 56.29, 0.14949, 24, 11.16, 50.46, 0.3683, 1, 21, 171.41, 90.11, 1, 2, 22, 1.07, 18.93, 0.79203, 24, 28.19, -43.54, 0.20796, 3, 21, 168.13, -6.01, 0.11484, 22, -28.63, 49.03, 0.13133, 24, 8.54, -6.08, 0.75382, 2, 21, 167.82, 37.86, 0.27101, 24, -15.06, 30.9, 0.72898, 1, 21, 162.36, 71.5, 1, 1, 21, 163.1, -47.44, 1, 1, 21, 165.94, -5.87, 1, 1, 21, 165.14, 37.37, 1, 1, 21, 157.6, 71.39, 1, 1, 21, 163.5, -99.53, 1, 1, 21, 45.37, 27.24, 1, 1, 21, 63.73, 44.98, 1, 1, 21, 70.69999, 61.92, 1, 1, 21, 62.87, 78.69999, 1, 1, 21, 46.52, 85.3, 1, 1, 21, 29.92, 79.33999, 1, 1, 21, 15.07, 62.21, 1, 1, 21, 14.09, 45.32, 1, 1, 21, 24.29, 27.05, 1, 1, 21, 48.63, 15.29, 1, 1, 21, 84.87, 62.14, 1, 1, 21, 61.9, 94.83, 1, 1, 21, 22.54, 21.87, 1, 1, 21, 43.14, -95.94, 1, 1, 21, 41.77, -87.23, 1, 1, 21, 60.05, -70.35, 1 ],
221c221
<             "vertices": [ 2, 6, 10.45, 29.41, 0.88824, 7, -6.74, 49.62, 0.11175, 2, 6, 16.54999, 29.27, 0.83163, 7, -2.65, 45.08, 0.16836, 2, 6, 21.79, 29.15, 0.78305, 7, 0.85, 41.18999, 0.21694, 2, 6, 25.53, 31.43, 0.67844, 7, 5.07, 40.04, 0.32155, 2, 6, 30.17, 34.27, 0.54832, 7, 10.33, 38.61, 0.45167, 2, 6, 44.01, 42.72, 0.16069, 7, 25.97, 34.36, 0.83929, 1, 7, 51.56, 13.89, 1, 2, 6, 88.08, 36.28, 0, 7, 51.54, -2.08999, 1, 2, 6, 56.58, 2.98, 0.02959, 7, 5.71, -2.05, 0.9704, 2, 6, 34.63, -20.21999, 0.99999, 7, -26.22, -2.03, 0, 2, 6, 10.43, -45.8, 0.99999, 7, -61.43, -2, 0, 2, 6, -15.1, -21.64, 1, 7, -61.4, 33.15, 0, 2, 6, -22.56, 6.61, 0.99999, 7, -45.98, 57.97, 0, 2, 6, -0.76, 29.67, 0.99219, 7, -14.25, 57.94, 0.0078 ],


---


        "vertices": [ 2, 4, 10.45, 29.41, 0.88824, 5, -6.74, 49.62, 0.11175, 2, 4, 16.54999, 29.27, 0.83163, 5, -2.65, 45.08, 0.16836, 2, 4, 21.79, 29.15, 0.78305, 5, 0.85, 41.18999, 0.21694, 2, 4, 25.53, 31.43, 0.67844, 5, 5.07, 40.04, 0.32155, 2, 4, 30.17, 34.27, 0.54832, 5, 10.33, 38.61, 0.45167, 2, 4, 44.01, 42.72, 0.16069, 5, 25.97, 34.36, 0.83929, 1, 5, 51.56, 13.89, 1, 2, 4, 88.08, 36.28, 0, 5, 51.54, -2.08999, 1, 2, 4, 56.58, 2.98, 0.02959, 5, 5.71, -2.05, 0.9704, 2, 4, 34.63, -20.21999, 0.99999, 5, -26.22, -2.03, 0, 2, 4, 10.43, -45.8, 0.99999, 5, -61.43, -2, 0, 2, 4, -15.1, -21.64, 1, 5, -61.4, 33.15, 0, 2, 4, -22.56, 6.61, 0.99999, 5, -45.98, 57.97, 0, 2, 4, -0.76, 29.67, 0.99219, 5, -14.25, 57.94, 0.0078 ],

It appears there's indeed a difference between exporting meshes from the editor and the CLI. We are looking into it. I filled an issue here: [3.4.01] Export from editor produces different #vertices than export from CLI · Issue #81 · EsotericSoftware/spine-editor · GitHub

Ha so I am not crazy, great. It looks like your skeleton is also a size 0, width/height 0 which is one of the things I was seeing different between the two exports. So if we find a solution, any chance we can backport it to 3.1.08?

I'm afraid we generally don't backport. We'll see what we can do.

Thanks!

Fixed, cheers! Please see issue for further discussion.