Release 1.2.2 HTML/itch.io Bugfixes #4
Grisgram
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello dear cloners!
Sorry for pushing another hotfix so close to the last one, but it's an important one.
I could find the reason, why HTML games did not start when hosted on itch.io -- which is one of the primary sites for game jams and where many many thousand indie projects live.
The project settings should now be correct to have the html target of your game start directly on itch.io.
What was the problem?
GameMaker allows us to set our own
index.html
file as the launcher file for the HTML5-target. This file must reside in theIncluded Files
folder.Unfortunately, if you do that, you will end up with a html-zip files that contains this index.html file twice. Once in the root-folder (correct), and an identical copy of it in the game-folder.
Due to how the mechanism works on itch.io, it then happens, that itch finds the index.html inside the game folder first, and launches this one. Of course this file must crash, as all relative paths do not match (the .js main code of the game is not found).
I set up the project now so that this index.html in the game folder no longer gets exported when you build a html-executable. It is still contained in the correct location in the root folder of course, only the copy vanished.
Other resolved bugs in this release
InputBox
control did not handle mouse clicks correctly, when the input box was set todraw_on_gui
.false
Here is the view from the public roadmap
This discussion was created from the release Release 1.2.2 HTML/itch.io Bugfixes.
Beta Was this translation helpful? Give feedback.
All reactions