zhong317 / spriter2spine

Convert .scml files to spine .json file. Base on Spriter Pro R11 and Spine 3.8.
27 stars 7 forks source link

Import of Json with spriter2spine.exe in Spine 4.0.47 Essentail not possible #8

Open aallnneess opened 2 years ago

aallnneess commented 2 years ago

Hello,

I converted the data as prescribed. This worked out great. Unfortunately, the import did not work.

Spine outputs the following log:

Spine Launcher 4.1.01
Esoteric Software LLC (C) 2013-2021 | http://esotericsoftware.com
Windows 10 Pro amd64 10.0
Intel, Intel(R) HD Graphics Gen11, 4.6.0 - Build 27.20.100.9079
Starting: Spine 4.0.47 Essential
Spine 4.0.47 Essential
Licensed to: ------- <------->
Started.
Update available: 4.1.06-beta
ERROR: Error importing skeleton data file: E:\HiDrive\java syncro\Original Raw Assets\gamedeveloperstudio.com\Explorer\test\spriter\explorer-explorer.json
Bitte wählen Sie eine gültige Skelett-JSON- oder Binärdatei.
[error] Error reading file: E:\HiDrive\java syncro\Original Raw Assets\gamedeveloperstudio.com\Explorer\test\spriter\explorer-explorer.json
   at s.IVN._(_:178)
   at s.iSs._(_:321)
   at s.iSs.Z(_:286)
   at s.juH.V(_:1022)
   at s.IZp.Z(_:379)
   at s.Pts._(_:91)
   at s.ipJ._(_:28)
   at s.QLZ._(_:188)
   at s.QLZ._(_:158)
   at com.badlogic.gdx.scenes.scene2d.ui.Button.Z(_:125)
   at s.XMA._(_:93)
   at s.eMP._(_:88)
   at s.DcX._(_:71)
   at s.Yaa.Z(_:355)
   at s.jvD.Z(_:124)
   at s.CqF.Z(_:98)
   at s.slc._(_:44)
   at s.CqF._(_:35)
   at s.ehj.run(_:259)
   <events>
Cause: s.bMt: Error reading animation: base
   at s.eGw._(_:349)
   at s.yfh._(_:118)
   at s.IVN._(_:150) ...
Cause: [error] Invalid timeline type for a slot: color (root-bone_003-bone_005-bone_006-ext_foot)
   at s.eGw._(_:694)
   at s.eGw._(_:347) ...
ERROR: Error importing skeleton data file: E:\HiDrive\java syncro\Original Raw Assets\gamedeveloperstudio.com\Explorer\test\spriter\explorer.autosave-explorer.json
Bitte wählen Sie eine gültige Skelett-JSON- oder Binärdatei.
[error] Error reading file: E:\HiDrive\java syncro\Original Raw Assets\gamedeveloperstudio.com\Explorer\test\spriter\explorer.autosave-explorer.json
   at s.IVN._(_:178)
   at s.iSs._(_:321)
   at s.iSs.Z(_:286)
   at s.AVD._(_:1033)
   at s.iSs.V(_:279)
   at s.IZp.Z(_:379)
   at s.Pts._(_:91)
   at s.ipJ._(_:28)
   at s.QLZ._(_:188)
   at s.QLZ._(_:158)
   at com.badlogic.gdx.scenes.scene2d.ui.Button.Z(_:125)
   at s.XMA._(_:93)
   at s.eMP._(_:88)
   at s.DcX._(_:71)
   at s.Yaa.Z(_:355)
   at s.jvD.Z(_:124)
   at s.CqF.Z(_:98)
   at s.slc._(_:44)
   at s.CqF._(_:35)
   at s.ehj.run(_:259)
   <events>
Cause: s.bMt: Error reading animation: base
   at s.eGw._(_:349)
   at s.yfh._(_:118)
   at s.IVN._(_:150) ...
Cause: [error] Invalid timeline type for a slot: color (root-bone_003-bone_005-bone_006-ext_foot)
   at s.eGw._(_:694)
   at s.eGw._(_:347) ...
