Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[Fixed in 1.0.35+] Issues on HTML5 + 2.3

A topic by BMouse created Oct 12, 2020 Views: 573 Replies: 10
Viewing posts 1 to 9
(1 edit)

The extension doesn't seem to work for me when making an HTML5 game. When running the code, the game crashes right after the initial load.

The error seems to be in the GMLive script file. When looking at the console on a browser the error is "method : argument needs to be a function"

You can repro this by creating a new project and just importing the extension. Commenting out the code on GMLive makes the first room load without issues.

Developer

2.3 HTML5 runtime is very buggy as of yet, e.g. this will cause your game to straight up not start on beta runtime 187:

function scr_a_bug() {
    var fns = [
        function() { return 1; }
    ];
    var ret = fns[0]();
}

I try to report everything I find but it's hard to catch all of these when you can't see the next bugs before the current ones are fixed.

that’s a bummer, clearly the transpiler is super buggy. I fixed the bug above by reordering some functions in the global scope but it crashed because of another function later on 

(3 edits)

Same issue with HTML5 on 2.3.x: as soon as I import the GMLive extension, HTML5 target refuses to work, debug spits out continuous exceptions.



Currently I'm just disabling the extension for HTML5 builds with the following alteration to obj_gmlive's create script:

#macro live_enabled !scr_is_browser()
Developer

HTML5 target on 2.3 has been extremely buggy so far - 2.3.0 has some big holes in built-in function coverage while 2.3.1 beta currently produces invalid JS output.

It should hopefully get better as new versions are released, but I’m not sure if I can workaround numerous issues at this time.

Developer

I have uploaded a new version (1.0.35) that (after a lot of workarounds) appears to work on the current 2.3.1 beta.

thanks! Will check it out

(1 edit)

NVM: Did the process again and it seems to work now, thanks!


I downloaded GM 2.3.1 beta and dragged the latest version of the plugin but doesn't seem to work for me. I still get a bunch of JS error and it fails to launch. Do I need to something special? I tried with 1.0.37 for what it's worth

Thanks! Can't believe how buggy 2.3 has been. :(

Sorry to bump this again. While the target seems to build, I can't get the live reload to work on HTML5, works fine on a Windows target. Am I doing something wrong here?

Developer

If you can email me a sample project, I’ll take a look.