Thief|Meph asked me to put together a guide for setting up a Dedicated Windows Monkey Mod server. So with some help from Meph here it is.
This should be everything you need to know (and more) to set up a server. It may look long and complicated but it is step by step instructions ![]()
1). Getting the files and creating a comp directory
Firstly download the Monkey Mod 1.52 Windows server files from here:-
http://downloads.kingpinf...ver.com/monkeymod152b.zip
Next, create a "comp" directory inside your Kingpin folder and unzip the Monkey Mod Server files into it (so extract all files to kingpin/comp). If you already have a comp folder jst extract the files into it.
Then open your kingpin/main folder and copy the "server.cfg", "maps.lst" and "teammaps.lst" files from the "main" directory into the "comp" directory.
So you should now have the following files in your kingpin/comp folder:-
Comp.ini
gameex86.dll
history.txt
install.txt
ips.txt
maps.txt
names.txt
rcons.txt
server.cfg
maps.lst
teammaps.lst
2). Setting the mod options and server defaults in the "comp.ini" file.
Using Notepad open your comp.ini file
To uncomment any options just remove the forward slashes (i.e. //)
Starting at the top
Uncomment '//kick dirty' to require
players to use the monkey mod client files to play on your server (i.e. mmclient.exe)
Most servers uncomment this option and make ppl use the mmlcient.exe.
If you intend using the Admin option to manage your server uncomment the following and add a password (replace blah with your password)
//admin_code blah
If you want players to be able to have Admin privileges by just typing in 'elect' into the console then leave the
following line as is
If you don't want to allow players to have Admin priviliges then disable it by uncommenting it.
To allow the admin to keep Admin status after map changes uncomment the following
If you intend using the rconx option, which is another form of server managment, then uncomment the following
If you use it you will need to add a password to the rcons.txt file which is one of the files in you comp folder.
If you have enabled the Admin option and want the Admin to be able to set a password or remove a password on the server
uncomment the following
default_map kpdm5 (set the default or start map for the server)
default_cashlimit 0 (Bagman option, 3000 is a commonly used limit)
default_fraglimit 0 (usually used for deathmatch servers, 30-40 is a common fraglimit, allow more for Team DM)
default_timelimit 20 (if used, 15 - 20 is common for DM and 30 for BM)
default_dm_realmode 0 (set to 1 if you want to run a realmode server)
// These are the default settings that the server will reset to if it is left idle
// with no players, or if the resetserver command is used by the admin
// Teamplay settings are as follows:// 0 - Free for all
// 1 - Bagman
// 4 - Team Deathmatch
default_teamplay 0
Set default_teamplay to 0, 1, or 4 for DM, BM or TeamDM as shown above
Next set the dmflags
You can see what the DMFLAGS values affect by looking at the DMFLAGS summary section in the comp.ini
Popular settings are
788 for DM
1812 for TeamDM
1812 for BM
so put a value in the default_dmflags settings like so:-
If you want your server passworded by default (for clan games etc), uncomment the following and add it here
If you use a password players will get a 'connection refused' message when they try to join and will need to type in 'password xxxxxxx' the join the server (xxxxx being the relevant password)
If your using the Admin management option but don't want the Admin to be able to change the
setteamplay/setdm_realmode/setdmflags options then uncomment the following
To specify a list of maps to rotate on your server uncomment the following
There should be a maps.txt file in your comp folder. Open it using notepad and add your list of maps to it.
The format should be
1 kpdm1
1 kpdm2
1 kpdm3
etc
Just make sure you use the correct map names
If you want the server to choose a randon map from the maps.txt to load when the server is reset (as opposed to always
starting with the default map listed earlier) uncomment the following
If you want to allow map voting on your server uncomment the following
If you allow map voting but want the scoreboard to display first before the map voting screen uncomment the following
To prevent anonymous text binds (such as four line text binds) just uncomment the following line
If you want players who die able to see how much health their killer had uncomment the following line
You can also curse witout having to face a player by uncommenting the following line
I believe the following option doesn't work so just leave the following line as is
There is a setting you can add to the server.cfg file to enable anti-spawn camping which will be discussed later.
To ban players via their IP or to ban a name uncomment the following
//ban_ip_filename ips.txt
Both the names.txt and the ips.txt files will be in your comp folder.
Both files have brief instructions on how to add an IP and a name.
The last thing for you to do in the comp.ini is to add your Message Of The Day info. brief instructions are included i
nthe MotD section.
Once done simply save the comp.ini file.
3). Updating the Server.cfg file
In your comp folder you should now have a server.cfg file
Open it with Notepad
first thing to do is to set your server name
so add your server name to this following line
for your server to show up on the net you must have the following line set to 1
The current master servers that need to be included in your server.cfg file are
setmaster tracker.frisno.com
you can comment the default one out that is included in the server.cfg like so as it no longer exists
Set the DMFLAGS to the same value you used in the comp.in such as
or
set dmflags 1812 for example
Now make sure deathmatch is set to 1
and then set the maximum number of players you want in your server like so
If your server is being hosted by an ISP or game server hosting co. then 12 - 16 is a common maximum amount of players.
If you are running it from a cable connection or ADSL2 then 6 - 8 players is ok.
At this point you can add the following 2 lines to your server.cfg if you wih to do so
set anti_spawncamp 1
The first line prevents players using the flame hack and the second line helps prevent spawn camping by making you invulnerable for a couple of seconds when you spawn.
I would suggest only enabling the following option for location damage if your server is being hosted and not if its a
home server
(0 is disabled, 1 is enabled)
If you want to run a realmode server (where only pistol, shotgun, tommygun are present, and no armor, with damage x4 then
uncomment the following line
Just a reminder at this point that to uncomment any options just remove the forward slashes (i.e. //)
Now you need to set the maxrate or the maximum amount of bandwidth (bytes per second) that any one client can occupy
5000-7000 is a recommended setting for a home server and 15000-25000 for a hosted server.
Leave the following line commented out
In the next section you change the settings for either DM, Bagman or TeamDM
For normal deathmatch you can set a timelimit , fraglimit and choose the default or starting map.
If you set a fraglimit and/or timelimit in the comp.ini this should be the same amount.
The default map should be the same one you listed in the comp.ini as well.
Make sure the default map you select is included in your maps.txt
So for example
set timelimit 15
map kpdm1
For Bagman you can set the following options
//set teamplay 1
//set fraglimit 0
//set cashlimit 3000
//set timelimit 30
//map team_pv
So if your running a BM server make sure these values are the same as the ones you entered in the comp.ini such as cashlimit, timelimit and default map
So for example
//set fraglimit 0
set cashlimit 3000
set timelimit 30
map team_pv
If you uncomment set fraglimit 0 and leave it as 0 value it will be ignored.
For a Team Deathmatch server just set up the following options
//set teamplay 4
//set timelimit 0
//set fraglimit 10
//map kpdm5
So for example
set timelimit 0
set fraglimit 60
map kpdm5
which sets up a TeamDM server with a fraglimit of 60 and kpdm5 is the start map. No timelimit.
Once you have finished setting up the options in server.cfg just save and close it.
4). Creating a desktop shortcut.
If your running the server on your own machine you need to set up a desktop shortcut.
On your desktop simply right click the mouse and select 'New'
This will open a sub menu and you should select 'shortcut'.
This will open the 'Create shortcut' menu. Simply browse for your Kingpin folder and then click on the kingpin.exe file.
This will then take you back to the Create shortcut menu.
In the location window it will show you the location of your kingpin folder which you just browse to find.
It should look something like this -
"C:\Program Files\Kingpin\kingpin.exe"
Now you need to copy and paste the following at the end of the line above
+set dedicated 1 +set game comp +exec server.cfg
So the entire line would look somthing like this
"C:\Program Files\Kingpin\kingpin.exe" +set dedicated 1 +set game comp +exec server.cfg
Then press 'Next' and on the next screen type in a name for the shortcut such as Kingpin server or sometihng like that then press 'Finish'
You now have a shortcut for your Kingpin monkey mod server ![]()
Click on it and it will open a small window and your server will start running and should be visible on the internet (check with Gamespy Lite etc).
5). Server Commands
Example of some commands you can use in the server window are
status
- shows players that are connected and their IPs, their connection number, their score and ping etcsay text
- a msg will be displayed from console with what ever text you type such as 'say hi' would display 'console: hi'kick #
- will kick a player from the server. # is their connection numbermap mapname
- changes to new map as specified by mapname(such as 'map kpdm1')quit
- kills serverThere are many other Admin type commands you can use. Some examples are fraglimit xx, timelimit xx, maxclients xx, dmflags xxx, teamplay xx, cashlimit xxx, password xxxxx.
6). Admin Commands
If you decided to configure the comp.ini (
admin_code blah)so you can use the Admin option to manage the server while you are ingame you will need to login to use it.Pull down the console and type in 'admin password' (where password is the password you placed in the comp.ini)
You will now become admin and a list of available commands will be shown.
If you miss them you can simply type in '
They are fairly straight forward with such commands as
maplist - shows a list of available maps on the server
settimelimit xx - change timelimit to xx
setfraglimit xx - set fraglimit to xx
clientlist - shows players that are connected and their IPs, their connection number, their score and ping etc
changemap mapname - changes to new map
To change the requirement for players to use the monkey mod client you would use
cds on/off (on means mm client required and off not required)If for any reason you need to stop a player typing on the screen you can mute them by using
mute # (where # is their connection number from the clientlist command).
7). Using RCONX
You can also use rconx commands in game or give them to other ppl to use so they can also help manage your server.
If you are going to use this option you will have already placed a password in the
To login use
this is some of the rconx commands you can use
rconx status
tells map name and who is on, including IP addressrconx kick # will kick a player from the server. # is their connection number which you got using the status command
rconx map mapname - changes to new map as specified by mapname(such as map kpdm2)
rconx sv_gravity XXX - change gravity, 800 is normal, lower is moon gravity...
rconx serverinfo - shows server variables
rconx fraglimit XX - change fraglimit
rconx timelimit XX - change timelimit
rconx maxclients XX - max # of player (16 is our norm) -- wont change til next map
rconx say BLAH BLAH - talk from console - a msg will be displayed from console with what ever text you type such as say hi would display console: hi
Thats about it.
You should now have a Monkey Mod server up and running with all the options in place that you want for your server
![]()




