Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Every time I upload my zip file into Itch.io as a html, it keeps telling me I don't have the index html file. I have renamed the html that Coppercube gave me and tried again placing it inside the zip folder and still nothing, my game doesn't even load on site. I'm not sure what else i could do? Do I rename the copperlichtdata folder? or do I just rename the html file they give me? I want to apologize because I usually don't upload html files on Itch.io. I only upload the exe, but i want to be able to fix this |
||||
|
Hi mythicpulse, Here is itch documentation on how to upload html games:https://itch.io/docs/creators/ht.... Check common pitfalls section. It's a thread on how to fix in-game controls for itch:https://www.ambiera.com/forum.ph... You can also open browser devtools and look for errors and not loaded stuff on console and network tabs to figure out what exactly is missing. |
||||
|
I went through the devtools under chrome and it's telling me the below text: "from origin 'null' has been blocked by CORS policy" I'm not not why is doing that anyone how to fix that? |
||||
|
wrote Do I rename the copperlichtdata folder? or do I just rename the html file they give me? you just rename the gamename.html to index.html |
||||
|
Are you trying to access any files using absolute path in your game? |
||||
|
I did all of that. What I notice is that the html file is doesn't even show any kb, the kb it at 1 also when I open the html file to preview my game, my chrome browser is telling me that my CORS policy is blocking the game from playing on my browser. |
||||
|
It's telling that you're referencing local file using "file" protocol. Do you have your other copperlichtdata folder on your one drive? Basically, you need to build a game, rename html to index, and put everything including copperlichtdata to itch. Is it what you're doing? |
||||
|
1. Build for web; 2. Rename YOUR_GAME_NAME.html to index.html 3. Add copperlichtdata folder and index.html to zip 4. Upload I don't even understand what can go wrong with that, it's so straight forward. |
||||
|
yes i looked through the forums on here and I found it but when I tried it and followed, my itch.io game screen was black and nothing happened. This is why I was asking for help because nobody hasn’t experienced a CORS block from their browser before ? I’m only asking how to fix it I can’t unload a empty game lol |
||||
|
|
||||
|
just go as @okeoke suggested it should work just fine, for the keyboard controls you can also use my itch.io keyboard controls fix action, just attach the action on before first drawing do something and when you upload your game to itch, it will fix the controls for you. https://vazahat.itch.io/itchio-k... |
|