moonseed I think there is something in the spine-widget.js that can be changed to point to local file resources as opposed to making an HTTP request but I'm not sure how to code that. It would be great to have an HTML export direct from Spine that can be used anywhere. A couple of other programs I've recently tried have this function but Spine's usability and features are much nicer. Thanks!
Mario Spine uses XMLHttpRequest to load assets. This requires pointing at a URL, i.e. http://, https://, but also file://. Depending on the "browser" you use to view the local files, just specifying a file:// or relative URL might do the trick.
moonseed Hi. I'm still having trouble getting this to work locally outside of Firefox even when specifying a file:// path. Can I send you my test folder to have a look? I am hoping to have the animation play when the html file is dragged into a Safari window. This would be optimal in creating content for iBooks as opposed to using GIF or APNG. Many thanks.
Mario Sure, send us your files via email. That said, iBooks does not support WebGL or Canvas, so it's unlikely this will work even if we can resolve the path issues.
moonseed Thank-you! I sent test files to contact@esotericsoftware.com. I included also an example using DragonBones where I imported Spine's Power-up animation (Powerup example) into DB then exported to HTML and assigned local assets. I was able to get the DragonBones HTML export to work locally in Safari and iBooks as well as Adobe Digital Editions. I think DB is using WebGL??
MichelVictor I want to do the same thing, how to use file://? I didn't find a way to work it locally.
Mario I'm afraid file:// will not work with the web player. Resources need to be loaded through http(s).
Danny-Ditto Now I'm working on a larger project that uses a lot of content. And all this content has many stages of coordination. A convenient base is needed for the screening of all elements. A web player could handle this, but it turns out that everything works, you need hosting. It would be nice if it worked locally. 😢 As I understand it now there is no solution?
Nate It's not up to us, it's how web browsers work. For security reasons they won't load local content. You can run a local web server very easily though. Eg if you have Python the command is python -m SimpleHTTPServer, described briefly here: spine-runtimes/spine-ts at 3.8
Danny-Ditto @Nate Just analog dragon bones has such an opportunity. I don’t want to invent a bicycle in the form of local hosts or introduce people to Python. I hope this opportunity will appear in the future. Thanks for the answer