First generate a new product by running:
patch_gen createNewProduct patch_game/game.xml |
This creates default directory layout and xml files.
Copy updated .bnp files to patch_game/bnp and run
patch_gen updateProduct patch_game/game.xml |
<xml> <_Categories> <_Category> <_Name type="STRING" value="main"/> <_IsOptional type="SINT32" value="0"/> <_IsIncremental type="SINT32" value="0"/> <_Files type="STRING" value="main.bnp"/> <_Files type="STRING" value="sound.bnp"/> <_Files type="STRING" value="textures.bnp"/> </_Category> <_Category> <_Name type="STRING" value="unpacked"/> <_IsOptional type="SINT32" value="0"/> <_UnpackTo type="STRING" value="./"/> <_IsIncremental type="SINT32" value="1"/> <_Files type="STRING" value="exedll.bnp"/> </_Category> <_Category> <_Name type="STRING" value="optional"/> </_Category> </_Categories> <_IndexFileName type="STRING" value="game.hist"/> <_PatchDirectory type="STRING" value="patch_game/patch/"/> <_BnpDirectory type="STRING" value="patch_game/bnp/"/> <_RefDirectory type="STRING" value="patch_game/ref/"/> <_NextVersionFile type="STRING" value="patch_game/ryzom_open.version"/> </xml> |
<_Files> node in each category will tell which .bnp files are being tracked.
Directory entries or IndexFileName can also be absolute like bnp's in 'r:/game/ryzom/data', patch will be put to 'w:/webroot/patch_game' and history is kept in 'c:/game.hist'
lzma.exe can be found from http://www.7-zip.org/sdk.html
xdelta.exe from http://evanjones.ca/software/xdelta-win32.html
On Windows 7 environments you may need to enable compatibility. To do this:
|
Your client must be build in FINAL_VER
Edit the code to allow you to specift the patch server
C:\ryzom\code\ryzom\client\src\client_cfg.cpp
and add
READ_STRING_FV(RingReleaseNotePath) READ_STRING_FV(ReleaseNotePath)
Add values such as below to your client_default.cfg
PatchServer = "http://patch.tempestintheaether.org/"; RingReleaseNotePath = "http://patch.tempestintheaether.org/index.php";
PatchServer is the patch_game directory
RingReleaseNotePath is the url to your release notes file, the client does pass a $ver value so you can use that ot have different notes per version ie in a php file
example file:
<html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body> <h1>Saturday, Febuary 25 2012</h1> <h2>RELEASE</h2> <p>After much work and a few years we are proud to present the first official release of Tempest in the Aether.</p> <br> </body></html> |
Add new virtual host to httpd-vhosts.conf
Listen 43435 <VirtualHost *:43435> <Directory "C:\ryzom_core_build\client_patch\patch"> AllowOverride All Order allow,deny Allow from all </Directory> DocumentRoot "C:\ryzom_core_build\client_patch\patch" ServerName localhost </VirtualHost> |
1 |
make sure all patch files (.idx & _debug.xml) start with ryzom_5 digit patch #
ryzom_00001.idx ryzom_00001_debug.xml |
Add IP/URL of web server to Client_default.cfg in the client directory.
PatchServer = "http://127.0.0.1:43435/patch"; PatchWanted = 1; |