• RuntimesGodot
  • Godot 4.3 Spine runtime web export error

Hello!!!
I am having trouble exporting a project from Godot 4.3 with spine for web. It works fine on the standalone build but on web, it won't load the resource as you can see on the error below. Is it a known problem?

Related Discussions
...

Hello!!!

It seems you are encountering an issue with exporting a project using the spine-godot runtime for the web in Godot 4.3. Based on the provided documentation, there are a few steps you can take to troubleshoot and potentially resolve this issue:

  1. Ensure Correct Export Templates: Make sure you have installed the correct export templates for Godot 4.3. You can download the necessary export templates from the provided links in the installation section and install them via Editor > Manage export templates ....

  2. Check for Updates: Ensure you are using the latest version of the spine-godot runtime. You can update the runtime by following the steps in the "Updating the spine-godot Runtime" section.

  3. Re-export Spine Assets: If you have recently updated the spine-godot runtime or the Spine Editor, re-export your Spine assets using the latest Spine Editor version and replace the old files in your Godot project. This can help resolve compatibility issues.

  4. Verify Asset Import: Ensure that the assets are correctly imported into Godot. You can force a re-import by right-clicking the folder containing your Spine assets in the Godot editor and selecting Reimport.

  5. Check for Known Issues: While the documentation does not explicitly mention issues with web exports, it is always a good idea to check for any known issues or updates related to the spine-godot runtime and Godot 4.3.

If the problem persists after following these steps, it might be a specific issue with the current version of the spine-godot runtime or Godot 4.3. In such cases, keeping an eye on updates or patches from the developers might be necessary.

As a second test, I downloaded the 4.2_4.2 and its export templates. The same problem happens even with Spine examples_v4 from samples git.
Then I tried 4.2_3.5.3 and the samples provided work great on a html5 export.
Unfortunately, I can't simply open a Godot 4 project on Godot 3 🙁

  • Misaki ответили на это сообщение.

    Sjunior3d Hmm, as far as I exported the v4 example project for Web with 4.2_4.2, no errors occurred.
    Could you please show us what the logs looked like when you tried to export the example project?

    Yes! Sure!

    Following the same steps with 3.5.3 I have it working fine.

    I also had the following errors on my output window in Godot 4.2.2

    Cannot erase nonexistent section "params".
    Cannot erase nonexistent section "params".
    Cannot erase nonexistent section "params".
    Cannot erase nonexistent section "params".
    Cannot erase nonexistent section "params".

    Ok. My apologies, somehow deleting the spine animation from the 4.2 scene and adding it back has solved the issue. Only 4.3 doesn't work. 4.2 seems to be working fine.

    • Misaki ответили на это сообщение.

      Sjunior3d Thank you for the screenshots and additional information. It wasn't the same error as in the screenshot you showed, but it certainly didn't work when I tried to do a web export using 4.3, so we will investigate this issue.

      Sjunior3d Do you see a red colored message that web_nothreads_debug.zip and web_nothreads_release.zip are missing in the export window as shown below?

      If so, please rename web_debug.zip and web_release.zip in the export template folder toweb_nothreads_debug.zip and web_nothreads_release.zip, respectively. You can open the folder via the Open Folder button on the export template manager window:

      This should result in a successful export. If it still doesn't work, please let us know.

      It works like a charm!
      Thank you very much!!!

      • Misaki ответили на это сообщение.

        Sjunior3d Glad to hear it worked! Thank you for getting back to us. 🙂

        @Misaki Sorry for coming back to this thread, but I have one more question. Using this fix I was able to export my Godot game with Spine for Web for desktop and android, but it is not working on Iphone (however it works fine in iPad). So, based on the files we have renamed, I believe it has to do with the theads enabled or disabled and the checkbox on the export dialog window not doing anything, right? Is it a known problem is it something fixable?

        • Misaki ответили на это сообщение.

          Sjunior3d Hmm, I see, when Thread Support is turned on, web_debug.zip and web_release.zip are required. I apologize, but I missed this point. The issue ticket related to this issue has not yet been closed, so I will add something about this there: EsotericSoftware/spine-runtimes2627

          @Sjunior3d could you please elaborate. I'm having difficulty following which platform combinations work and which don't.

          You build for:

          • web
          • desktop (windows, linux, macos)
          • android
          • iOS

          You say it is not working for iOS? Or do you mean that the web build is not working in Safari on an iPhone?

          @Mario I am building for web. And it wasn't working on Safari/ Chrome or Firefox (iPhone). Upon further investigation, I discovered it was a problem with Godot itself, not spine runtime. Sorry about that.

            Got it! Thanks for reporting back.

            2 месяца спустя

            Sjunior3d Did you find any solution for the web build to work on Chrome and Firefox on iOS? I'm having this problem. Where would I indicate this issue?

            • Misaki ответили на это сообщение.

              fredericoraiss Sorry for the trouble. We have already worked to resolve this issue, but it appears that the template containing the fix was not built properly. See the following issue for more information: EsotericSoftware/spine-runtimes2684