moonseed

Hello

Affinity Photo JSON export fails to load assets in beta version 3.8.13.
My test is with a single image. It loads fine in the previous stable release.

JSON is configured as follows:
{"skeleton":{"images":""},
"bones":[{"name":"root"}],
"slots":[
{"name":"background","bone":"root","attachment":"background"}
],
"skins":{
"default":{
"background":{"background":{"x":1200,"y":600,"width":2400,"height":1200}}
}
},
"animations":{"animation":{}}
}
Error Log Report:
Spine Launcher 3.8.12
Esoteric Software LLC (C) 2013-2019 | http://esotericsoftware.com
Mac OS X x86_64 10.14.4
Starting: Spine 3.8.13-beta
Spine 3.8.13-beta Professional
NVIDIA Corporation, NVIDIA GeForce 9400 OpenGL Engine, 2.1 NVIDIA-10.4.14 310.90.30.05b27
OpenAL 1.1, Default audio device
Started.
ERROR: Error importing skeleton:
java.lang.IllegalArgumentException: Named value not found: name
at hU.a(SourceFile:661)
at lf.a(SourceFile:269)
at lT.a(SourceFile:130)
at xv.a(SourceFile:308)
at xD.run(SourceFile:272)
at uM.a(SourceFile:1491)
at xv.c(SourceFile:265)
at wR.b(SourceFile:360)
at fw.a(SourceFile:92)
at gH.a(SourceFile:28)
at eM.a(SourceFile:188)
at eM.a(SourceFile:158)
at com.badlogic.gdx.scenes.scene2d.ui.Button.b(SourceFile:131)
at fp.a(SourceFile:94)
at gJ.a(SourceFile:88)
at eS.a(SourceFile:59)
at eU.b(SourceFile:351)
at r.b(SourceFile:124)
at ay.b(SourceFile:89)
at q.a(SourceFile:86)
at ax.a(SourceFile:134)
at aj.b(SourceFile:224)
at mI.b(SourceFile:106)
at ao.run(SourceFile:194)
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)
ERROR: Error importing skeleton:
java.lang.IllegalArgumentException: Named value not found: name
at hU.a(SourceFile:661)
at lf.a(SourceFile:269)
at lT.a(SourceFile:130)
at xv.a(SourceFile:308)
at xD.run(SourceFile:272)
at vp.c(SourceFile:1480)
at wR.b(SourceFile:360)
at fw.a(SourceFile:92)
at gH.a(SourceFile:28)
at eM.a(SourceFile:188)
at eM.a(SourceFile:158)
at com.badlogic.gdx.scenes.scene2d.ui.Button.b(SourceFile:131)
at fp.a(SourceFile:94)
at gJ.a(SourceFile:88)
at eS.a(SourceFile:59)
at eU.b(SourceFile:351)
at r.b(SourceFile:124)
at ay.b(SourceFile:89)
at q.a(SourceFile:86)
at ax.a(SourceFile:134)
at aj.b(SourceFile:224)
at mI.b(SourceFile:106)
at ao.run(SourceFile:194)
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)
moonseed
  • Beiträge: 9

Shiu

Hi,

The JSON export functionality in Affinity uses an older version of the JSON format.
We unfortunately have no control of their export implementation, but in version 3.8.14 you can load the old JSON format again.
Benutzeravatar
Shiu

Shiu
  • Beiträge: 2382

moonseed

Great! Seems to be working well. How about being able to also export to the old JSON format?

Thanks!
moonseed
  • Beiträge: 9

Nate

We had to change the JSON and binary data formats because the old formats did not have the necessary information for new features. Because of that, we won't support exporting the old format. We've actually never before supported importing an old data format, but these changes are to how skins are stored and that affects data import -- it proved too disruptive to have all users update their scripts and all tools like Affinity update to the new format.
Benutzeravatar
Nate

Nate
  • Beiträge: 9284


Zurück zu Bugs