Spriter is invisible when exporting as HTML website

Discussion and feedback on Construct 2

Post » Tue Jul 28, 2015 7:14 pm

In Construct 2, I can get Spriter animation of my valiant hero working (including character maps for what item he is equipped).

However, when I export to HTML 5 website and test the game the spriter animations are not visible.
Any ideas on how to get him visible?

This is what I've tried thus far.
1. Tried setting the Spriter animation to visible on layout start.
2. Checked that both the SCML and SCON files are present in the exported folder, since that was mentioned in other threads. (See screenshot)
3. checked versions of software in chain : Am using construct 2 (release 200) and Spriter 4.1 and the SCML plugin ( plugin release 7/19/2015). Originally I had done initial import using an April release of the SCML plugin. I could reimport / rewrite all the Spriter imports, but I don't know if that will resolve my problem.

Any ideas would be appreciated.
B
8
S
2
Posts: 21
Reputation: 509

Post » Wed Jul 29, 2015 10:02 am

I noticed that the Spriter animations weren't visible in the scirra arcade.... I've not tried other sites yet - which did you try?
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,248
Reputation: 46,470

Post » Wed Jul 29, 2015 10:30 am

I tried running it on the localhost webserver enbedded in VIsual Studio 2013 and on Microsoft Azure Websites. (Been hosting my beta's to free azurewebsite as I went).
B
8
S
2
Posts: 21
Reputation: 509

Post » Wed Jul 29, 2015 2:23 pm

I suspect it's the website causing the problem somehow, at least for my example - because my Umbra demo works fine as an html5 export hosted by Dropbox... This is not my area of expertise so I'm not able to offer any possible solutions I'm afraid.
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,248
Reputation: 46,470

Post » Wed Jul 29, 2015 9:22 pm

So Mike (at BrashMonkey) pointed me into the right direction. I needed to update my mime type mappings, since out of the box most webservers don't map to Spriter file types. (Dropbox Pro I guess is exception).

Added these lines to my web.config file and it up and runs on AzureWebsites for free.

Am hosting on AZUREwebsite (to save the $10 a month on dropbox pro) and just needed to added these two lines to my web.config file and it worked like a charm.


<!-- start:configuration addition for Spriter -->
<staticContent>
<mimeMap fileExtension=".scml" mimeType="text/xml" />
<mimeMap fileExtension=".scon" mimeType="application/json" />
</staticContent>
<!-- end:configuration addition for Spriter -->
B
8
S
2
Posts: 21
Reputation: 509

Post » Wed Jul 29, 2015 9:28 pm

Awesome! I'm too careful with the pennies to splash out on Dropbox pro for my hosting! @Tom, this might be of interest to you for the arcade since Spriter objects don't display there (at least they didn't a month ago....).
A big fan of JavaScript.
B
76
S
20
G
74
Posts: 2,248
Reputation: 46,470


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests