Two issues with html5 games



  • The first one is the most important. Occasionally when just running from haxedevelop (flashdevelop for haxe), and html5 game will hang on the loading screen at around 80%. Also I found out that it does this on Microsoft Edge as well. No real explanation as to what's happening, and in almost every other browser I try, it works fine. I have no idea of how to figure out why it would do this.

    secondly is of minor importance, on firefox there's an option in advanced-general options where it says "search when typing" which basically searches a webpage (like if you hit ctrl-f) as you hit the keyboard. This apparently takes over and makes it a problem for my game when I need something like hitting 's' to start a game. Granted this can be turned off, and I don't imagine a lot of people use it, still it's annoying for anyone using firefox and there's a lot of firefox users out there. Any idea how I can stop that from screwing around with my game?



    1. Try to look at the browser developer console, what does it say. It could shed a light on the problem source

    2. I don't know how to make browser unresponsive to input that should go to the game, so I would consider change of game commands. Say player should hit 'p' to play (instead of 's' for start)



  • So the second one, I basically added a script that stops the keyboard stuff from going to the browser (so I do that on every key my game uses and that works so far, although that may only be a temporary solution, especially if I have games that require typing in commands).

    The first one it balks on IE and Edge, with IE it just says this:
    SCRIPT5: Access is denied.
    File: index.html, Line: 1, Column: 1

    Edge is just a little more verbose, has something to do with accessing sound, It sounds like EDGE thinks it's using mp3's when it's not and IE expects MP3's which aren't there, but I don't know for sure:

    HTML1300: Navigation occurred.
    scavenger
    HTML1300: Navigation occurred.
    scavenger
    HTTP403: FORBIDDEN - The server understood the request, but is refusing to fulfill it.
    (XHR)GET - https://v6p9d9t4.ssl.hwcdn.net/html/488382/flixel/sounds/beep.mp3
    HTTP403: FORBIDDEN - The server understood the request, but is refusing to fulfill it.
    (XHR)GET - https://v6p9d9t4.ssl.hwcdn.net/html/488382/flixel/sounds/flixel.mp3
    Current window: uhfgood.itch.io/scavenger
    HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
    (XHR)GET - https://itch.io/static/jquery.min.map/*!%20jquery.cookie%20v1.4.1%20%7C%20MIT%20*/
    HTML1500: Tag cannot be self-closing. Use an explicit closing tag.
    scavenger (114,4440)
    HTML1500: Tag cannot be self-closing. Use an explicit closing tag.
    scavenger (116,566)
    HTML1500: Tag cannot be self-closing. Use an explicit closing tag.
    scavenger (117,779)
    HTTP403: FORBIDDEN - The server understood the request, but is refusing to fulfill it.
    (XHR)GET - https://v6p9d9t4.ssl.hwcdn.net/html/488382/flixel/sounds/beep.mp3
    HTTP403: FORBIDDEN - The server understood the request, but is refusing to fulfill it.
    (XHR)GET - https://v6p9d9t4.ssl.hwcdn.net/html/488382/flixel/sounds/flixel.mp3
    WEBAUDIO17014: Decoding error: The stream provided is corrupt or unsupported.
    SCRIPT5007: Unable to get property 'apply' of undefined or null reference
    soundjs.min.js (17,885)
    WEBAUDIO17014: Decoding error: The stream provided is corrupt or unsupported.
    SCRIPT5007: Unable to get property 'apply' of undefined or null reference
    soundjs.min.js (17,885)

Log in to reply
 

Looks like your connection to HaxeFlixel was lost, please wait while we try to reconnect.