User Tools

Site Tools


development:player:web

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
development:player:web [2017/08/30 17:43]
fdelapena Replace indexgen with gencache
development:player:web [2019/03/09 01:49] (current)
carstene1ns fix gencache link
Line 5: Line 5:
 If you want to test it you can play with a [[https://​easyrpg.org/​play/​|Demo of our TestGame]]. Try also a working game: [[https://​easyrpg.org/​play/?​game=ib|Ib]] If you want to test it you can play with a [[https://​easyrpg.org/​play/​|Demo of our TestGame]]. Try also a working game: [[https://​easyrpg.org/​play/?​game=ib|Ib]]
  
-===== How does it work =====+===== How it works =====
  
 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. 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.
Line 13: Line 13:
 ===== Hosting your own games ===== ===== Hosting your own games =====
  
-Hosting your own games is quite simple. Just follow these three steps.+Hosting your own games is quite simple. Just follow these steps.
  
 ==== Deploying the Player on your server ==== ==== Deploying the Player on your server ====
Line 33: Line 33:
 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 called ''​gencache''​. 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 called ''​gencache''​.
  
-If you use Windows you can get the tool here: {{https://​ci.easyrpg.org/​job/​tools-win32/​lastSuccessfulBuild/​artifact/gencache/​bin/​gencache.exe|gencache for Windows}} {{https://​ci.easyrpg.org/​job/​tools-linux/​lastSuccessfulBuild/​artifact/​gencache.tar.gz|gencache for Linux}}+You can get the tool here: 
 + 
 +  * {{https://​ci.easyrpg.org/​job/​tools-win32/​lastSuccessfulBuild/​artifact/​bin/​gencache.exe|gencache for Windows}} 
 +  * {{https://​ci.easyrpg.org/​job/​tools-linux/​lastSuccessfulBuild/​artifact/​gencache.tar.gz|gencache for Linux}} 
 Place the gencache executable in a game working folder (the folder containing RPG_RT.* files) to generate the ''​index.json''​. Move the ''​gencache''​ executable to working folders for each game you want to upload and run ''​gencache''​ again to generate the ''​index.json''​ for them. Once finished you can remove (don't upload it, it's not needed) the ''​gencache''​ from any game folder. Place the gencache executable in a game working folder (the folder containing RPG_RT.* files) to generate the ''​index.json''​. Move the ''​gencache''​ executable to working folders for each game you want to upload and run ''​gencache''​ again to generate the ''​index.json''​ for them. Once finished you can remove (don't upload it, it's not needed) the ''​gencache''​ from any game folder.
  
development/player/web.1504115006.txt.gz · Last modified: 2017/08/30 17:43 by fdelapena