Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > CopperCube Open discussion
html isn't working?

mythicpulse
Guest
Quote
2024-01-30 21:26:27

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


okeoke
Registered User
Quote
2024-01-31 06:43:41

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.

🔎︎



mythicpulse
Guest
Quote
2024-01-31 07:20:10

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?


o139
Registered User
Quote
2024-01-31 07:24:52

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


okeoke
Registered User
Quote
2024-01-31 07:26:33

Are you trying to access any files using absolute path in your game?


mythicpulse
Guest
Quote
2024-01-31 08:43:47

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.

🔎︎


🔎︎



okeoke
Registered User
Quote
2024-01-31 08:51:30

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?


okeoke
Registered User
Quote
2024-01-31 08:57:34

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.
🔎︎



mythicpulse
Registered User
Quote
2024-01-31 08:58:12

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


okeoke
Registered User
Quote
2024-01-31 09:01:57

🔎︎

🔎︎



just_in_case
Moderator
Quote
2024-02-01 07:49:27

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...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact