How do you make your game playable on web browsers?

I want to let my friends play my game I'm making through their phone web browsers. How do I upload my game to be playable on their devices? Not sure how. Thanks for the help.
for the web version to play, you'll need a webserver/host.

theoretically all you need to do is to upload the project to a folder on the server with ftp, because all MZ-games are HTML5-based and any webbrowser will automatically start the index.html on the folder the game is uploaded to.

biggest problem is that most free hosting sites don't give FTP-access and block direct folder access with ad-frames, because that "free" hosting is paid through those ads, and that usually stops direct webgames.
so if you can affort the few dollar a month for a full access website, anyone will easily be able to play your projects through that website.
it is possible to get everything working on free websites, but that is usually more work.
for the web version to play, you'll need a webserver/host.

theoretically all you need to do is to upload the project to a folder on the server with ftp, because all MZ-games are HTML5-based and any webbrowser will automatically start the index.html on the folder the game is uploaded to.

biggest problem is that most free hosting sites don't give FTP-access and block direct folder access with ad-frames, because that "free" hosting is paid through those ads, and that usually stops direct webgames.
so if you can affort the few dollar a month for a full access website, anyone will easily be able to play your projects through that website.
it is possible to get everything working on free websites, but that is usually more work.

Okay. Which websites host RPG Maker games?
Okay. Which websites host RPG Maker games?
You can upload the game on itch.io. I actually wrote a short guide on how to do that here.
You can upload the game on itch.io. I actually wrote a short guide on how to do that here.

Itch.io says you can't upload a zip with more than 1000 items in it. The default RPG Maker folder has almost 1000 items in the IMG folder alone. Then you have everything else. Music, data, plugins, animations, etc. Is there another website that doesn't have this restriction? Thanks.
Itch.io says you can't upload a zip with more than 1000 items in it. The default RPG Maker folder has almost 1000 items in the IMG folder alone. Then you have everything else. Music, data, plugins, animations, etc. Is there another website that doesn't have this restriction? Thanks.
I don't know about that, so far I could upload browser versions of all of my games on itch.io with no problem. And there are a ton of browser RPG Maker games there. Even full length RPGs. Maybe atleast try it? You can always select "exclude unused files" when exporting your game after all. Maybe default RPG Maker folder has over a thousand image files, but is your game seriously using all of them?
Itch.io says you can't upload a zip with more than 1000 items in it. The default RPG Maker folder has almost 1000 items in the IMG folder alone. Then you have everything else. Music, data, plugins, animations, etc. Is there another website that doesn't have this restriction? Thanks.

Hmmm...I've never run into that cap on Itch with an MV gamefile.

Are you using the 'Exclude unused files' option when you deploy?

Edit: Oh, this is MZ, sorry...maybe there are more files.

Edit 2: And add to that @Beregon ninja'ing me...I'm just going to turn off my router for a bit and read a book :LZSlol:
Hmmm...I've never run into that cap on Itch with an MV gamefile.

Are you using the 'Exclude unused files' option when you deploy?

Edit: Oh, this is MZ, sorry...maybe there are more files.
I never ran into this cap either with MZ.
I don't know about that, so far I could upload browser versions of all of my games on itch.io with no problem. And there are a ton of browser RPG Maker games there. Even full length RPGs. Maybe atleast try it? You can always select "exclude unused files" when exporting your game after all. Maybe default RPG Maker folder has over a thousand image files, but is your game seriously using all of them?
Hmmm...I've never run into that cap on Itch with an MV gamefile.

Are you using the 'Exclude unused files' option when you deploy?

Edit: Oh, this is MZ, sorry...maybe there are more files.

Edit 2: And add to that @Beregon ninja'ing me...I'm just going to turn off my router for a bit and read a book :LZSlol:

I did exclude files on the MZ output and barely scraped by with 990 items. Anyway, Itch.io's limit is 1000 items in a zip. Weird, but okay.

I tried and uploaded successfully, however, playing the game in a mobile browser has some seriously bad lag, and I have 5G wifi connection. That, and playing the mobile version on a browser shows some ugly black lines in the game that I have no idea where it came from. So, it looks like mobile browsers are not the best way to play this. I tried outputting to Android via an Android tutorial, but there were so many problems with getting it to work, that I gave up. Not sure what you're supposed to do to get your games playable on a mobile device. MV stands for Mobile Version, yet Degica or whoever has no official tutorial or even an automated guide of doing so. The process is extremely technical and any problems you can run into are not covered by any guide online whatsoever.

