View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0028486RunnerExtensionsPublic2017-12-06 08:552017-12-06 11:19
Assigned ToMike Dailly 
PriorityLowSeverityC - GeneralReproducibility100%
PlatformHTML5OSWindowsOS Version10 Home 64-bit
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 Version1.4.1773
2.x Runtime Version
2.x Runtime Version Verified In
Attached Files

- Relationships

-  Notes
Daniel Cleaton (Administrator)
2017-12-06 09:15

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.
ParodyKnaveBob (Updater)
2017-12-06 11:19

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

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker