Jump to content
主视角中国

Recommended Posts

Posted

这是我架设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可否架设服务器呢?

Posted

看起来没什么错误。ABCD 可以改成你自己需要的名称。

架设服务器其实用不着语言包,也就是说跟语言版本没关系。因为服务器是不读语言包的。

Posted

看起来没什么错误。ABCD 可以改成你自己需要的名称。

架设服务器其实用不着语言包,也就是说跟语言版本没关系。因为服务器是不读语言包的。

老大回复神速 :thumbsup::thumbsup:

请教:ASE里搜到的这个东西是从哪里改的?

gallery_3805_36_10238.jpg

Posted

// Hostname and MOTD

sv_hostname "ABCD"

set scr_motd ""

是否在这里更改后ASE上即可显示?

还有,能否删除些无用的文件以节省空间呢?

Posted

老大回复神速 :thumbsup::thumbsup:

请教:ASE里搜到的这个东西是从哪里改的?

gallery_3805_36_10238.jpg

这个是FPSC MOHAA的配置文件,你可以参考。

seta ">Admin" "S-22" // 管理员

seta ">CPU" "Intel Xeon 2.8GHz x2" // 处理器

seta ">Website" "http://www.fpschina.com" // 网站

seta ">Email" "admin@fpschina.com" // 邮箱

seta ">RAM" "2GB DDR" // 内存

seta ">HDD" "10000RPM SCSI" // 硬盘

seta ">Location" "Beijing" // 位置

seta ">Connection" "100MB" // 网络

一般语法是 seta "名称" "值" ,建议用 seta,不要用 set。前面加上 > 符号是为了显示在一起,你也可以用别的。

Posted

// Hostname and MOTD

sv_hostname "ABCD"

set scr_motd ""

是否在这里更改后ASE上即可显示?

还有,能否删除些无用的文件以节省空间呢?

sv_hostname 可以显示,scr_motd 无效,装 powerserver 插件可以替代 scr_motd 的作用。

可以删除文件,我这两天写篇文章吧。

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

登录

Already have an account? Sign in here.

现在登录
×
×
  • 创建新的...