View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0028486||Runner||Extensions||Public||2017-12-06 08:55||2018-10-26 13:05|
|Priority||Low||Severity||C - General||Reproducibility||100%|
|Platform||HTML5||OS||Windows||OS Version||10 Home 64-bit|
|Target Version||2.2.1||Fixed in Version||2.2.1|
|Summary||0028486: HTML5: Extensions' Init and Final Functions are not automatically called|
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...
if (os_browser != browser_not_a_browser) extension_init();
...directly into game code.
|Steps To Reproduce||Run 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 Information||Thank you, especially to Mike, for plowing through all these HTML5 issues lately! $:^ ]|
|1.4 Found In||1.4.1773|
|2.x Runtime Found In|
|2.x Runtime Verified In||22.214.171.1248|