- Modificato
Error export spine to Cocos
When I finished working and exported the .json file to cocos, there was an error on me using beta 3.8.11, but it could be used but from version 3.8.13 and above it was an error.
Hello! the Json format was changed from Spine 3.8.13:
This happened to allow Spine to import new assets exported with the PhotoshopToSpine script directly inside the skeleton, populating the correct slots and creating new skins where necessary.
This required a change in the json format, therefore the new json format can't be imported in older versions or Spine or runtimes. The same goes for the reverse: the new import requires jsons to be created following the new format. You can try the new PhotoshopToSpine script here: spine-scripts/photoshop at 3.8-beta · EsotericSoftware/spine-scripts if you want to import in 3.8.13 while to export in Cocos you'll need to make sure the latest version of the runtime supports it.
Please note that the Spine Runtimes are currently being updated to support the new JSON format. This work should be complete by the end of the day.
Erikari ha scrittoHello! the Json format was changed from Spine 3.8.13:
This happened to allow Spine to import new assets exported with the PhotoshopToSpine script directly inside the skeleton, populating the correct slots and creating new skins where necessary.
This required a change in the json format, therefore the new json format can't be imported in older versions or Spine or runtimes. The same goes for the reverse: the new import requires jsons to be created following the new format. You can try the new PhotoshopToSpine script here: https://github.com/EsotericSoftware/spine-scripts/tree/3.8-beta/photoshop if you want to import in 3.8.13 while to export in Cocos you'll need to make sure the latest version of the runtime supports it.
I tried many ways to export data but failed to import data from the spine into cocos. I made the spine motion 3.8.13.3.8.14.3.8.15 beta finished and exported the data and entered cocos then I received an error. But when I use version 3.7.94, export animation data from the spine to cocos, I still get normal.
As I wrote, the Json format changed. This requires you to update the Spine Runtimes that the game engine uses to be able to read the new format. This is why an older version of Spine export works, and the newer does not.
Erikari ha scrittoAs I wrote, the Json format changed. This requires you to update the Spine Runtimes that the game engine uses to be able to read the new format. This is why an older version of Spine export works, and the newer does not.
So how can I update and import data into cocos successfully? Sorry, but can you guide me, I'm glad you accepted this request
Could you contact the Cocos Creator folks about this? They maintain the Spine integration with Cocos. They can simply fetch our latest sources for spine-cpp from our 3.8-beta branch and integrate it with their Cocos Creator code base.
Is it solved? Can you provide the final solution?