Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

So only 'index.html' should be in the folder uploaded to itch.io?

When I did that everything was black.

I'm still having problems.

No.

In the .ZIP you must place all the files that GODOT creates when exporting to HTML, no more, no less.

- Create a new folder.

- In godot you export ONLY to HTML and select the folder you just created.

- After exporting, go to that folder and rename the html file to index.html.

- Compresses ALL the contents of that folder to .zip. (it should be a dozen or so files) and you upload that to Itch.

- Remember to check the shared buffer option in itch for the game to work.

Okay, sorry for the late response... I basically decreased the amount of sprites sheets I had into one. Still having problems though.  I'm sorry I can be stupid, but could you take screen shots? I don't understand.

Do I compress this?

Inside of this?

Right clic to  HTML folder,  compress ->  Here as HTML.zip


Now, you have a file called HTML.zip, that file you have to upload to itch.io.



-----------------------------------------------------------------------------------------------------------

ANOTHER question.

I see that all your files are called "index".
Is the godot project called "index" or did you manually rename all the files?
If you manually renamed all the files, then the game will NOT work. You just have to rename the file that ends in .html and leave all the rest as GODOT gives them to you.

(1 edit)

I don't think the project is called "index." I don't know where that came from.

Are all those indexes supposed to be in the HTML file?

EDIT:

I just compressed the HTML file, and it uploaded!

But... Everything is black or grey.

It could be many things, for example, that you have the game with opengl 3.0, but the browser only supports 2.x.
Or that you marked an incorrect option at some point.

  What I advise you is to create a new project in godot, something very, very simple, for example, displaying just one image.

- Export to HTML (remember to create a clean folder to export)

- Rename ONLY the .html file to index.html

- ZIP the folder where you exported the game.

- When you upload it to Itch.io, remember to check the shared buffer option.

(3 edits)

Yeah it works, here it is: https://todashi.itch.io/test?secret=4HBBmQfr9xWdAlejKEtsMmvSpp8

How do I fix the opengl problem? 

EDIT: "Do I need to switch it to "Compatibility" and re-export the HTML file and then finally compress it to a ZIP?" I did that, still not working.

Do you know why my actual project won't work?

I couldn't tell you the exact cause of the error.
Try following another tutorial to see if it can be more helpful.


(+1)

Yeah, thank you for all your help first of all.

I found out that the problem is that Godot 4 runs on OpenGL 3.3 while my laptop can only run OpenGL 2.
So, my computer is just old... 

But people can still play my game.