Skip to content

spezifanta/mapzipd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map Zip Daemon

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

Dependencies

  • 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.

Install

$ 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}

Config

Open /etc/mapzipd.conf for settings. After changing settings a restart of mapzipd is required: sudo service mapzipd restart

Web direcory

Set webdir equal to your sv_downloadurl value in your server.cfg.

Game server

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

Troubleshooting

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

TODO

  • 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.

About

A auto map zip daemon for (source) game server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published