Not a coder, but is it viable to add a section that packs objects client and objects server? Maybe share the code the PR builder uses for packing them so I can add it to this.
echo off
if exist client.zip (
ECHO Removing client.zip...
del client.zip
)
if exist server.zip (
ECHO Removing server.zip...
del server.zip
)
if exist common_client.zip (
ECHO Removing common_client.zip...
del common_client.zip
)
if exist objects_server.zip (
ECHO Removing objects_server.zip...
del objects_server.zip
)
if exist objects_client.zip (
ECHO Removing objects_client.zip...
del objects_client.zip
)
echo Creating client.zip...
z_WinRAR.exe a -r -afzip client.zip *groundhemi*.dds *lowdetailtexture*.dds *terraindata*.raw *undergrowth*.cfg *undergrowth*.dat *undergrowth*.raw *undergrowthatlas*.tai *undergrowthatlas*.dds tx*.dds -xeditor\ *lightmapatlas*.dds *lightmapatlas*.tai *overgrowthatlas*.tai *overgrowthatlas*.dds *.mesh *envmap*.dds ingamemap.dds
echo Creating server.zip...
z_WinRAR.exe a -r -afzip server.zip *ai*.ai *infantry*.clb *infantry*.qtr *vehicle*.clb *vehicle*.qtr *aerialheighmap*.ahm *environmentmapinfo*.emi *gameplayobjects*.con *caches*.json *strategies*.ai *strategicareas*.ai *overgrowth*.con *overgrowth*.raw *overgrowthcollision*.con *overgrowthshadowmap*.raw *ambientobjects*.con *clientarchives*.con *compiledroads*.con *fields*.con *heightdata*.con *heightmapprimary*.mat *heightmapprimary*.raw *heightmapsecondary_*.raw *init*.con *lockdistances*.con *serverarchives*.con *simpleshadowmap*.raw *sky*.con *sound*.con *staticobjects*.con *terrain*.con *tmp*.con *triggerable*.con *water*.con -xeditor\ -xobjects\
set common=common
if not "%~1"=="" set common=%~1
if exist "%common%" (
ECHO Creating common_client.zip...
cd common
..\z_WinRAR.exe a -r -afzip common_client.zip
move common_client.zip ..
cd ..
) else (
ECHO No content for common_client.zip has been found
)
set objects=objects
if not "%~1"=="" set objects=%~1
if exist "%objects%" (
ECHO Creating objects_client.zip and objects_server.zip...
cd objects
..\z_WinRAR.exe a -r -afzip objects_server.zip *.con *.tweak *.collisionmesh
..\z_WinRAR.exe a -r -afzip objects_client.zip *.staticmesh *.dds
move objects_server.zip ..
move objects_client.zip ..
cd ..
) else (
ECHO No content for objects_client.zip and objects_server.zip has been found
)
echo .
echo .
echo .
echo Finished packing map files into .zips!
echo .
echo .
pause
A script which will pack all your map files into appriopriate .zip files for sharing and in-game testing.
It includes custom content. Your map files (especially custom content) need to be set up just like in official Project Reality maps for the script to work as intended. Check the maps for refs if needed.
To run the script, extract the .rar inside your map folder:
Code (Text):
mods\<your_mod>\levels\<your_level>
You might need to edit/create ClientArchives.con and ServerArchives.con so the game can load the map correctly. If its indeed needed, place both .con files in appriopriate zips (clientarchives in client.zip and serverarchives in server.zip).
For more informations, check out this tutorial.