这是我架设COD2服务器的步骤,哪里有错误请指教:
先使用一个普通的COD2,在COD2的main里建立一个文件夹 players,在 players 里面建立一个文本文件 active.txt ,在 active.txt 里面输入 ABCD ,然后保存关闭。接着还是在 players 里面建立一个文件夹 ABCD,在里面建立一个 config_mp.cfg 文件,然后改为:
// generated by Call of Duty, do not modify
unbindall
unbindall
bind TAB "+scores"
bind ESCAPE "togglemenu"
bind SPACE "+gostand"
bind 1 "weapnext"
bind 2 "weapnext"
bind 4 "+smoke"
bind ` "toggleconsole"
bind A "+moveleft"
bind B "+binoculars"
bind C "gocrouch"
bind D "+moveright"
bind E "+leanright"
bind F "+activate"
bind G "+frag"
bind Q "+leanleft"
bind R "+reload"
bind S "+back"
bind T "chatmodepublic"
bind V "mp_QuickMessage"
bind W "+forward"
bind X "openscriptmenu ingame changeweapon"
bind Y "chatmodeteam"
bind Z "+talk"
bind ~ "toggleconsole"
bind PAUSE "toggle cl_paused"
bind CTRL "goprone"
bind SHIFT "+melee_breath"
bind F1 "vote yes"
bind F2 "vote no"
bind F4 "+scores"
bind F12 "screenshotJPEG"
bind MOUSE1 "+attack"
bind MOUSE2 "toggleads"
bind MOUSE3 "+frag"
seta ai_corpseCount "10"
seta cg_brass "1"
seta cg_marks "1"
seta com_hunkMegs "160"
seta com_introPlayed "0"
seta com_maxfps "85"
seta com_recommendedSet "1"
seta fx_sort "1"
seta g_antilag "1"
seta g_banIPs ""
seta g_clonePlayerMaxVelocity "80"
seta g_deadChat "0"
seta g_dropForwardSpeed "10"
seta g_dropUpSpeedBase "10"
seta g_dropUpSpeedRand "5"
seta g_log "Server1_mp.log"
seta g_logSync "1"
seta g_oldVoting "1"
seta g_playerCollisionEjectSpeed "25"
seta g_useGear "1"
seta g_useholdspawndelay "1"
seta g_voiceChatTalkingDuration "500"
seta g_voteAbstainWeight "0.5"
seta in_mouse "1"
seta loc_forceEnglish "0"
seta loc_language "0"
seta mss_khz "44"
seta net_noipx "0"
seta net_noudp "0"
seta net_socksEnabled "0"
seta net_socksPassword ""
seta net_socksPort "1080"
seta net_socksServer ""
seta net_socksUsername ""
seta r_aaSamples "2"
seta r_depthPrepassModels "0"
seta r_distortion "0"
seta r_dlightLimit "4"
seta r_glow "0"
seta r_lodscale "1"
seta r_mode "640x480"
seta r_rendererPreference "none"
seta r_zfeather "0"
seta sc_enable "0"
seta sv_allowAnonymous "0"
seta sv_allowDownload "1"
seta sv_floodProtect "1"
seta sv_hostname "ABCD"
seta sv_maxclients "36"
seta sv_maxPing "220"
seta sv_maxRate "20000"
seta sv_minPing "0"
seta sv_reconnectlimit "3"
seta sv_voice "0"
seta sys_configSum "128026549"
seta sys_cpuGHz "2.61339"
seta sys_gpu ""
seta sys_sysMB "1024"
seta voice_deadChat "0"
seta voice_global "0"
seta voice_localEcho "0"
然后在 main 里面建立一个 server.txt 的文本文件,内容如下,可以自行修改需要的参数:
/ THIS IS CTF CONFIG
// ************************************************** ***
// *********** Server Security & Errors ****************
// ************************************************** ***
//Passwords
set rcon_password "" //CHANGE ME
set sv_privatePassword "" // OPTIONAL CHANGE ME
set g_password "" // Only used if you want to close your server to the public
//Logging
set g_log "Server1_mp.log"
set g_logSync "1"
//SV Pure
set sv_pure "1"
//SV Cheats
set sv_cheats "0"
//Allowed Clans
set sv_allowedClan1 ""
set sv_allowedClan2 ""
//Disable Console
set sv_disableClientConsole "0"
set sv_reconnectlimit "3"
// ************************************************** ***
// *********** Server Personality Dvars ****************
// ************************************************** ***
// Hostname and MOTD
sv_hostname "ABCD"
set scr_motd ""
// Max Players and Saved Private Possitions
set sv_maxclients "32" //Maximum players on the server who are not using the private password
set sv_privateClients "4" //Allows players to enter the server without taking up public slots
//Downloads
seta sv_allowAnonymous "0"
set sv_allowdownload "1"
// Server Packet Rate
set sv_maxRate "20000"
// Limit Laggers and reconnect spammers
set sv_reconnectlimit "3" // Limits how long a player must wait to reconnect to a server
set sv_minPing "0"
set sv_maxPing "220"
// - Banning
set g_banIPs ""
// AntiFlooding Settings
set sv_floodProtect "1"
// ************************************************** ***
// ******************** Voice *************************
// ************************************************** ***
set sv_voice "0"
set sv_voiceQuality "1"
// ************************************************** ***
// ******************** Map Rotation *******************
// ************************************************** ***
// Do NOT put your map_rotate command here! Map_rotate should be called VERY last
// Set the Gametype
set g_gametype "ctf"
// Set the Map Rotation
set sv_MapRotation "gametype ctf map mp_breakout gametype ctf map mp_brecourt gametype ctf map mp_burgundy gametype ctf map mp_carentan gametype ctf map mp_dawnville gametype ctf map mp_decoy gametype ctf map mp_downtown gametype ctf map mp_farmhouse gametype ctf map mp_leningrad gametype ctf map mp_matmata gametype ctf map mp_railyard gametype ctf map mp_toujane gametype ctf map mp_trainstation"
set sv_maprotationcurrent ""
// ************************************************** ***
// *************** Match Setup Options *****************
// ************************************************** ***
// Use these to set how your server will play a map.
// CTF
set scr_ctf_scorelimit "5"
set scr_ctf_timelimit "30"
// S&D
//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"
// TDM
//set scr_tdm_scorelimit "300"
//set scr_tdm_timelimit "30"
// DM
//set scr_dm_scorelimit "50"
//set scr_dm_timelimit "30"
// HQ
//set scr_hq_scorelimit "600"
//set scr_hq_timelimit "30"
// ************************************************** ***
// ***************** Gameplay Dvars ********************
// ************************************************** ***
// Team Icons
set scr_drawfriend "1"
// Friendly Fire
set scr_friendlyfire "0"
// Kill Cam & Spectate
set scr_killcam "0"
set scr_spectatefree "0"
set scr_spectateenemy "0"
// Auto Team Balance
set scr_teambalance "1"
// Force Respawn
set scr_forcerespawn "1"
// ************************************************
// ******************* Voting *********************
// ************************************************
set g_allowvote "0"
// ************************************************** ***
// ************ Weapon Settings ************************
// ************************************************** ***
// 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"
map_rotate
然后给 COD2MP_s.exe 建立一个快捷方式,附带参数为:+set dedicated 2 +set net_ip xxx.xxx.xxx.xxx +set net_port 28970 +exec server.txt
在系统的 hosts 文件中加入127.0.0.1 cod2master.activision.com屏蔽掉CDKEY校验。
打开 UDP/TCP 27243-27245 端口
还有个问题,新出的繁体版本COD2可否架设服务器呢?