Not interested in any details? Run TestGame in your browser
Some months ago we wrote a post for the April Fools’ Day called HTML5 port plans which was announcing a planned web based EasyRPG Player port.
Because of this date it could be a fake, however some details were really planned about making this real. Using the Emscripten compiler, Player C++ code can be converted to JavaScript code and run in modern web browsers with a faster computer.
This effort could be considered too early to be done, however it is pretty useful, for example, for checking the result online along with the Test Game for fast testing without needing to download Player, game and RTP if not installed in the current machine.
The new port will require a fast machine with a modern browser. Mozilla Firefox (newest version) is recommended, as it is faster than other browsers when running it. Processor requirements are currently high, a +2GHz multi core processor is suggested.
Saving works. The Esc key maps to “Disable fullscreen” in the browser in some cases, use the X key instead to toggle the menu. But even with these flaws it is still a nice proof of concept.
You are invited to try TestGame running in your browser, feel free to share your thoughts and feedback in post comments. Imagine when the JavaScript port becomes more matured you can run RPG maker games directly from your website, how cool is that?
You’re doing amazing things! Thanks so much for working on this.
Where are the save files stored at? Are they in the same format as RPGMaker ones?
They are being saved into the browser’s “Indexed DB” filesystem. The file contained in this database is the same binary as RPG Maker savegames do (SaveXX.lsd).
Do you need to export the savegame from your browser?
Open the game, then open the JavaScript console and paste this:
location.href = “data:application/octet-stream,” + String.fromCharCode.apply(null, FS.readFile(“/ib/Save/Save01.lsd”));
This example is assuming the played game is “ib” and the save slot is the first (01).. You can verify this from your browser Index DB storage inspector. At least Firefox and Chrome have this feature.
It will generate a file with a browser prompt, save it, rename it to Save01.lsd and put it into your game folder