extension-spine icon indicating copy to clipboard operation
extension-spine copied to clipboard

Can I change Spine Runtime Version to 3.8.75?

Open eldon922 opened this issue 1 year ago • 5 comments

I need to use my old version of .spinejson, but the current version of Defold can't accept it. Is there a way to change the Spine Runtime that Defold use?

eldon922 avatar Apr 26 '23 07:04 eldon922

You can try an older version of the runtime, but I'm not sure it plays nicely with a new Defold editor.

https://github.com/defold/extension-spine/releases

britzl avatar Apr 26 '23 07:04 britzl

is there a way to know what version of Spine Runtime that is used by each releases?

You can try an older version of the runtime, but I'm not sure it plays nicely with a new Defold editor.

https://github.com/defold/extension-spine/releases

Is there a way to know what version of Spine Runtime that is used by each releases?

eldon922 avatar Apr 26 '23 09:04 eldon922

Well, we should be better at listing the versions supported, but in your case, it's very old (we added support for version 4.x in 2021). And we never really supported 3.x versions (we jumped from 2.x to 4.x)

Also, we don't support Defold versions older than 6 months on our build server.

I'm curious, why you can't use 4.x for resaving the .spinejson?

Apart from anything else, the only workaround I see is for you to fork this spine extension, and add your preferred version of the spine runtime (probably some changes needed ofc, but should be doable with some effort)

JCash avatar Apr 26 '23 09:04 JCash

Well, we should be better at listing the versions supported, but in your case, it's very old (we added support for version 4.x in 2021). And we never really supported 3.x versions (we jumped from 2.x to 4.x)

Also, we don't support Defold versions older than 6 months on our build server.

I'm curious, why you can't use 4.x for resaving the .spinejson?

Apart from anything else, the only workaround I see is for you to fork this spine extension, and add your preferred version of the spine runtime (probably some changes needed ofc, but should be doable with some effort)

i use dragonbones to create the spine animation but it can't export the project to spinejson with data version more than 3.3. image can you elaborate more about adding preferred version of spine runtime and the needed changes?

eldon922 avatar Jun 25 '23 14:06 eldon922

can you elaborate more about adding preferred version of spine runtime and the needed changes?

It will definitely require a bit of work:

  • The spine runtime from Esoteric is built as a library for each platform:
    • We have a script to help with this: https://github.com/defold/extension-spine/tree/main/utils/runtime
    • The runtime libs are here: https://github.com/defold/extension-spine/tree/main/defold-spine/lib
  • The headers for the runtime are here: https://github.com/defold/extension-spine/tree/main/defold-spine/include/spine
  • Once the runtimes are built you need to adapt the Defold Spine extension such that it complies with the specific runtime version. The source code for the Defold Spine extension is here: https://github.com/defold/extension-spine/tree/main/defold-spine/src

britzl avatar Jun 27 '23 07:06 britzl