[SOLVED] How to import Spine into Defold?

Hi, i stuck on it so hope you can help me :slight_smile:
I am using spine 4.2.

I fetched library (from this) and exported spine files into project.
Export settings screen:

First problem, I can’t use file .atlas from spine. When I try, i see an error

  • zombie_1.atlas: The file “/main/assets/spine/zombie_1.atlas” could not be loaded: 1:9: Expected “{”.

So, I created atlas from defold resources and added an image from Spine. And I renamed .json to .spinejson and load these files into .spinescene

but got an error

  • zombie_1.spinescene: Atlas is missing image: zombie_1_eye zombie_1_eye

unfortunately chat GPT doesn’t help. Maybe some of you explain me right steps to use Spine?
zombie_1.zip (13.6 KB)

Allso i attached spine file if it can help

1 Like

I found the solution. I created atlas in Defold with the same images as in spine project and mistakes are gone.

But in runtime it doesn’t showing on the screen.
UPD: I refetched the dependency and bug is gone. So all works perfectly well

1 Like