报错如下: error pixi-spine.js? [sm]:14 Unsupported version of spine model 4.2.38, please update pixi-spine(env: macOS,mp,1.06.2503300; lib: 2.16.1)

Related Discussions
...
  • 수정됨

报错信息显示,您正在使用的 pixi-spine 版本不支持 Spine 模型版本 4.2.38。建议您更新 pixi-spine 到支持该版本的最新版本,或者考虑使用官方的 spine-pixi 运行时。您可以在 spine-pixi 找到相关信息和示例。

caixin

As noted on our versioning page:

The major and minor version of the Spine editor used to export JSON or binary data must always match the Spine Runtimes version.

From what I understand, pixi-miniprogram is a library that allows you to run Pixi inside WeChat. According to its GitHub page, it uses an outdated version of pixi-spine that only supports Spine 3.8 exports.
You cannot use Spine 4.2 assets with a 3.8 runtime.

Additionally, as Spinebot mentioned, pixi-spine is not our official runtime. Its latest version supports assets up to Spine 4.1 only.
For official support, we provide spine-pixi-v7 for Pixi v7 and spine-pixi-v8 for Pixi v8—both compatible only with Spine 4.2 exports (documentation here).

You could try exporting your assets to an older Spine version, but some features may not work correctly.
Unfortunately, we can’t help in this case. You might consider reaching out to the pixi-miniprogram maintainers to ask them to update both Pixi and the Spine runtime to the latest versions.

  • caixin님이 이에 답장했습니다.

    Davide For official support, we provide spine-pixi-v7 for Pixi v7 and spine-pixi-v8 for Pixi v8—both compatible only with Spine 4.2 exports (documentation here).

    Thanks very much, i just want to run spine inside WeChat, i tried all runtime ,but it don't work correctly, can you tell me how to use spine in WeChat , or give me a demo ~
    Thank you again for your reply

    • Davide님이 이에 답장했습니다.

      caixin

      We currently don't have a runtime or a tutorial for that. It's a good idea to explore how it can be done and create a guide for our users.
      I've opened an issue on our GitHub tracker. You can subscribe to it to receive updates.