Automatically zips maps and moves them to a public web directory whenever a new map is uploaded to the game server's map directory. Supports multiple game server sessions.
- License: MIT
- Linux ≥ 2.6.13
- Python ≥ 2.6
If your python version is < 2.7 you will have to install the python argparse module as well.
$ git clone https://github.com/spezifanta/mapzipd.git
$ cd mapzipd
$ git submodule init
$ git submodule update
$ sudo ./install.sh
To start, restart and stop mapzipd use
$ sudo service mapzipd {start,stop,restart}
Open /etc/mapzipd.conf
for settings. After changing settings a restart of mapzipd is required:
sudo service mapzipd restart
Set webdir
equal to your sv_downloadurl
value in your server.cfg
.
Add each game server in a sperate line by using it's full path to it's root directory (one above the maps
directory).
Example:
If your maps are strored at /home/myaccount/orangebox/tf/maps
you will only add /home/myaccount/orangebox/tf
Error: File contains parsing errors: /etc/mapzipd.conf
[line 25]: '/home/lame/gameserver/tf2-match \n'
Python < 2.7 does not know options without values yet. Therefore you will have to add = None
after each game server line in your mapzipd.conf
. Restart mapzipd
afterwards.
Example: [gameserver] /home/myaccount/orangebox/tf = None
- Watch when a map gets delete from a game server and remove it form the
webdir
if no other game server requires it any more.