|Anonymous | Login | Signup for a new account||2017-12-12 06:37 GMT|
|My View | View Issues | Roadmap | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0028486||Runner||Extensions||Public||2017-12-06 08:55||2017-12-06 11:19|
|Assigned To||Mike Dailly|
|Priority||Low||Severity||C - General||Reproducibility||100%|
|Platform||HTML5||OS||Windows||OS Version||10 Home 64-bit|
|Summary||0028486: Extensions: HTML5: Init and Final Functions 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! $:^ ]|
|2.x Runtime Version|
|2.x Runtime Version Verified In|
Daniel Cleaton (Administrator)
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.
www.yoyogames.com/bug 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.
|Thank you for the heads up, and you're quite welcome! $:^ ]|
|Copyright © 2000 - 2017 MantisBT Team|