Errors in spinescene when trying to bundle game

I’ve run into an issue when trying to bundle my game. We used Spine 4.0.19 and exported the animations to 3.8 so that we could use it in Defold. There is no issues when I try to build the game in Defold Editor 2.0 but when I try to bundle I get this error:

This error seems to show up for all the spinescenes in my project but the build error console only show the error for one spinescene at a time. Also tried updating to Defold 1.2.188 hoping it would help but unfortunately didn’t fix it. Can anybody please help us solve this issue?

I’ve posted the properties and Json for the spinescene below.

Clyde.spinescene:

Spine Json: /assets/Clyde/ClydeSpineAnimation/Clyde.json
Atlas: /STC/Atlases/Clyde.atlas
Sample Rate: 8

Clyde.json
clydejson.zip (30 KB)

As you probably know we’re currently working on a big update of Spine in Defold. First, we’ve moved our own Spine implementation to an extension, and second we’re migrating the extension to the official Spine runtime by the makers of Spine. This is ongoing work and I can’t say for sure when it will be done, but we’re making good progress. I expect the animation to work in the updated Spine extension once it is done. We will not fix any issues with Spine at the moment, unless this issue is directly related to the recent move to a separate extension.

But maybe someone from the community can take a look and perhaps figure out what’s wrong?

1 Like

Note that we don’t really support spine versions above 2.x.
So, you might want to try to export your scene to an even earlier format than 3.8?

1 Like

Try exporting from Spine version 3.7.94

2 Likes

Here is the temp fix for you. Open your json file and delete “-from-4” line from it. For example you have this after exporting:

{"skeleton":{"hash":"NnBLUiHqCXw","spine":"3.8-from-4.0.45"...}

You just delete end of it “-from-4.0.45”

{"skeleton":{"hash":"NnBLUiHqCXw","spine":"3.8"...}

And the bundling should be fine.

As my experiments showed it doesn’t affect anything. It’s just line to let someone know that it was exported from some other version of Spine. I suppose when bundling, Defold does not support “-” in the name string or something similar. With new spine extension and support of latest runtime this problem will be resolved altogether.

5 Likes

This seemed to work thank you!!

3 Likes