Anyway, thanks, you two, for your help. I was able to upload the game to Itch.io, but sadly, the lag, and graphical problems make playing it on a mobile browser pretty unbearable.
You can upload the game on itch.io. I actually wrote a short guide on how to do that here.
Your guide is missing.
Your guide is missing.
I made it for a game jam I was hosting several years ago, so no surprise it's no longer there.

Here it is in its entirety:

If you are using RPG Maker MV or MZ and want to include a Browser version of your game (which will ensure more people will play it), here's a quick guide on how to do that:

1) When you are deploying the game, choose the Web Browsers platform.

2) Locate your deployed game folder and once you have everything you need inside it, compress the folder into a .zip format (by default on Windows, you can right-click the folder, select Send to and choose Compressed (zipped) folder).

3) Create a Project page on itch.io or edit an existing one. Under Kind of Project, choose HTML (you will still be able to add downloadable versions for other platforms like Windows, so don't worry).

4) Upload the zipped folder of your deployed game to your Project page on itch.io.

5) Mark "This file will be played in a browser" for the uploaded .zip game folder.

6) Scroll down to "Embed options", under "Viewport dimension", enter the resolution of your game. The default resolution for both RPG Maker MV and MZ games is Width: 816 and Height: 624

7) Under Frame Options, mark whatever options you think will be useful for your game.

8) Save the changes, then go to your project page. Click Run Game. This will configure the Browser version of the game for the first time and make it playable. After some time, the game should load and from now on, it should be playable in browser.
I made it for a game jam I was hosting several years ago, so no surprise it's no longer there.

Here it is in its entirety:
It says too many files 1340 > 1000. This is with a complete clean MZ game with no extra images or sound files added at all.
It says too many files 1340 > 1000. This is with a complete clean MZ game with no extra images or sound files added at all.
When itch.io makes trouble, you can also look for alternative hosters/web space. Most of them even offer a personal domain. I once wrote a tutorial back then: https://forums.rpgmakerweb.com/index.php?threads/how-to-publish-your-game-as-webbrowser-game.139566/
It says too many files 1340 > 1000. This is with a complete clean MZ game with no extra images or sound files added at all.
The default MZ game has the whole RTP inside of it alongside the default database, so no surprise it's too big. Keep in mind, things like the text files that show the name of those tileset tilest in the editor also count. And you don't need those in the game file.
The default MZ game has the whole RTP inside of it alongside the default database, so no surprise it's too big. Keep in mind, things like the text files that show the name of those tileset tilest in the editor also count. And you don't need those in the game file.
I'm not sure what you mean by RTP, but which specific folders should I delete to get a reasonable file number?
I'm not sure what you mean by RTP, but which specific folders should I delete to get a reasonable file number?
RTP = Default RPG Maker Assets. As for what to delete, any sound files, spritesheets and tileset sheets your game isn't using.
I once wrote a tutorial on how to do this:
I once wrote a tutorial on how to do this:

Ah, I see the option to only include used files now. Thanks, that's really helpful.
Ah, I see the option to only include used files now. Thanks, that's really helpful.
There is more to it though. At least if you use plugins
One tricky thing that browser security improvements have done in the past few years is made it much more difficult to do that preliminary testing you mentioned, where you just start up the index.html and wait for missing files to be reported. Nowadays, because of CORS policies, it will fail horribly when tried on your own PC before it even loads the title screen, unless you've already set it up for that kind of web hosting - most casual RPG Maker users haven't.

Also, rather than a separate map or even a hidden event on a map, I use a Common Event to store all my references to files for "Exclude Unused Files". And several times now I've had to make a dummy plugin using lines like
* @requiredAssets img/SumRndmDde/hud/pictures/Rose
to handle things that otherwise aren't accessible.

I do still have a problem with my browser version on itch.io showing thousands of identical console warning messages, probably generated by the SRD_HUDMaker.js plugin. But I'm going to have to figure that one out myself...

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-make-your-game-playable-on-web-browsers.134793/