EasyRPG Player supports running games directly inside your web browser.
Web request are asynchronous. This means that all assets like pictures and music must be fetched asynchronously. When the Player wants to display a new graphic it will appear on the desktop versions (Windows, Linux, Android, …) immediately but on the web it will be invisible while the file is downloaded. Once the downloaded finishes it is replaced with the real image.
In contrast to images and music some files are important to continue execution. When a map file is pending the Player will halt until the file is downloaded. The first halt is while the Logo is displayed on startup, it downloads the database and the maptree here. Download of map files is blocking, too. But this is usually not noticeable because the download is executed while the fade out animation plays (it will stay black when the map downloading takes longer then this).
Hosting your own games is quite simple. Just follow these three steps.
Download this archive and extract it on your server.
You will get the following files and folder:
Note: if you want to try it locally you need a HTTP server, using
file: protocol locally will not work, install Apache httpd server (or any other) on localhost instead.
This step is encouraged yet optional, if you just want to test without audio file size optimizations, skip to the "Deploying a game on your server" step below.
EasyRPG Player supports MP3 and WAV files for music and WAV sounds, but Ogg Vorbis is also supported for both and is a lot smaller and worth for the web. Do the same following process for both
Sound folders and remove unneeded WAV files after the conversion.
vorbis-toolsand encode all WAV to Ogg Vorbis.
oggenc -q0 *.wav
Beware of existing MS ADPCM WAV files, they are not supported by oggenc. If you get conversion errors, use
ffmpeg -i adpcmfile.wav -o pcmfile.wav and rename it.
Because RPG Maker games refer to files without extension and querying the server for every supported extension would be slow, you need to run a small tool to generate a file called 'index.json' (containing an game file list index with extensions) for every game before uploading. The tool is a php script called "indexgen".
If you use Windows you can get the tool in .exe format here: indexgen.zip
indexgen.zip contents (indexgen.exe and php5.dll) in a game working folder (the folder containing RPG_RT.* files) to generate the
php5.dll to working folders for each game you want to upload and run
indexgen.exe again to generate the
index.json for them. Once finished you can remove (don't upload them, they are unneeded and useless in the server) the
php5.dll from any game folder.
If you use other operating system, install php-cli and run this script with
php path/to/file/indexgen.php from the game working folder (the folder containing RPG_RT.* files), for each game you want to upload.
Your games are expected in subdirectories of the
games directory. The default game executed is the one in
games/default. You can create further games by just by putting them in subdirectories of the
Now open the
index.html file and your default game should start. To play a different game pass
?game=folder_name to your index file.