Does Solar2D still work with Spine?

Hi, I’ve started integrating Spine into Corona,

I haven’t purchased a Spine license so I’ve just been trying to get the examples working. Spineboy-old is the only example that works. The rest use features such as Meshes, ffd, and IK that don’t seem to work with Corona.

I think Corona is the only engine that doesn’t support these. A quick look at the Spine forums shows that the last post about Corona was 5 months ago and still has 0 responses - that’s a little scary.

Is Corona still working with Spine or is it fading out? 

Yes it’s still working great. Meshes is not yet supported but there’s hope if you’re an optimistic person. Please vote for meshes here:http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/8614108-add-meshes-support-for-spine

It works pretty great (even without meshes :wink: ), I use it in my current projects.

I recommend using my performance optimized Spine Runtime (not the official one):

https://github.com/torbenratzlaff/spine-runtimes

Yes it’s still working great. Meshes is not yet supported but there’s hope if you’re an optimistic person. Please vote for meshes here:http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/8614108-add-meshes-support-for-spine

It works pretty great (even without meshes :wink: ), I use it in my current projects.

I recommend using my performance optimized Spine Runtime (not the official one):

https://github.com/torbenratzlaff/spine-runtimes

Is Spine still working with Solar2D?

Yes it is, what version(spine and runtime-spine) do you use?

Thank you for the prompt response.

I haven’t started using Spine yet, but I’ve heard it’s great for 2D animation. Are there limits to the spine that works with Solar2D? And does it work with the latest build?

Just tested the sample provided by torbenratzlaff with build 3673. no mesh supported but it still works fine!

Edit: tested few other samples with mesh transform animations, it look like the runtime provided by torbenratzlaff already supported mesh transform.

@torbenratzlaff you’re awesome! thanks a lot !

There’s been some changes on Spine side as well. It seems that after 4.0, Spine is no longer maintaining their Lua runtimes. As such, you can’t find them on their most recent GitHub branches anymore:

Solar2D Spine 4.0 runtime, however, can be found here:

There’s a further mesh related improvement by @depilz in 4.0 as well, if I’m not mistaken?

Given Spine’s usefulness and Esoteric Software discontinuing first party support for Lua runtimes, what do you think @vlads, wouldn’t it be appropriate to fork Spine’s 4.0 Solar2D runtime over to Solar2D’s GitHub and maybe even integrate it officially into Solar2D as a plugin with docs and a simple demo? I guess integrating Spine to Solar2D through their C++ runtime would be the best in terms of performance (and future first party development), but integrating their Lua runtime would be significantly easier and quicker.

Edit: I guess, given that it’s a premium software with limited number of Solar2D users, adopting the quick and easy Lua runtime route would be the ideal solution.

2 Likes

This is definitely something to look into. ideally integrated as a plugin. May be new native apis may be required, but that’s fine.

3 Likes

Hello.

I have tried these Spine projects with no luck.

https://codeload.github.com/EsotericSoftware/spine-runtimes/zip/refs/heads/4.0
spine-runtimes-4.0.zip

https://codeload.github.com/EsotericSoftware/spine-runtimes/zip/refs/heads/4.1
spine-runtimes-4.1.zip

https://codeload.github.com/torbenratzlaff/spine-runtimes/zip/refs/heads/master
spine-runtimes-master.zip

spine-runtimes-4.1.zip did not seem to have any Solar folders so we’ll ignore that.

The other 2 had errors which I don’t know how to fix.
It looks like the “spine.lua” file cannot find “spine-lua.utils”.

So, I guess i need to add the “spine-lua” folder to the search path.
I have attached the error logs. Please help me get this to work.


You need add both (spine-solar2d and spine-lua) in your project.

thanks :slight_smile:
can you please explain how to do that?
“spine-solar2d” has a main.lua file in it but “spine-lua” has not.
I think “spine-solar2d” is an example project.
cheers.

Yes, it’s template project, but you need add spine-lua folder into this project. Spine-Solar2d work base by it.

thanks for that.
i had some progress.
but now i have a new error.
can you please help with it :slight_smile:
better
thank you again!

Hmmm, I just run test, it’s work fine.


My test project (https://github.com/EsotericSoftware/spine-runtimes/tree/4.0/spine-solar2d)
image

Has a spine-lua folder into spine-lua folder, you need to move it out.

Thanks a bunch Kan98 :slight_smile:
It still doesn’t work :frowning:
I download the zip from GitHub - EsotericSoftware/spine-runtimes at 4.0
Then unzipped it.
Then copy the nested “spine-lua” folder into the “spine-solar2d” folder.
Then I try to open the project and just get the dialog i posted.
Am i missing a step or something?

spine-solar2d.zip (2.7 MB)
You try it.