• Editor
  • got error when try to export using command line

Trying to use command line to do the export.

Command:

Spine -i "test.spine" -e "export_settings.json" -o "./output"

Below is the export_settings.json

{
paddingX: 1,
paddingY: 1,
bleed: false,
rotation: true,
minWidth: 16,
minHeight: 16,
maxWidth: 2048,
maxHeight: 2048,
stripWhitespaceX: true,
stripWhitespaceY: true,
filterMin: Nearest,
filterMag: Nearest,
wrapX: ClampToEdge,
wrapY: ClampToEdge,
format: RGBA8888,
alias: true,
outputFormat: png,
jpegQuality: 0.9,
ignoreBlankImages: true,
fast: false,
debug: false,
combineSubdirectories: false,
flattenPaths: false,
premultiplyAlpha: true,
useIndexes: false,
grid: false,
scale: [ 0.5 ],
scaleSuffix: [ "_half" ],
limitMemory: true,
ignore: false
}

and I got this:

Spine 3.8.59 Professional
ERROR: Error reading export settings file:
export_settings.json
java.lang.RuntimeException: Unknown object type: class gA
at com.esotericsoftware.spine.editor.export.ExportSettings.L(SourceFile:60)
at kZ.<init>(SourceFile:82)
at com.esotericsoftware.spine.editor.Editor.main(SourceFile:1647)
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 tzax.H.run(SourceFile:2077)
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)

Related Discussions
...
  • 編集済み

Your export_settings.json looks like texture packer settings, for use with `


pack/-p. If you want to do a JSON or binary export using


export/-e` you need to save your export settings from the export dialog, not the texture packer settings dialog.

It works now.
Thanks