View Issue Details

IDProjectCategoryView StatusLast Update
0028486RunnerExtensionsPublic2017-12-06 11:19
ReporterParodyKnaveBobAssigned ToMike Dailly 
PriorityLowSeverityC - GeneralReproducibility100%
Status AssignedResolutionOpen 
PlatformHTML5OSWindowsOS Version10 Home 64-bit
Product Version 
Target VersionFixed in Version 
Summary0028486: Extensions: HTML5: Init and Final Functions not automatically called
DescriptionFor years now, HTML5 Javascript extensions have not called the Init nor Final Functions automatically.

I understand if some browser fails to use a Final Function, but the docs could merely caution of GMS user, like with the Game End Event. On that note, the workaround here is to include the Final Function in a Game End Event (and/or other method to hopefully catch the game ending).

Arguably much more used would be the Init Function. Instead of simply pointing at a function, the extension maker must write the init-calling code directly into the browser's first reading of the extension, or inform the GMS user to write something to the effect of...


...or even...

if (os_browser != browser_not_a_browser) extension_init();

...directly into game code.
Steps To ReproduceRun my uploaded GMZ from 0028463 and observe neither the Init nor Final Functions getting called.

Or, write your own HTML5 extension with some obvious output from a function that you mark Init and/or Final, and observe it not being used on game load nor unload.
Additional InformationThank you, especially to Mike, for plowing through all these HTML5 issues lately! $:^ ]
1.4 Found In1.4.1773
2.x Runtime Found In
2.x Runtime Verified In


Daniel Cleaton

2017-12-06 09:15

Adminstrator   ~0056900

Just FYI (and many thanks for your continued hard work and support!!), direct Mantis access to report issues will be getting removed for everyone pretty soon, as we're moving to a new server/version. Will either be right before the holiday, or right after it. is the system for everyone at that time. It's only a handful of long-termers such as yourself who currently still have access to Mantis.


2017-12-06 11:19

Updater   ~0056908

Thank you for the heads up, and you're quite welcome! $:^ ]