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?
Publishing A Game to Web Browsers
RPG Maker MV SupportIs 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.
That's correct. If you tried to open the game by simply opening
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:
Once the
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-servernpm http-server
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).There's also a 'web server' app for chrome, but it's pretty trash.
Here's some other insight from a faraway URL:
Here's some other insight from a faraway URL:
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?
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.
@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 😀)
Original thread: https://forums.rpgmakerweb.com/threads/publishing-a-game-to-web-browsers.145264/