Hi!
Yesterday I completed my latest feature and wanted to give it a try on mobile (html5).
Surprisingly, one of my collections was displayed as a black screen. The same thing occurs on desktop (HTML5), so this is not mobile-specific but HTML5-specific.
Notes:
1/ It works 100% fine in Defold.
2/ My previous 100% functional HTML5 build was like 3 weeks ago.
3/ I did not work on this collection since then (or maybe minor stuff).
4/ Same issue on both Defold 1.3.5 and Defold 1.3.6
I tried to identify where the issue could come from by removing big blocks in this collection:
1/ Looks like something’s wrong with the gui used in this scene (after removing it, the scene is loaded again)
2/ Specifically with the gui script (same).
3/ Specifically with in the update() function, because when I delete the content of this function… it loads again.
Note sure this is the actual source of the problem, but something happens when I remove that stuff.
So I decided to go deeper into the update() function. And there is where it becomes weird.
I commented all the blocks, one by one, until everything is commented… and the issue remains!!
So…
1/ It “works” (no black screen but useless scene) when the update() function is empty.
2/ It doesn’t work (black screen) when everything in the update() function is commented.
3/ WTF.
MAYBE IMPORTANT:
With Defold 1.3.6 I have more information when building for HTML5 and is here what is displayed in the console:
And here is the full log:
20220928_RagDefold_HTML5_build_console_error001.txt (3.7 KB)
That’s all folks
Do you have an idea where the issue could come from?..