When I try to build my game and it tries to load a SpineSprite it doesn't work.
I get these errors. In the editor everything works just fine.
I already saw the same thing here
https://de.esotericsoftware.com/forum/d/25094-issue-when-building-my-project
I'm not sure if this is the same problem, as the guy seems to be talking about something else at the end.

I don't think I changed anything from the default export settings.
Here's a link to the project in case you want to try yourself.

Go to the right past the church and into the next house.(With 'E')
And if you try to talk the person the spine should show up, but the errors show up instead.
If I try to put a Spine in the main scene at start. It just crashes immediatly.

I'd be thankful if you could help me 🙂

Related Discussions
...
ein Monat später

Hello,
just checking in since there was no answer.

  • Misaki hat auf diesen Beitrag geantwortet.

    Okuhaku Sorry we missed your post! I am sure @Mario will investigate your problem later, so please wait for his reply for a detailed answer.

    I've just played with your project using our Godot 4.1.3 build and the related templates on macOS.

    I do get a single error Cannot erase nonexistent section "params". but that seems to be unproblematic as the .dmg is created as it should be and it starts as expected:

    When I go to the NPC and talk to it by pressing E, the app freezes. It seems your SpinePosition.gd script has a bug?

    I can reproduce this in the editor as well. Just click "Play" in the editor, go to the NPC and press E, you'll end up with an error here:

    Globals.CurrentCharacter is Diablo but there is no entry for Diablo in the Globals.PortraitLoadLocation dictionary.

    I'm not familiar with how your project is designed, so I leave it to you to figure out that bug 🙂

    In any case, the export works fine. The errors you saw I can not reproduce on macOS, so I'm unsure. how you got those. I will try on Windows tomorrow.

    Hey thanks for getting back to me!
    For the NPC you tried to talk to, there was no spine yet, which has been fixed.
    You have to talk to the one in the video. That one has a spine already.
    Here's a video of what's supposed to happen. It works in the editor.

    And here is how it works in the exported version.

    I also tried it in a new project. With just the spine in the scene loaded immediatly and then it crashes too.

    Thanks for your help 🙂

    And here is what happens when I just put it in the main scene.

    18 Tage später

    Hey! Just checking in since it's been a couple weeks.
    Tell me if there is still hope for me 🙂

    Uff sorry, I totally missed your replies! Could you please send me the output from the console? I can not reproduce this on my end. Just run the executable in cmd.exe.

    Godot Engine v4.1.3.stable.official.f06b6836a - https://godotengine.org
    Vulkan API 1.3.242 - Forward+ - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce RTX 4060

    ERROR: No loader found for resource: res://.godot/exported/133200997/export-f286c6174c75ab47014e57b317ae68aa-SolitariaSkeletonData.res.
    at: (core/io/resource_loader.cpp:281)
    ERROR: Can't load dependency: res://Spine/Solitaria/SolitariaSkeletonData.tres.
    at: (core/io/resource_format_binary.cpp:458)
    ERROR: Error when trying to parse Variant.
    at: (core/io/resource_format_binary.cpp:502)
    ERROR: Error when trying to parse Variant.
    at: (core/io/resource_format_binary.cpp:489)
    ERROR: Failed loading resource: res://.godot/exported/133200997/export-165d47357cca4a302953386e6a5c0346-Solitaria.scn. Make sure resources have been imported by opening the project in the editor at least once.
    at: (core/io/resource_loader.cpp:273)
    SCRIPT ERROR: Attempt to call function 'instantiate' in base 'null instance' on a null instance.
    at: StartDialogue (res://Scenes/SpinePosition.gd:6)

    I am using it.

    But perhaps, when I build the game it's not using it?
    Are the specific steps I have to take when exporting?

    I reinstalled the export templates and now it works.
    Thank you for your help 🙂