• RuntimesBugs
  • import 3.4.02 skel from CLI fail

I want to use CLI tool export json from skel (version 3.4.02D)
cmd:

spine --update 3.4.02 -i ./hurt.skel -o ./ -e ../export_json_3.4.json

got error:

ERROR: Error loading project: ./hurt.skel
java.lang.RuntimeException: Not a valid project file: ./hurt.skel
        at tv.a(SourceFile:558)
        at ma.a(SourceFile:61)
        at com.esotericsoftware.spine.editor.Editor.a(SourceFile:1332)
        at com.esotericsoftware.spine.editor.Editor.main(SourceFile:1304)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at com.esotericsoftware.spine.editor.launcher.Launcher._(_:583)
        at com.esotericsoftware.spine.editor.launcher.Launcher.L(_:443)
        at com.esotericsoftware.spine.editor.launcher.Launcher.<init>(_:205)
        at s.Com9.run(_:957)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.desktop/java.awt.EventQueue.access$600(Unknown Source)
        at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
        at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: jQ: java.util.zip.ZipException: invalid code lengths set
        at jW.a(SourceFile:141)
        at jW.c(SourceFile:159)
        at jW.a(SourceFile:316)
        at tv.c(SourceFile:577)
        at tv.a(SourceFile:556)
        ... 25 more
Caused by: java.util.zip.ZipException: invalid code lengths set
        at java.base/java.util.zip.InflaterInputStream.read(Unknown Source)
        at jW.a(SourceFile:139)
        ... 29 more

but using GUI import skel then export json can work , can you help me ?

Related Discussions
...

The error you're encountering when trying to use the CLI to export JSON from a .skel file suggests that the CLI is not recognizing the .skel file as a valid project file. This issue might be due to the version compatibility or the way the CLI handles .skel files. As noted in the context, importing skeleton data files via CLI can sometimes be problematic, especially with older versions like 3.4.02. The GUI might handle certain nuances or errors more gracefully than the CLI.

To resolve this, you can try the following steps:

  1. Use the Spine editor GUI to open the .skel file and save it as a Spine project file (.spine).
  2. Then, use the CLI to export the JSON from the newly saved .spine project file instead of directly from the .skel file.

This approach leverages the GUI's ability to correctly interpret and convert the .skel file into a format that the CLI can more reliably process.