Jump to content

Dedicated Monkey Mod Server

From Kingpin Wiki
Revision as of 00:18, 8 February 2025 by FREDZ (talk | contribs)

Getting the files and creating a mmod directory

To run a public server you need to use the KPDED2 Enhanced Kingpin server files:

KPDED2

Firstly download the Monkey Mod 2.0 Windows server files from here:

Monkey Mod 2.0

Unzip the files into you Kingpin folder and they will be placed In the correct locations (mainly kingpin/mmod)

So you should now have the following files in your kingpin/mmod folder:

  • Comp.ini
  • gamex86.dll
  • ips.txt
  • maps.txt
  • maps_bm.txt
  • names.txt
  • rcons.txt
  • server.cfg

There will also be a pics folder and inside that another mmod folder. Inside that will be three files:

  • mascot.tga
  • team1.tga
  • team2.tga

There is also one file added to your Kingpin folder:

  • geoip.dll

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


// Disable displaying the country that each player connects from


Monkey Mod can display what country players connect from, using the MaxMind

GeoIP library and database.

On Windows, the geoip.dll library and geoip.dat database should be in your

Kingpin directory. The latest GeoLite Country database (geoip.dat) can be

downloaded from here:

http://dev.maxmind.com/geoip/legacy/geolite/


If you wish to disable country lookups, you can uncomment the disable_geoip option

//disable_geoip


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


//disable_admin_voting


If you don't want to allow players to have Admin privileges then disable it by uncommenting it.


To allow the admin to keep Admin status after map changes uncomment the following


//keep_admin_status


If you intend using the rconx option, which is another form of server managment, then uncomment the following


//rconx_file rcons.txt

If you use it you will need to add one or more passwords to the rcons.txt file which is one of the files in your mmod folder. This way different users you trust can be given different passwords.


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


//enable_password


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

// If any are omitted (apart from the password) then those settings will stay as they are.


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 is common for deathmatch and 30 for Bagman)

default_dm_realmode 0 (set to 1 if you want to run a realmode server)

//default_anti_spawncamp 0 (if enabled you are invincible for 3 seconds on each spawn)

//default_bonus 0 (bonuses for killing players with more frags in deathmatch)

//default_password blah (If you want your server passworded by default, for private games etc, uncomment this and change blah to your password)


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)


// 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 deathmatch, Bagman or Team DM 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:-


default_dmflags 1812 (for example)


If you are using the Admin management option but don't want the Admin to be able to change the setteamplay or setdm_realmode options then uncomment the following


//fixed_gametype


Uncommenting fixed_gametype also limits the "changemap" command to what's in the maplist (if there is one).


To specify a list of maps to rotate on your server uncomment the following


//maps_file maps.txt


There should be a maps.txt file in your mmod folder. Open it using notepad and add your list of maps to it.

The format should be


kpdm1

kpdm2

kpdm3

etc


Just make sure you use the correct map names


Same goes for Bagman map list


//bm_maps_file maps_bm.txt


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


//default_random_map


If you want to allow map voting on your server uncomment the following


//allow_map_voting


 Wait for players to join when the server is empty. If map voting is enabled then

 the server will wait at the map voting menu

//wait_for_players


To prevent anonymous text binds (such as four line text binds) just uncomment the following line


//disable_anon_text

If you want players who die able to see how much health their killer had uncomment the following line


//enable_killerhealth


To disable the cursing commands uncomment the following


//disable_curse


You can also curse without having to face a player by uncommenting the following line


//unlimited_curse


To ban players via their IP or to ban a name uncomment the following


//ban_name_filename names.txt

//ban_ip_filename ips.txt

Both the names.txt and the ips.txt files will be in your mmod 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 in the MotD section.

Once done simply save the comp.ini file.