What will prevent an HTML5 build from working?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • If I run my current app, it works as expected.

    When I build it as HTML5 it doesn't even load.

    I experimented with deleting two of the three frames. I then started deleting events in the last frame. After deleting an event that changes the direction of an object, sets it to visible, and updates a counter, it will load.

    Is there a list of objects or events that will prevent HTML5 from working? Am I incorrect to assume that Fusion will not allow me to include an object in a restricted build type?

    Please send me feedback on my new 2D space shooter, It Never Ends. Please login to see this link.

  • Weird, press F12 to open the developer tools and check the content of the Console window, it should say what line of code is causing the crash.

    Thank you for this lead, but I don't have a strong grasp of JS, and only a slightly better one of html. Target -densitydpi seems like a screen res issue. When I took out the resize to window setting, this went away. Audio context may indicate a problem with sound objects, like different sampling rates, or maybe midi music. Everything in javascript is a mystery, but it appears that the code is referencing an object(s) that doesn't exist.

    If an object in JS is similar to Fusion, I don't know how that's happening since Fusion strips out code for deleted objects. Any thoughts?

    On another note, how can I find the location of the JS error in Fusion from the error report? In other words, if I get an error on line 445 of JS, where is that in the event editor?

    Here is the error report. Thanks in advance to whoever can provide assistance.

    The key "target-densitydpi" is not supported.
    Runtime.js:17 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
    ba @ Runtime.js:17
    Runtime.js:445 Uncaught TypeError: Cannot set properties of null (setting 'code')
    at Va.create (Runtime.js:445:199)
    at V.create (Runtime.js:97:211)
    at G.create (Runtime.js:368:465)
    at P.load (Runtime.js:348:461)
    at A.ZK (Runtime.js:210:302)
    at n.MM (Runtime.js:182:402)
    at n.NL (Runtime.js:178:482)
    at n.Dp (Runtime.js:173:500)
    at n.Ya (Runtime.js:44:99)

    Please send me feedback on my new 2D space shooter, It Never Ends. Please login to see this link.

    Edited 2 times, last by Grim_Jester: added information (September 3, 2023 at 7:16 PM).

  • Sorry I forgot to tell you to switch to HTML5 Development build type, as in "HTML5 final project" the source code is obfuscated. If you use the HTML5 Limited version of the exporter, then you can't do it, it's in final mode, in this case you have to post or send us your MFA.

  • Sorry I forgot to tell you to switch to HTML5 Development build type, as in "HTML5 final project" the source code is obfuscated. If you use the HTML5 Limited version of the exporter, then you can't do it, it's in final mode, in this case you have to post or send us your MFA.

    Thank you! Here it is. I still don't understand where this is in Fusion though:

    The key "target-densitydpi" is not supported.
    Runtime.js:19817 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
    CSoundPlayer @ Runtime.js:19817
    Runtime.js:37974 Uncaught TypeError: Cannot set properties of null (setting 'code')
    at window.Runtime.CParam.create (Runtime.js:37974:14)
    at window.Runtime.CAct.create (Runtime.js:3528:32)
    at window.Runtime.CEventGroup.create (Runtime.js:32680:34)
    at CEventProgram.load (Runtime.js:31203:43)
    at CRunFrame.loadFullFrame (Runtime.js:19682:20)
    at CRunApp.startTheFrame (Runtime.js:18193:16)
    at CRunApp.playApplication (Runtime.js:18019:15)
    at CRunApp.stepApplication (Runtime.js:17793:13)
    at CRunApp.updateApplication (Runtime.js:44491:23)

    Please send me feedback on my new 2D space shooter, It Never Ends. Please login to see this link.

  • Thanks, so you have the unlimited version of the HTML5 runtime. It says it crashes at loading time because of an incorrect parameter, which means that probably your HTML5 exporter is not up-to-date. After installing an exporter you should always re-install the latest CF 2.5 update patch (that also updates all installed exporters). Do it and hopefully that will fix the problem.

  • Thanks, so you have the unlimited version of the HTML5 runtime. It says it crashes at loading time because of an incorrect parameter, which means that probably your HTML5 exporter is not up-to-date. After installing an exporter you should always re-install the latest CF 2.5 update patch (that also updates all installed exporters). Do it and hopefully that will fix the problem.

    I'm using the Steam version. I uninstalled it, and reinstalled it. Unfortunately, I got the same text:

    The key "target-densitydpi" is not supported.
    Runtime.js:17 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.
    ba @ Runtime.js:17
    Runtime.js:445 Uncaught TypeError: Cannot set properties of null (setting 'code')
    at Va.create (Runtime.js:445:199)
    at V.create (Runtime.js:97:211)
    at G.create (Runtime.js:368:465)
    at P.load (Runtime.js:348:461)
    at A.ZK (Runtime.js:210:302)
    at n.MM (Runtime.js:182:402)
    at n.NL (Runtime.js:178:482)
    at n.Dp (Runtime.js:173:500)
    at n.Ya (Runtime.js:44:99)

    Please send me feedback on my new 2D space shooter, It Never Ends. Please login to see this link.

  • ok... Could you post your MFA here please? as well as the content of the Data\Runtime\html5 folder.

    Thank you in advance for your help. I've been using this product line since K&P. This game is meant to be used as an activity for high school math and science classes. I spent the majority of the Summer getting it ready for the school year, and never expected the HTML5 build not to work.

    I originally thought that it was an array issue, but I stripped them out, and it still wouldn't load. It does load within the editor though.

    I also wanted to add that this is the Steam version. When you suggested re-installing, I checked that it was set to auto updating, and it was. I uninstalled it anyway.

    I was unable to upload the HTML5 folder since the forum informed me that the zipped file was too large.

    Thanks again!

    Please send me feedback on my new 2D space shooter, It Never Ends. Please login to see this link.

    Edited once, last by Grim_Jester (September 9, 2023 at 5:42 AM).

  • Quote

    Thank you in advance for your help. I've been using this product line since K&P. This game is meant to be used as an activity for high school math and science classes. I spent the majority of the Summer getting it ready for the school year, and never expected the HTML5 build not to work.

    Just about this, in theory features (or objects) that are not supported do not cause crashes because they are automatically removed at build time (this answers another question you asked previously iirc). But in the case of Music features I had to re-activated them (=stop removing them at build time) because a user needed them for implementing their own MIDI routines for their own projects, so they crash in the normal runtime where they aren't implemented (the fix that will be in the next update should fix it, at least the Play Music action).

  • Just about this, in theory features (or objects) that are not supported do not cause crashes because they are automatically removed at build time (this answers another question you asked previously iirc). But in the case of Music features I had to re-activated them (=stop removing them at build time) because a user needed them for implementing their own MIDI routines for their own projects, so they crash in the normal runtime where they aren't implemented (the fix that will be in the next update should fix it, at least the Play Music action).

    Thanks for not only pointing out the problem, but answering an older question which I was certainly going to ask again!

    Please send me feedback on my new 2D space shooter, It Never Ends. Please login to see this link.

  • Thanks! I see, it's due to the MIDI music you use, MIDI music files are not supported by the HTML5 runtime. I'll fix the crash but the music won't play. Just remove the Play Music action in frame #, that will fix the problem in the meantime.

    Ah, it appears that a wav file, pop2.wav, was also stopping it from loading. I thought it was a sampling/bit rate issue, but there are various types within the project already. Strange. Anyway, I removed it, and it works.

    I'm just reporting this in case it's a new issue.

    Please send me feedback on my new 2D space shooter, It Never Ends. Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!