Instructions for setting up servers like the batcaves

Provided by: Optimal Clan

Info on the batcaves is here

You can get all of the configs that I currently use for the batcaves here. You will see batcave1.cfg, batcave2.cfg, etc. They all use other cfg files, like batcave_universal, tourney_vars.cfg, 1v1.cfg, 2v2tdm.cfg, etc.

You will need the tourney mod on the server only IF you are using 2.4.2. If you are using a version higher than 2.4.2 (like SVN) then the tourney mod features are already built-in.

Since 2.4, maps now use mapinfo files to setup details about each map (instead of mapcfg files). You can read more about mapinfo files here.

The server will automatically generate mapinfo files for maps that do not have them (like maps created before 2.4), but it's not perfect at generating them. On a linux server, those files will be under $home/.nexuiz/data/data/maps/.
You can add some mapinfo files that I have already generated to save you some time.


Setting up multiple servers

I use the screen app to run each of my nexuiz servers. To use screen, just start a new screen by typing
screen -S batcave1
Then I run my servers out of the same directory under /usr/local/games/nexuiz/. Some people opt to create their nexuiz directory under /home/username/nexuiz/, which I might do eventually since it does make sense. I placed it under /usr/local/ because of someone's suggestion on the forum.

(if you have SVN, you don't need to do this next step because you don't need this file).
Copy the server_linux.sh script from nexuiz/Docs/server/ and placing that into nexuiz/.

I go to my nexuiz directory and run
./server_linux.sh +exec batcave1.cfg
(FOR SVN, you use ./nexuiz-dedicated +exec batcave1.cfg

The server should be running and you can then leave the screen by pressing CTRL-A and then D.
To pull the screen back up, enter:
screen -R server1.
If you want to see all of your screens, type
screen -R
Then you create more screens to run other servers by using the screen -S option again.
 

How to add more maps

IMO, the hardest part about setting up a nexuiz server is working with map files. They are really a pain. One complexity with them is finding the proper map name, the name that you use to launch the map. When you have the pk3 added to your server under /nexuiz/data/, then you can find the proper mapfile name by typing
unzip -l mapname.pk3 *.bsp
That will show the bsp filename within the pk3 file. This is the name that you use for your maplist and for changing to a map.

Info specific to SVN versions

I will add more info here about running SVN servers (like Akusho, Phoenix CTF) soon
NOTE: Phoenix CTF config apples only to SVN settings. That includes the stufto command, which won't work unless you run the stuffto patch when compiling SVN. So ignore these aliases on phoenix.cfg.