For A Dedicated Server here is a little blurb to start one up.
1) First you need to create a COD2 Config File which I have one listed below, copy and paste all of this into a Notepad or a Word document, Only edit the things inside the " " and make it to whatever you want it to be.
CONFIG:
Quote:
//**********************************************************
// Call of Duty 2 - Server Config
// Server Configuration File Call of Duty 2 Multiplayer
// Updated by: Foxhound @ MODSonline.com
//**********************************************************
//Public Information
//**********************************************************
// Colors for text. Do not clear the comment in front of the color codes.
// Useful for your server name, motd msg's - Information and ref use only
//
// ^1 = Red*
// ^2 = Green*
// ^3 = Yellow*
// ^4 = Blue*
// ^5 = Cyan*
// ^6 = pink/Magenta*
// ^7 = White*
// ^0 = Black*
set sv_hostname "MODSonline.com CoD2 Server 2"
set scr_motd "^2Welcome to the ^1MODSOnline.com CoD2 Server ^2Visit us at: ^1
http://www.modsoncline.com/"
sets_Admin "Sm_Art_Y"
sets_Email "Sm_Art_Y@blah.com"
sets_Irc ""
sets_Website "www.modsonline.com"
sets_Location "CA, USA"
// set net_ip "64.66.44.50" Place this in your command line to make it work
// set net_port "28964" Place this in your command line to make it work
// The following is a list of server 'There is a bit of a debate whether these are needed or not. Either way it won't hurt, so put them in there
set sv_master1 "cod2master.activision.com"
set sv_master2 "master.gamespy.com:28960"
set sv_master3 "master0.gamespy.com"
set sv_master4 "clanservers.net"
set sv_master5 "cod2authorize.activision.com"
set sv_master6 "codmaster.activision.com"
set sv_master7 "coduomaster.activision.com"
set sv_master8 "master0.gamespy.com"
set sv_master9 "master1.gamespy.com"
set sv_master10 "master.gamespy.com:28960"
set sv_master11 "coduoauthorize.activision.com"
set sv_master12 "master0.gamespy.com"
set sv_master13 "clanservers.net"
set sv_master14 "codmaster.infinityward.com"
set sv_master15 "codauthorize.activision.com"
set sv_gamespy "1"
// Server password
set g_password ""
// Rconpassword
set rcon_password "password"
// Maximum Clients
set sv_maxclients "24"
set sv_privateclients "0"
set g_gametype "tdm"
// Max Ping
set sv_maxping "200"
// Team Icons
set scr_drawfriend "1"
// Forced Respawn
set scr_forcerespawn "1"
// Rate
set sv_maxRate "25000"
//Map/Team/Player Settings
set g_deadChat "1"
set scr_drawfriend "1"
set scr_forcerespawn "1"
set scr_friendlyfire "2"
set scr_freelook "1"
set scr_spectateenemy "0"
set g_forceteamspectate "1"
set scr_teambalance "0"
set sv_invulnerabletime "5"
set g_teamswitchdelay "25"
// Killcam
set scr_roundcam "0"
set scr_killcam "0"
// Temporary Ban duration, in hours? minutes?
set sv_kickBanTime "24"
// Drop inactive players
set sv_timeout "120"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"
// Anti lag settings
set g_antilag "1"
// Anti Cheat Settings
set sv_disableClientConsole "1"
set cl_autocmd "0"
set sv_floodProtect "1"
set sv_cheats "0"
set sv_pure "1"
set g_banIPs ""
set g_no_script_spam "1"
//RD Msg Center Text Settings
seta sv_linerd1 ""^2Welcome to the ^1MODSonline.com CoD2 Server ^2Visit us at: ^1
www.modsonline.com/"
seta sv_linerd2 "^2Sponsored by: MODSonline.com"
seta sv_linerd3 "^1 Join our website at
www.modsonline.com"
seta sv_rddelay "45" // Time between msg's, must be >5 secs
// Allow Voting
// It is recommended if you have friendly fire on
// that you also enable voting so that players can kick team-killers.
set scr_allow_vote "1"
set g_allowvote "0"
set ui_allowvote "0"
set g_oldVoting "0"
set logfile "2"
set g_log "games_mp.log"
set g_logsync "0"
set sv_log_damage "0"
// Ingame Voice Chat
set sv_voice "0"
set sv_voiceQuality "1"
set voice_deadChat "0"
set voice_global "0"
set voice_localEcho "0"
set winvoice_mic_mute "1"
// Weapon Ammo Pools
set g_weaponAmmoPools "0"
//Snipers
set scr_allow_enfieldsniper "1"
set scr_allow_kar98ksniper "1"
set scr_allow_nagantsniper "1"
set scr_allow_springfield "1"
set scr_allow_svt40 "1"
// Rifles
set scr_allow_enfield "1"
set scr_allow_kar98k "1"
set scr_allow_m1carbine "1"
set scr_allow_m1garand "1"
set scr_allow_nagant "1"
set scr_allow_g43 "1"
// MGs
set scr_allow_bar "1"
set scr_allow_bren "1"
set scr_allow_mp44 "1"
set scr_allow_ppsh "1"
//SMGs
set scr_allow_sten "1"
set scr_allow_mp40 "1"
set scr_allow_thompson "1"
set scr_allow_pps42 "1"
set scr_allow_greasegun "1"
// Shotgun
set scr_allow_shotgun "1"
// Grenades
set scr_allow_smokegrenades "1"
set scr_allow_fraggrenades "1"
// Gametype Settings
set scr_dm_scorelimit "50"
set scr_dm_timelimit "30"
set scr_tdm_scorelimit "300"
set scr_tdm_timelimit "30"
set scr_ctf_scorelimit "5"
set scr_ctf_timelimit "30"
set scr_hq_scorelimit "600"
set scr_hq_timelimit "30"
set scr_sd_bombtimer "60"
set scr_sd_graceperiod "15"
set scr_sd_roundlength "4"
set scr_sd_roundlimit "0"
set scr_sd_scorelimit "10"
set scr_sd_timelimit "0"
// Autodownload
set sv_allowDownload "1"
set sv_allowedClan1 ""
set sv_allowedClan2 ""
// File-Check
set sv_iwdNames "iw_14 iw_13 iw_12 iw_11 iw_10 iw_09 iw_08 iw_07 iw_06 iw_05 iw_04 iw_03 iw_02 iw_01 iw_00"
set sv_iwds "-1449716526 780394069 -1333623355 -1980843666 1334775335 -621896007 1101180720 1046874969 1053665859 1842349204 -1652414412 1659111092 -1085686032 -2025394354 178615151 "
set sv_referencedIwdNames "main/iw_13 main/iw_08 main/iw_07 main/iw_06 main/iw_03"
set sv_referencedIwds "780394069 1101180720 1046874969 1053665859 1659111092 "
//Map_Rotation
set sv_mapRotationCurrent ""
set sv_mapRotation "gametype tdm map mp_breakout gametype tdm map mp_brecourt gametype tdm map mp_burgundy gametype tdm map mp_carentan gametype tdm map mp_dawnville gametype tdm map mp_decoy gametype tdm map mp_downtown gametype tdm map mp_farmhouse gametype tdm map mp_leningrad gametype tdm map mp_matmata gametype tdm map mp_railyard gametype tdm map mp_toujane gametype tdm map mp_trainstation"
2) After you did all of that, name the Notepad or word document "dedicated.cfg" This is so then it is recongized as a COD2 server.
3) Now, Place this config inside your COD2 main folder (My Computer/C: Drive/Program Files/Activision/Call of Duty 2/main)
4) Once it is located inside your main COD2 folder... Create a shortcut on your desktop of a COD2_MP game icon.
5) Once the shortcut is on your desktop, right click it, and click on properties. You now need to find the box that says "Target Line". Erase all of that and put it as "C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +set net_ip 00.00.00.00 +set net_port 28960 +set fs_game main +set dedicated 2 +exec oclan2.cfg +map_rotate with the part that says +set net_ip 00.00.00.00 you must either delete it or put it in as your IP address so then the server can be played off your computer.
6) Now your almost done with the creation of your very own COD2 server. Depending on your connection speed the max amount of players will very (maxclients). If you have a good upload 200+ then you can have a stable server with around 10-12 people. Anything less then 200+ upload should be a max of 8.
7) With that shortcut you made on your desktop... Double click it and you should see that your server is now in operation. Go into COD2 with a different COD2 game icon (Start Menu) and you should see that your server is on the Internet and Local Listings.
***IMPORTANT***
Please make sure your firewall settings are open to the port 28960. Do this by (Control Panel/Windows Firewall/Exeptions) This may differ to what firewall you have running. If you dont have windows firewall you need to get into your firewall settings and make a exeption. When your there u need to make a PORT. To do this click "Add Port" and name it "Port" then you simply type in the port number and Click it as UDP.
Again bare in mind that this is for a
Dedicated server only. If you plan on running a server and playing at the same time (Not Recommended) try the method below.
For A Listen Server
This runs on one of the computers of you or your friends. No one other than you and your friends can connect unless they know your IP #. This Listen server will not show up on any of the lists since it is a private server. There are several steps to get this up and running and they are fairly simple.
First, right click on your multiplayer icon on your desktop and send it to the desktop thereby creating a third icon, or a second for multiplay. You may want to rename this to something like "MODSonline.com Listen Server". Then right click the new icon and and click Properties and on the target line, put in the following in the target line:
"C:\Program Files\Activision\Call of Duty 2\CoD2MP_s.exe" +exec modsonlinecod2config.cfg +map_rotate
Next create a config file in a word processor (this one was created in wordpad) and name it "modsonlinecod2config.cfg" and save it. You can just copy the one below and save it on your word processor. Then copy the new config file into the main folder of your game (Program Files\Activision\Call of Duty 2\main). You may name it whatever you want, but if you use a different name, make sure you use that same name in the target line (+exec modsonlinecod2config.cfg). When you double click on your new icon, the game will immediately start in the first map.
Have those who want to play with you go into their multiplayer game via the icon that came with the game, not one like you created. Have them join game and as soon as that opens, use the ` (tilde key) just to the left of the 1 key. A drop down line will appear and type in "Connect xxx.xxx.xxx.xxx" and hit enter. The xxx.xxx.xxx.xxx represents your IP #. They should connect in a matter of seconds to your computer and you can begin play.
A note on the config below. The time for the game should be changed to suit your needs. I have it set for "2" for testing purposes only. This is two minutes. You can change this in your file to 10, 15, 20 or whatever you want. If you do not put this in, it will default to the games standard 30 minutes.
We don't use a password, so I left this blank, but left it in the config file.
When the time ends, a score chart appears and shortly the next map will load. If you don't want to play DeathMatch, you can find the other map rotations on this site.
Quote:
/********************************************************
//COD2 - Server Config Setup and Init
/********************************************************
//Server Configuration File Call of Duty 2 Multiplayer
//Updated :Foxhound @ MODSonline.com
//Email :
//
//This config file controls the server settings
/********************************************************
//Color Codes
/********************************************************
// Colors for text. Do not clear the comment in front of the color codes.
// Useful for your server name, motd msg's - Information and ref use only
//
// ^1 = Red*
// ^2 = Green*
// ^3 = Yellow*
// ^4 = Blue*
// ^5 = Cyan*
// ^6 = pink/Magenta*
// ^7 = White*
// ^0 = Black*
//********************************************************
//Public Information
//********************************************************
// Rconpassword
set rcon_password ""
// Set time for game
set scr_dm_timelimit "2"
set scr_tdm_timelimit "2"
set scr_dtf_timelimit "2"
set scr_hq_timelimit "2"
//Map_Rotation
set sv_mapRotationCurrent ""
set sv_mapRotation "gametype dm map mp_breakout gametype dm map mp_brecourt gametype dm map mp_burgundy gametype dm map mp_carentan gametype dm map mp_dawnville gametype dm map mp_decoy gametype dm map mp_downtown gametype dm map mp_farmhouse gametype dm map mp_leningrad gametype dm map mp_matmata gametype dm map mp_railyard gametype dm map mp_toujane gametype dm map mp_trainstation"
That's pretty much another method that you can use. You can grab any maps that you like and replace the list above to suit your needs.
Or... you just go through your game shortcuts for Multiplayer CoD2. It's the quickest and easiest.
Hope it helps out.
Cheers
![[quake]](images/BBCode/smilies/quake.gif)