• RuntimesGodot
  • spine-godot doesn't create resource files when importing Spine data into Godot

I'm trying out the spine-godot GDExtension at the moment and struggling to get it working.

  1. I've downloaded the example spine-godot-extension project and added the spine-godot GDExtension bin folder. I followed these instructions. It opens in the editor fine:

  2. I exported my Spine project using the following settings:

  3. I dragged the files into the Godot editor:

According to the spine-godot documentation, the asset importer should automatically generate 2 files for me:

  • SpineSkeletonFileResource
  • SpineAtlasAssetResource

However, neither of these files are generated.

Is this normal? I'm running Godot 4.4.1 on Fedora Linux. I also tried doing the same thing in a new, blank project with the bin folder copied in, and didn't have any luck there either.

  • Misaki ha risposto a questo messaggio
    Related Discussions
    ...

    azuredusk10 Sorry for the confusion. The file extensions are displayed as they were originally, so it may appear that nothing has been generated, but if you select the .skel and .atlas files displayed in the FileSystem dock and view them in the Inspector, you will see that they are SpineSkeletonFileResource and SpineAtlasAssetResource, respectively. (The SpineSkeletonFileResource may be confusing because its name isn't clearly labeled, but if you check the documentation by clicking the DOC button in the top-right corner of the Inspector, you'll see that it's a class called SpineSkeletonFileResource.)

    So, create the SpineSkeletonDataResource as described in the documentation, set the SpineSkeletonFileResource and SpineAtlasResource there, and you should be able to display your skeleton using the SpineSprite node.

    If you have any further questions, please feel free to ask.

    Hi @Misaki , thank you so much for clarifying all of that. That really helped.

    I went ahead and made the SpineSkeletonDataResource and was able to get my animation working in Godot! Everything looks like it's working great.

    In case it helps anyone else, one problem I initially had was that Godot would crash whenever I set the SpineSkeletonDataResource property in the SpineSprite node, but I realised that this was my fault. I opened Godot using the terminal and saw that spine-godot looks for the atlas file based on the filename specified in the skeleton file. If you change the name of the atlas file in your file manager, create the SpineSkeletonDataResource, and then try to bind it to a SpineSprite node, Godot crashes. I was able to fix this by changing the name of my skeleton in Spine and re-exporting the assets, so that all the exported files are named how I want them, and the reference to the atlas file is correct.

    Thank you for your support, I'm so glad it's working now!

    • Misaki ha risposto a questo messaggio
    • Misaki ha messo mi piace.

      azuredusk10 I'm glad it worked out well! Thanks for getting back to us! 🙂