I wanted to have an HTML5 version of my game on itch. unfortunately, the game bundles and builds great locally. I make a zip of the folder and upload to itch. I get the Defold loading screen but never my game. Any suggestions? I’ve checked heap size and it seems within range. Largest asset is an almost 2 mb sound file. Total on the build report for wavc the largest portion by far is less than 10 mb total. Anything else I should look at?? Thanks in advance.
The fact that the Defold loading screen runs makes me think that your zip folder is setup correctly, but it does seem to indicate that the
index.html isn’t being run correctly.
Can you verify the folder/file structure of your zip folder?
Note if you just double click the html file on your computer you should get the same experience as you are describing (manual). It needs to be hosted on a server, hence the description about a python server. If this is the problem then we would probably need someone a bit more knowledgeable than me to advise.
Another option could hidden in the common pitfalls section of this itch page, you might want to double check them.
Finally, if you supply a link it might be easier to debug your issue by us looking at the errors that come up on the source.
Thanks for the prompt reply!! I’m currently reading more in depth on the itch page. I glanced over it shrugged and hit build honestly. Honestly it might be a terrible connection today on my end. The Defold loader will open and the bar will go fully blue but never launch the game. I haven’t gotten any errors in the build or game. It’s purely Defold with no modules right now.
Here’s a link with a download of the HTML files. Listed as other for now. If I need to get a source to you, what’s the recommend procedure? I’m used to programming sound resonance propagation not game code in editors
After reading the itch page I don’t see anything suspect with my code. I’m going to enable it in itch again, load the page and walk away… maybe my impatience and living in remote rural Texas is the problem. I tried other games and they too did not fully load in my expected arrival time. Thanks again for the support, the documentation and forum of Defold is unmatched I have to say.
How far does it get? Do you see the loading bar make progress? Did you check the browser console for errors?
The progress bar gets completely full. I removed the HTML portion of the game, I couldn’t get any of them to load any games properly so I had something on my part going on. I will try and get a log from the console, later. Stayed up late last night reading your threads on lighting and shaders actually
The HTML5 version works for me when I unzip and load from a local webserver. Can you publish a HTML5 version of the game on itch.io again? And please upload a Debug build so that we get logs in the browser Console.
I’ve uploaded a debug build and trying now
Still sticks at the fully loaded bar. Last I heard from it in the log…
XHRGEThttps://v6p9d9t4.ssl.hwcdn.net/html/4446418/GreenGuy/archive/game.dmanifest0[HTTP/2 200 OK 319ms]
XHRGEThttps://v6p9d9t4.ssl.hwcdn.net/html/4446418/GreenGuy/archive/game.public.der0[HTTP/2 200 OK 254ms]
quick test game loads fine for me on PC, chrome and firefox as well as android device browsers. No errors in browser consoles.
Hmmm… pretty sure I have browser problems