development:player:web
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
development:player:web [2016/07/31 04:15] – Ogg Vorbis conversion is now optional fdelapena | development:player:web [2017/08/30 17:43] – Replace indexgen with gencache fdelapena | ||
---|---|---|---|
Line 28: | Line 28: | ||
Note: if you want to try it locally you need a HTTP server, using '' | Note: if you want to try it locally you need a HTTP server, using '' | ||
- | ==== Preprocessing steps for games ==== | ||
- | |||
- | This step is encouraged yet optional, if you just want to test without audio file size optimizations, | ||
- | |||
- | 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 '' | ||
- | |||
- | === Ogg Vorbis conversion === | ||
- | |||
- | == GNU/Linux command line option == | ||
- | |||
- | * Install '' | ||
- | |||
- | oggenc -q0 *.wav | ||
- | |||
- | Beware of existing MS ADPCM WAV files, they are not supported by oggenc. If you get conversion errors, use '' | ||
- | |||
- | == Windows drag and drop tools option == | ||
- | |||
- | * First, download [[http:// | ||
- | |||
- | * Then open the oggdropXPd app (it is a square window), select all WAV files from the folder, then drag and drop them over the square oggdropXPd window. They will be converted to Ogg Vorbis. If you want to make smaller Ogg Vorbis files, do secondary mouse button click over the square window to select options and adjust the compression quality option to 0 (~64 kbps) -1 (~48 kbps) or -2 (~32 kbps). | ||
==== 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 ' | + | 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 |
- | + | ||
- | If you use Windows you can get the tool in .exe format here: {{: | + | |
- | Unpack | + | |
- | 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 '' | + | 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/ |
+ | Place the gencache executable in a game working folder (the folder containing RPG_RT.* files) | ||
Your games are expected in subdirectories of the '' | Your games are expected in subdirectories of the '' | ||
Now open the '' | Now open the '' |
development/player/web.txt · Last modified: 2021/11/11 09:38 by ghabry