Win32 version installation
==========================
Unzip all the files into your kingpin folder and they will be placed in the correct locations (kingpin/gunrace). 


Configuring a Server

To configure a server just update the server.cfg and comp.ini files to your liking.

GunRace specific options in the server.cfg:-

set weaponfrags 4 (can be between 1 - 5) 4 is a good option as it is a total of 33 frags to win (8 x 4 gun weapons and 1 x 1 machete)

set weaponorder 1 (has five modes, 1 default, 2 reverse, 3 random, 4 machineguns only and 5 shotguns only).

set KPDED2 options (if running a public server):-

set max_download_rate xxx  (replace 'xxx' with the speed limit you want such as 256)
set sv_enforcetime_kick 4
set sv_maxpps 120
set sv_max_packetdup 1
set sv_download_precache 1  (if not using an SSD hard drive)
set net_rcvbuf 64 (this increeases the Windows network buffers)
set net_sndbuf 64 (this increases the Windows network buffers)
set win_priority auto  (if other programs running the Kingpin server may be given higher CPU priority)


set clientdir gunrace (so if clients download the Gunrace client files they will be placed in kingpin/gunrace)

set dmflags 8192

GunRace specific options in the gunrace.ini:-

enable_bots (Allow bots to load on server. Make sure you have a "nav" folder).

--------------------------------
To run a lan server for you and your friends either use the default settings in the server.cfg or change them to your liking then start Kingpin:-

./kingpin.exe +set game gunrace +set deathmatch 1 +exec server.cfg

If you have a server box set up to run your servers at your lan session then you can make it a dedicated server by adding the following +set dedicated 1

./kingpin.exe +set game gunrace +set deathmatch 1 +exec server.cfg +set dedicated 1

---------------------------------
However if you want to run a Public server you need to use kpded2 enhanced server file to run the server. 

Please read the kpded2.txt file for a comprehsive explanation of all the improvements and settings.

The following KPDED2 commands are included in the GunRace mod server.cfg but are commented out. Just remove the // to activate them.

set max_download_rate xxx  (replace 'xxx' with the speed limit you want such as 256)
set sv_enforcetime_kick 4
set sv_maxpps 120
set sv_max_packetdup 1
set sv_download_precache 1  (if not using an SSD hard drive)
set net_rcvbuf 64 (this increeases the Windows network buffers)
set net_sndbuf 64 (this increases the Windows network buffers)
set win_priority auto  (if other programs running the Kingpin server may be given higher CPU priority)

Check the Quick start settings in the kpded2.txt file for an explanation of these settings.

If you use kpded2 then players will be able to download the client files from the server (pak1.pak file).

If you use the kpded2.exe to run your server then it replaces the kingpin.exe in your server shortcut:-
./kpded2 +set game gunrace +exec server.cfg

You don't need to add '+set dedicated 1' because a server running kpded2 starts in dedicated mode by default.

You could also set up a shell script file to start the server.

**Please not that the Linux kpded2 file is included in the Gunrace zipfile so you dont need to download it from elsewhere***





