Program runs on Local Host but not online?

Here’s a strange one for ya. I have program that’s been running fine (both locally and online), I added a few lines of code and now suddenly (once uploaded) it will no longer run online (but fine locally). It appears to load about 95% of the game then suddenly stops at the end. I even replaced main.hx with the older working script and still nothing (online). What else could I have changed?
Link: http://roomrecess.com/Haxe/BoomBlocks/play.html

Any suggestions?

It’s working on Opera.

It works fine on Google Chrome. However, I checked the browser’s debug console and here is what I copy-pasted from it:

play.html:113 0.02370245205512151
play.html:113 1
http://roomrecess.com/Haxe/BoomBlocks/fonts/SpicyRice-Regular.woff Failed to load resource: the server responded with a status of 404 (Not Found)
http://roomrecess.com/Haxe/BoomBlocks/sounds/BGMusicOrig.mp3 Failed to load resource: the server responded with a status of 404 (Not Found)

working in chrome, not working in firefox with this error:

19:20:31.306 downloadable font: download failed (font-family: "Spicy Rice" style:normal weight:normal stretch:normal src index:2): status=2147746065 source: http://roomrecess.com/Haxe/BoomBlocks/fonts/SpicyRice-Regular.woff1play.html:57:14

Thanks guys! I’m new to OpenFL. I’m experienced in AS3, so my question is. How are you getting debug info? Thanks again!

In Google Chrome, press Ctrl + Shift + J. That’s the keyboard shortcut at least. You can also go to the Chrome menu and select More Tools > Developer Tools.

Perfect, thanks man!

So basically here your problem is that browsers need different assets:

  • mp3 or ogg (sounds)
  • ttf or woff or eot (fonts)
    and you don’t provide it.

I think there is an automatic converter for fonts in openfl at compile time but most of the time it doesn’t work so you have to convert by yourself.

Yep, we don’t convert sound for you (different browsers will expect different formats), so if you can, provide all sounds with OGG and WAV as well, using the name.

I think the webfont converter works for TTF but not all types of OTF. Regardless, we use HTML5 webfonts, so a traditional webfont generator can be used, too

If anyone finds a better offline webfont generator, let me know, too – that would be nice :wink: