2013年1月29日火曜日

CoD4 Promod マッチサーバーの立て方とRconコマンド

サーバーの立て方


(1) ルーターがある場合はポート UDP 28960(デフォルト)を開放

ポート開放はルーターの設定画面から行えます


(2) http://www.codpromod.com/ でPromod LIVE EUをダウンロード

解凍するとpbpromodlive214、LICENSE、readme.txt、server.cfg、server_setup.txtなどが入ってます


(3) CoD4のフォルダを探し、見つけられたらModsフォルダを開いてください

Win7 64bitの場合: C:\Program Files (x86)\Activision\Call of Duty 4 - Modern Warfare\Mods


(4) 開いたらそこにpromodlive214を入れ、promodlive214の中にLICENSE、readme.txt、server.cfg、server_setup.txtを入れます


(5) serverをTeraPadなどで開き、下記のものに書きかえます

//******************************************************************************
// Call of Duty 4 - Config by: mavrick.id.au
//******************************************************************************

//******************************************************************************
// Public Information
//******************************************************************************

sets _Admin ""
sets _Website ""
sets _Location ""
sets _Irc ""
set _Mod "promodlive214"
sets sv_hostname "Promod Match"
sets _Maps ""

//******************************************************************************
// Punkbuster and Logging
//******************************************************************************

// Start Punkbuster
sv_pb_enable
sv_punkbuster "1"

// Log Settings
set g_logsync "2" // 0=no log, 1=buffered, 2=continuous, 3=append
set logfile "1" // 0 = NO log, 1 = log file enabled
set g_log "games_mp.log" // Name of log file, default is games_mp.log
set sv_log_damage "1"

// Server Network Mode
set dedicated "2" // 0 = Listen, 1 = LAN, 2 = Internet

//******************************************************************************
// Call of Duty Master Server Pings
//******************************************************************************

// Master servers
set sv_master1 "cod4master.activision.com"
set sv_master2 "cod4authorize.activision.com"
set sv_master3 "cod4master.infinityward.com"
set sv_master3 "cod4update.activision.com"
set sv_master4 "master.gamespy.com:28960"
set sv_master5 "master0.gamespy.com"
set sv_master6 "master1.gamespy.com"
set sv_master7 "clanservers.net"
set sv_master8 "cod4master.activision.com"
set sv_master9 "master1.evenbalance.com"
set sv_gamespy "1"

//******************************************************************************
// RCON and Private Password Settings
//******************************************************************************

// Password Settings
set rcon_password "esports" // RCON must supply pw to use
set sv_privatePassword "" // Private slots, non-public slots

// The following can be used to lock out the server so that only those
// players that have been provide the password can connect. Good for
// matches, practices, etc.
set g_password "esports"

//******************************************************************************
// Players and Pings
//******************************************************************************

// Player slots setup
set sv_maxclients "20" // MAX server player slots, this is TOTAL player slots - Usually set by your gamehost anyway
set ui_maxclients "20" // MAX server player slots, this is TOTAL player slots - Usually set by your gamehost anyway
set sv_privateclients "" // Number of private player slots, maxclients - privateclients = public slots

// Drop inactive players
set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"

// Ping
set sv_minPing "0" // MIN player ping on CONNECT, any lower and player isnt allowed to connect
set sv_maxping "350" // MAX player ping on CONNECT, any higher and player isnt allowed to connect

//******************************************************************************
// HTTP Redirect Download for Mod - REMEMBER: To change the sv_wwwBaseURL !
//******************************************************************************

// Client Download Settings. (0=off/1=on) Used for MODs and custom maps
set sv_allowdownload "1"
seta sv_wwwDownload "0"

// Change this url if you change the z_custom_ruleset.iwd otherwise when joining the game you will be stuck in a continous loop,
// As there will be a .iwd mismatch
//seta sv_wwwBaseURL "" // REMEMBER TO CHANGE ME

seta sv_wwwDlDisconnected "0"

//******************************************************************************
// Other
//******************************************************************************

// Rate
set sv_maxRate "25000"

// AntiFlooding Settings
set sv_floodProtect "1"
set sv_reconnectlimit "3"

// Anti Cheat Settings
set sv_disableClientConsole "0" // 1 = do not allow in-game console,
// Some may not agree with this but this could potentially stop people from using LMG and the Pigeon Bug!

set cl_autocmd "0"
set sv_cheats "0"
set sv_pure "1"
set g_banIPs ""
set g_no_script_spam "1"

// Temporary Ban duration, in seconds
// 3600 = 1 Hour
// 36000 = 10 Hours
// 360000 = 100 Hours or 4 Days
// 360000 = 1000 Hours or 41 Days
// 1209600 = 336 Hours or 14 Days or 2 Weeks - IDEAL
// 2592000 = 720 Hours or 30 Days or 1 Month
set sv_kickBanTime "3600"

// In-game voice communication system
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"

//******************************************************************************
// Misc
//******************************************************************************

set sv_allowAnonymous "0"
set g_antilag "0"
set g_compassShowEnemies "0"

//******************************************************************************
// Map Settings
//******************************************************************************

// Set Game Type - Search and Destroy
set g_gametype "sd"

// Load Map Rotation - Popular ProMod Server Maps
set sv_mapRotation "map mp_crash map mp_strike map mp_citystreets map mp_backlot map mp_vacant map mp_crossfire"

//******************************************************************************
// Add your domain name to the bottom left hand corner
//******************************************************************************

set pam_hud_show_website 1
set pam_hud_website "mavrick.id.au"
set g_motd "mavrick.id.au"
set scr_motd "Welcome"

//******************************************************************************
// ProMod
//******************************************************************************

// Load ProMod In Public Server Mode
set promod_mode custom_public
set promod_mode "match_mr12" // promod mode, for a list of promod modes see attached readme
set promod_enable_scorebot "1" // match-modes only

//******************************************************************************
// NOTES - mavrick.id.au
//******************************************************************************
// VOTING: This is disabled in the custom ruleset
// SCOPES: 2 x scope per team is set in the custom ruleset
// GRENADES: Enabled / Default
// SMOKE: Enabled / Default
// FLASH: Enabled
// KILLCAM: Disabled in the custom ruleset
// STRAT TIME: 30 seconds on the first round of each map to allow all players to join in-time
// Enjoy!


(6) Call of Duty 4 - Modern Warfareフォルダにあるiw3mp.exeを右クリックしてショートカットを作成

作成したショートカットの名前を適当なものに変更、ここではPromod Matchに変更しておきます

Promod Matchを右クリック→プロパティ→リンク先に下記のものを追加
 +set dedicated 2 +set sv_punkbuster 1 +set fs_game mods/promodlive214 +exec server.cfg +set rcon_password esports +map_rotate


(7) pbの中に入っているものをCall of Duty 4 - Modern Warfarepbに上書き


(8) Promod Matchをクリックして起動

--------------------------------------------------------------------------------------------------------------------------------------------

試合で使うRconコマンド


(1) ログインコマンド
/rcon login esports

(2) マップ変更コマンド
/rcon map マップネーム

試合で使いそうなマップネーム
mp_backlot , mp_citystreets , mp_crash , mp_crossfire , mp_strike , mp_vacant , mp_backlot_fix

mp_backlot_fixmp_backlotのバグが修正されたマップです
カスタムマップなので別途DL、導入が必要です (ほぼ導入必須)

(3) リスタート
/rcon map_restart

--------------------------------------------------------------------------------------------------------------------------------------------

 

備考


(1) サーバーパスワードはesportsに設定することをおすすめします
(2) マッチサーバーの場合、promodlive214フォルダをpromodlive214sdなどに書きかえないようにしましょう
(3) PunkBusterは最新の状態に保つようにしましょう