3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 7536|回复: 23
打印 上一主题 下一主题

[推荐] 从国外转来的AlterIWnet服务器命令大全,全英文,PM有福利,cod8地图循环命令start_map_rotate

  [复制链接]

126

主题

2317

帖子

6689

积分

游戏精英

Rank: 8Rank: 8

贡献度
772
金元
36012
积分
6689
精华
0
注册时间
2010-7-20
跳转到指定楼层
主题
发表于 2012-1-29 21:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 zhm86 于 2012-1-29 22:39 编辑

http://www.epcgaming.com/smf/index.php?topic=17599.0;wap2

theplqa:
Source


Downloads

Download Server Files(v0.3b-RCONFIX)

Server Addons Found Here

AlterIWnet

OPTIONAL - Nulliwd - Reduces game to MUCH smaller size making it easier to upload to game server
Copy this in \main\ to make it easier to upload the game server(Once you do this you can no longer use the game as a client!!!)

Requirements

    * A network connection with enough bandwidth to host a MW2 server (1 megabit upstream is recommended)
    * A computer running Windows XP or higher (or Wine, see the specific chapter)
    * 512 MB of RAM (though 1 GB+ would be better, a server process takes around 350 MB)
    * A not-too-slow CPU (though any CPU would be okay, I'd guess)
    * The Modern Warfare 2 game (with the aIW-specific files added, can be a copy of your normal aIW game)
    * All the usual dependencies for MW2/alterIWnet (likely including DirectX files)
    * A GPU with at least Shader Model 3.0 -- whoa, isn't it a dedicated server?
    * Some knowledge about console commands


The Guide

   1. Firstly, you need to have the usual alterIWnet client files installed on a MW2 installation. If you're using a dedicated server (or VPS) hosted somewhere, you can also ZIP and upload the usual alterIWnet installation you play with. Note that you will not be able to play with the dedicated server at all. ;)

   2. Now, extract and overwrite the files from the dedicated server package to your MW2 installation on the system you're planning to run the dedicated server on.

   3. As I forgot to pack it in with the package, make a copy of your iw4mp.dat and name it iw4.exe. Also, optionally, download content/nulliwd.7z (contains empty IWD files, make sure you don't accidentally your originals!)

   4. Make a server configuration file (see the chapter 'Configuration file' for more information). You can skip this step, but it's a lot easier to maintain the server with a configuration file.

   5. On Windows, you can make a shortcut to run the server by hand -- to do this, make a shortcut to 'iw4.exe', open the properties for it, and add the launch options (see the 'Launching' chapter) to the 'Target' input field. For other systems or methods of launching, see the 'Launching' chapter as well.

   6. Run the server using the method you chose for launching it.

   7. To see if everything works correctly, run the alterIWnet client (make sure that, if on the same computer, the server is not using port 28960) and, in the console, use 'connect [IP]:28960', replacing 28960 with the specific port for the server. Also, 127.0.0.1 won't work locally, so use the IP assigned to your network card.

Configuration file

Create a text file in any directory on the search path (either 'main' or 'players', it depends on which you like) with a name like 'server.cfg' (note how later parts of the guide will refer to this name). Most of the commands you use are similar to CoD4, and you can use most of the guides for CoD4 configuration files for the alterIWnet MW2 server.

A template configuration file is shown below:
(click to show/hide)
   // --- QUERY INFORMATION --------------------------------
    set sv_hostname "alter^4IW^7net ^2DEDICATED SERVER^7 - I AM LAZY"

    // optional settings returned by query, server listings may use this
    sets _Admin "NTAuthority"
    sets _Email "ntauthority@example.com"
    sets _Website "http://alteriw.net/"
    sets _Location "EU - West"

    // --- NON-GAMEPLAY CONFIGURATION -----------------------
    set rcon_password "" // password for rcon, empty = disabled
    set privateMatch_serverPassword "" // game password, leave empty for a public game

    set sv_maxPing "300" // maximum ping, any higher and players will get kicked

    set g_inactivity "0" // time in seconds before a player gets kicked if not moving
    set g_inactivitySpectator "0" // time in seconds before a spectator gets kicked

    set g_logSync "1" // 1 = always flus工口GAMEs_mp.log, 0 = only flush on game end
    set g_log "games_mp.log" // game log file

    set aiw_sayName "^7Console" // name server-side 'say' commands show up as

    // --- BASE GAME CONFIGURATION --------------------------
    set g_gametype "war" // game type
    // war - Team Deathmatch
    // dm - Free-for-all
    // dom - Domination
    // koth - Headquarters
    // sab - Sabotage
    // sd - Search and Destroy
    // arena - Arena
    // dd - Demolition
    // ctf - Capture the Flag
    // oneflag - One-Flag CTF
    // gtnw - Global Thermo-Nuclear War

    // uncomment below commands for some hardcore shit
    //set g_hardcore "1"
    //set ui_hud_hardcore "1"
    //set scr_hardcore "1"
    //set scr_player_maxhealth "30"
    //set scr_team_fftype "1" // 1 = on, 2 = reflect, 3 = shared
    //set scr_player_healthregentime "0"

    set scr_thirdperson "0" // third-person mode
    set scr_game_hardpoints "1" // killstreaks, 1 = on
    set scr_game_perks "1" // perks, obviously

    set scr_game_allowkillcam "1" // 1 = allow, 0 = disallow

    set scr_diehard "0" // die-hard mode

    // --- GAMETYPE CONFIGURATION ---------------------------

    // - Team Deathmatch
    set scr_war_scorelimit "10000"
    set scr_war_timelimit "15" // timelimit, in minutes

    set scr_war_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
    set scr_war_waverespawndelay "0" // wave spawning, might be more 'tactical'

    set scr_war_numlives "0" // number of lives
    set scr_war_promode "0" // unknown

    set scr_war_roundlimit "1" // maximum amount of rounds
    set scr_war_winlimit "1" // amount of wins needed to win a round-based game

    // - Domination
    set scr_dom_scorelimit "200"
    set scr_dom_timelimit "15" // timelimit, in minutes

    set scr_dom_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
    set scr_dom_waverespawndelay "0" // wave spawning, might be more 'tactical'

    set scr_dom_numlives "0" // number of lives
    set scr_dom_promode "0" // unknown

    set scr_dom_roundlimit "1" // maximum amount of rounds
    set scr_dom_winlimit "1" // amount of wins needed to win a round-based game

    // - FFA
    set scr_dm_scorelimit "10000"
    set scr_dm_timelimit "15" // timelimit, in minutes

    set scr_dm_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds

    set scr_dm_numlives "0" // number of lives
    set scr_dm_promode "0" // unknown

    // - Search and Destroy
    set scr_sd_scorelimit "1"
    set scr_sd_timelimit "2.5" // timelimit, in minutes

    set scr_sd_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
    set scr_sd_waverespawndelay "0" // wave spawning, might be more 'tactical'

    set scr_sd_numlives "1" // number of lives
    set scr_sd_promode "0" // unknown

    set scr_sd_roundlimit "0" // maximum amount of rounds, 0 is 'until someone wins'
    set scr_sd_winlimit "6" // amount of wins needed to win a round-based game
    set scr_sd_roundswitch "4" // after X rounds, switch sides?

    set scr_sd_bombtimer "45"
    set scr_sd_defusetime "5"
    set scr_sd_multibomb "0" // allow multiple people to 'have the bomb'?
    set scr_sd_planttime "5"

    // ... other gametypes might be easy to figure out, or come in a future update of the template ...

    // --- AUTOMATED ROTATION -------------------------------
    set sv_mapRotation "gametype war map mp_afghan gametype war map mp_boneyard gametype war map mp_brecourt gametype war map mp_checkpoint gametype war map mp_derail gametype war map mp_estate gametype war map mp_favela gametype war map mp_invasion gametype war map mp_nightshift gametype war map mp_quarry gametype war map mp_rundown gametype war map mp_subbase gametype war map mp_terminal gametype war map mp_underpass gametype dom map mp_afghan"



Launching

Windows (GUI):

Add launch parameters to the shortcut, so that it looks like this:

iw4.exe +set party_maxplayers 18 +set net_port 28960 +exec server.cfg +map mp_rust +map_rotate

Windows (CLI):

Make a batch file containing something like this:
Code:

   @echo off
    cd "T:\Games\CoD6"
    iw4.exe +set party_maxplayers 18 +set net_port 28960 +exec server.cfg +map mp_rust +map_rotate


Wine:

Use the following Wine command line in an xterm or similar X terminal to start the game:

wine iw4.exe +set party_maxplayers 18 +set net_port 28960 +exec server.cfg +map mp_rust +map_rotate

This is still in beta
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-5-8 12:45 , Processed in 0.037724 second(s), 19 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表