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 revisionPrevious revision
Next revisionBoth sides next revision
development:player:web [2017/08/30 17:12] – [Preprocessing steps for games] remove vorbis steps, better suggest opusenc once deployed (and maybe png2xyz and xyzcrush) fdelapenadevelopment:player:web [2017/08/30 17:43] – Replace indexgen with gencache fdelapena
Line 31: Line 31:
 ==== Deploying a game on your server ==== ==== Deploying a game on your server ====
  
-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".+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 in .exe format here: {{:development:player:indexgen.zip|}} +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}} 
-Unpack ''indexgen.zip'' contents (indexgen.exe and php5.dll) in a game working folder (the folder containing RPG_RT.* files) to generate the ''index.json''. Move ''indexgen.exe'' and ''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 themthey are unneeded and useless in the server) the ''indexgen.exe'' and ''php5.dll'' 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 itit's not needed) the ''gencache'' from any game folder.
- +
-If you use other operating system, install php-cli and run [[https://github.com/EasyRPG/Player/blob/master/resources/emscripten/indexgen.php|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 ''games'' directory. 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 ''games'' directory.
  
 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. 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.
development/player/web.txt · Last modified: 2021/11/11 09:38 by ghabry

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki