View Issue Details

IDProjectCategoryView StatusLast Update
0028486RunnerExtensionsPublic2018-10-26 13:05
ReporterParodyKnaveBobAssigned ToFritz 
PriorityLowSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
PlatformHTML5OSWindowsOS Version10 Home 64-bit
Product VersionPre-2.1.3 
Target Version2.2.1Fixed in Version2.2.1 
Summary0028486: HTML5: Extensions' Init and Final Functions are 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! $:^ ]
TagsExtensions, html5
1.4 Found In1.4.1773
2.x Runtime Found In
2.x Runtime Verified In2.2.1.268



2018-08-02 12:05

Manager   ~0061023

Not been able to verify in a build yet, but 99% sure this'll fix it