Hey all,
So I was asked to write a short tutorial on publishing a Game as Webbrowser game so that others can play it instantly. RPG Maker already outputs a game as an HTML/js application, so there isn't much work to do.
Before hosting a game as html/js application, be aware that due to their nature,
any 3rd-party Plugin will be made public to others. In this case, you should obfuscate
and domain-lock their source code with this tool:
https://obfuscator.io/
Before following this tutorial, you may think about uploading it on itch-io, then you don't need to purchase a personal domain + webspace.
What you need
-
FileZilla
- a Hoster that provides you a domain and a little bit of webspace
There are a lot of Hosters out there where you can purchase a domain, including some webspace.
I personally use 1&1 Ionos, but more because of psychological reasons as their headquarter is in my hometown, and I had some connections during university. And they have nice customer support.
Let's go
Step 1: Export
In RPG Maker, click on Export and choose "Webbrowser". Don't deploy inside your project directory, as this sometimes causes some confusion. Just select an empty directory.
Step 2: Connect FileZilla with your webspace
Your Hoster will give you the details you need to connect. I recommend creating a directory "Games" on it. Drag&Drop your Game directory into it to upload it on your webspace.
Step 3: Connect the Domain
If not already done, go into your hoster's domain settings and link the domain with your webspace. Optionally you can set up a subdomain as I did.
The link that you want to distribute to the players is
Code:
yourdomain.com/path/to/your/game/directory
In my case:
Code:
play.aerosys.blog/rng-demo
Do not include the HTML file in the link, the link points to its directory instead.
本贴来自国际rpgmaker官方论坛作者:Aerosys处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/how-to-publish-your-game-as-webbrowser-game.139566/