ERROR: Error importing skeleton data file: E:\HiDrive\java syncro\Original Raw Assets\gamedeveloperstudio.com\Explorer\test\spriter
Bitte wählen Sie eine gültige Skelett-JSON- oder Binärdatei.
[error] Error reading file: E:\HiDrive\java syncro\Original Raw Assets\gamedeveloperstudio.com\Explorer\test\spriter\back_hand.png
   at s.IVN._(_:178)
   at s.iSs._(_:313)
   at s.iSs.Z(_:286)
   at s.AVD._(_:1033)
   at s.iSs.V(_:279)
   at s.IZp.Z(_:379)
   at s.Pts._(_:91)
   at s.ipJ._(_:28)
   at s.QLZ._(_:188)
   at s.QLZ._(_:158)
   at com.badlogic.gdx.scenes.scene2d.ui.Button.Z(_:125)
   at s.XMA._(_:93)
   at s.eMP._(_:88)
   at s.DcX._(_:71)
   at s.Yaa.Z(_:355)
   at s.jvD.Z(_:124)
   at s.CqF.Z(_:98)
   at s.slc._(_:44)
   at s.CqF._(_:35)
   at s.ehj.run(_:259)
   <events>
Cause: [npe] Cannot invoke "String.isEmpty()" because "<local3>.Z" is null
   at s.EtJ._(_:148)
   at s.EtJ._(_:132)
   at s.IVN._(_:155) ...
ERROR: Error importing skeleton data file: E:\HiDrive\java syncro\Original Raw Assets\gamedeveloperstudio.com\Explorer\test\spriter
Bitte wählen Sie eine gültige Skelett-JSON- oder Binärdatei.
[error] Error reading file: E:\HiDrive\java syncro\Original Raw Assets\gamedeveloperstudio.com\Explorer\test\spriter\back_hand.png
   at s.IVN._(_:178)
   at s.iSs._(_:313)
   at s.iSs.Z(_:286)
   at s.AVD._(_:1033)
   at s.iSs.V(_:279)
   at s.IZp.Z(_:379)
   at s.Pts._(_:91)
   at s.ipJ._(_:28)
   at s.QLZ._(_:188)
   at s.QLZ._(_:158)
   at com.badlogic.gdx.scenes.scene2d.ui.Button.Z(_:125)
   at s.XMA._(_:93)
   at s.eMP._(_:88)
   at s.DcX._(_:71)
   at s.Yaa.Z(_:355)
   at s.jvD.Z(_:124)
   at s.CqF.Z(_:98)
   at s.slc._(_:44)
   at s.CqF._(_:35)
   at s.ehj.run(_:259)
   <events>
Cause: [npe] Cannot invoke "String.isEmpty()" because "<local3>.Z" is null
   at s.EtJ._(_:148)
   at s.EtJ._(_:132)
   at s.IVN._(_:155) ...

Is there any change for a fix ?

Thanks :-)

ciao matze

zhong317 commented 2 years ago

Sorry, just saw your message. You seem to be using the spine 4.x version, and this script outputs the 3.x format, so the problem may be caused by the incompatibility of the file format. You can try refer to the link below to re-Export it as 4.0 version. http://zh.esotericsoftware.com/spine-export#JSON

aallnneess commented 2 years ago

Hello, thank you for your answer. The biggest problem now is that the Spriter r11 version is not converted correctly.

There are big errors when importing into spine (3.8.75):

image

image

https://user-images.githubusercontent.com/73443724/151145378-f816a237-9aa4-408f-98f7-ba1680a15d33.mp4

https://user-images.githubusercontent.com/73443724/151145597-178f9bc8-8a91-405e-8d2b-4073dd757cce.mp4

And some animations are completely empty.

I can't continue this work myself, and after some searching I haven't found anyone who could.

And unfortunately the Spriter R8 version is no longer available.

zhong317 commented 2 years ago

Hi, Can you please provide a problematic file to me for test?

aallnneess commented 2 years ago

Hey :-)

i send you an E-Mail to zhong317@126.com.

thanks a lot.

zhong317 commented 2 years ago

OK, I'll take a look this week, too busy with work, sorry for the late reply.

aallnneess commented 2 years ago

Hey, np & thanks a lot :-)

aallnneess commented 2 years ago

Any hope of changing anything here?

zhong317 commented 2 years ago

Sorry for that, I forgot it,too busy. Next two week I will take some time to fix it. I promise, so sorry…

zhong317 commented 2 years ago

There is a COVID outbreak near my house, can't go home, may have to solve your problem later

aallnneess commented 2 years ago

Hello, it's not that important. I wish you all the best!

PhaserEditor2D commented 1 year ago

I vote for fixing the script! Thanks for the hard work.

Edit: For now all the animations I have are working great. Thanks.