bumbum

Veteran
Veteran
Joined
Jan 6, 2021
Messages
74
Reaction score
29
First Language
Turkish
Primarily Uses
RMMV
Hi guys! I'm having trouble when deploying to web browsers. I got this error (in the photo) when I open it. How can I upload it to itch.io?
 

Attachments

  • resim_2022-02-27_011737.png
    resim_2022-02-27_011737.png
    53.6 KB · Views: 4

BenSD

Could be anybody
Veteran
Joined
Dec 22, 2021
Messages
397
Reaction score
554
First Language
English
Primarily Uses
RMMZ
Is this after you've uploaded it? If you're trying to play local files in your browser, it might be because browsers don't like doing that for (I think) security reasons.
 

Nolonar

Veteran
Veteran
Joined
Feb 18, 2018
Messages
424
Reaction score
579
First Language
French, German
Primarily Uses
RMMZ
That's correct. If you tried to open the game by simply opening index.html, you'll get this error (in MV at least, in MZ you'll get the error "Your browser does not allow to read local files.")

To play this locally on your PC, you'll need to setup a server. The simplest way I can think of involves installing Node.js, then opening your project folder in a terminal window (Windows Terminal, Powershell, cmd, Terminal, etc.) and typing either:
  • npx http-server
  • npm http-server
The difference is that npm will install the http-server package permanently, while npx will do so temporarily (so every time you use npx, it will need to download the package, while npm only needs to download the package the first time).

Once the http-server package is installed, just open one of the links it shows on the browser (e.g. http://127.0.0.1:8080).
 

BenSD

Could be anybody
Veteran
Joined
Dec 22, 2021
Messages
397
Reaction score
554
First Language
English
Primarily Uses
RMMZ
There's also a 'web server' app for chrome, but it's pretty trash.

Here's some other insight from a faraway URL:

 

bumbum

Veteran
Veteran
Joined
Jan 6, 2021
Messages
74
Reaction score
29
First Language
Turkish
Primarily Uses
RMMV
Yes I tried to open directly index.html file. So, If I turn it into a rar file, will I not have a problem in itch.io? Or do I need to do something special for itch.io?
 

BenSD

Could be anybody
Veteran
Joined
Dec 22, 2021
Messages
397
Reaction score
554
First Language
English
Primarily Uses
RMMZ
As long as it's being played from a web server, there's nothing in what you posted indicating it won't work...but of course you can't know until you try.
 

dragoonwys

Freelance Illustrator
Veteran
Joined
Jul 26, 2016
Messages
410
Reaction score
1,151
First Language
english
Primarily Uses
RMMV
@bumbum It has to be a .zip file for it to work on itch.io, they dont accept rar files on there
 

bumbum

Veteran
Veteran
Joined
Jan 6, 2021
Messages
74
Reaction score
29
First Language
Turkish
Primarily Uses
RMMV
@bumbum It has to be a .zip file for it to work on itch.io, they dont accept rar files on there
I did it, but the website says that your file is not compatible with UTF-8 format. I don't know how to archive with UTF-8. There's no option on Winrar or 7zip. (sorry guyz I' ve noticed the mistake now :D)
 
Last edited:

Latest Threads

Latest Profile Posts

For those with up to 9 elements of magic; how do you structure your database. By element? Or by what is offensive vs supportive spells?
would anyone here be interested in rough concept art for the main protagonist of my game that might get changed later? :kaoswt2:
I guess I have no idea how to properly upload a custom font lmao. The menu fonts are too damn small.

Font_Size.PNG
Dev be like: "I'll make the character goes amnesia so I could explain the world and the lore better and immersive to the players"

Forum statistics

Threads
124,435
Messages
1,163,637
Members
163,250
Latest member
Ramadhinata
Top