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

注册 登录

QQ登录

只需一步,快速开始

查看: 8661|回复: 25
打印 上一主题 下一主题

[原创] ------===已过期====--------[COD6]IW4Play.de-M1服务器建立指南

  [复制链接]

39

主题

759

帖子

687

积分

超级玩家

Seeking for DEATH

Rank: 5Rank: 5

贡献度
41
金元
5233
积分
687
精华
0
注册时间
2009-8-1
跳转到指定楼层
主题
发表于 2013-11-28 00:20 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 xeon5300 于 2014-6-19 20:59 编辑

  • 鉴于这个破解组现在支持着3个版本M1,M2,M3,十分混乱,可能造成看不到M3服务器的情况。下面的方法只适用于M1版本的服务器。
  • 首先你所需要的一切资源。请移步Intgl的帖子,写的十分详细并对可能遇到的问题给出了解决办法:http://bbs.3dmgame.com/thread-4123043-1-1.html
  • 深吸一口气,做好能看完这帖子的心理准备……
  • 好吧,我们开始♂


我们要用的服务器程序 iw4mp_server.exe ,在游戏目录内:

右键建立一个快捷方式,并在后面加上参数: +set net_port "28960" +set party_maxplayers 18 +exec server.cfg +map_rotate +set iw4masterserver server.iw4play.de

解释:这段参数设置了网络端口为:28960,最大玩家数:18,执行的服务器配置文件为:server.cfg并执行里面的地图轮换,主服务器为XXXX

服务器的配置文件我们稍后会讲到,我会上传附件供大家参考。

注意加号前面有空格,确定保存。我们可以把它剪切到桌面,方便使用。(Win7用户建议在兼容性选项卡中勾选“以管理员身份运行”)

开启UPnP和SSDP服务,对于路由的用户,建议做一下端口映射,可自行Google,这里不再赘述。

服务器程序配置结束

<!---=========================================我是华丽的分割线======================================->

下面我们搞server.cfg


// --- QUERY INFORMATION --------------------------------
    set sv_hostname "^1[CHN] Test Server[Unicom]"                                    //服务器的名称,建议各位HOST统一一下格式:[CHN]服务器名称[Telecom/Unicom] **电信还是联通

    // --- NETWORK OPTIMIZATION -----------------------------                          //网络优化
    set sv_maxRate "150000"
    set snaps "30"
    set sv_network_fps "1000"
    set cl_maxpackets "100"
    set sv_voiceQuality "7"

    // Optional settings returned by query, server listings may use this            //下面的是可选的配置,随意了
    sets _Admin "Kuma Migoyan"
    sets _Email "admin@email.com"
    sets _Website "Null"
    sets _Location "Asia"

    // --- NON-GAMEPLAY CONFIGURATION -----------------------                                                             //非游戏设定,重要
    set rcon_password "30SoMetHinG" // Password for rcon, empty = disabled                                    //远程rcon登录密码,必须改!
    set privateMatch_serverPassword "" // Game password, leave empty for a public game                  //如果想找几个基友一起玩,请加上密码

    set sv_maxPing "200" // Maximum ping, any higher and players will get kicked                               //玩家如果高于200ping,则不能进入服务器

    set g_inactivity "20" // Time in seconds before a player gets kicked if not moving                           //防蹲哔-----的
    set g_inactivitySpectator "0" // Time in seconds before a spectator gets kicked                             //观察者也能被T出去-_-

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

    set aiw_sayName "^1Console" // name server-side 'say' commands show up as                          //当OP使用Say命令时,以Console开头在游戏内显示

    // --- BASE GAME CONFIGURATION --------------------------                                                           //游戏模式简写说明
    set g_gametype "sd" // 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 hardcore mode                                                            //下面就是HC游戏模式的详细配置了(我又犯懒了,原谅我……
    //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

    // Player slots setup                                                                                                                                                 //玩家空位设置
    set scr_privateclients "2" // Number of private player slots, maxclients - privateclients = public slots                        //预留两个空位,所以实际上最多能有16人
    set scr_privatepassword "30SoMetHinG"                                                                                                                //凭密码进入后,则使用预留空位,为OP而设。



    // --- GAMETYPE CONFIGURATION ---------------------------                                                              //下面是游戏模式设置(啊……又犯懒了…… 请下拉- -

    // - Team Deathmatch

    set scr_war_scorelimit "15000"
    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" // Adds a "pro" sound to the game announcement

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

    // - Free-for-all

    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" // Adds a "pro" sound to the game announcement

    // - 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" // Adds a "pro" sound to the game announcement

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

    // - 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" // Adds a "pro" sound to the game announcement

    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"

    // - Demolition

    set scr_dd_scorelimit "1"
    set scr_dd_timelimit "2.5" // Timelimit, in minutes

    set scr_dd_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
    set scr_dd_waverespawndelay "0" // Wave spawning, might be more 'tactical'

    set scr_dd_numlives "1" // Number of lives
    set scr_dd_promode "0" // Adds a "pro" sound to the game announcement

    set scr_dd_roundlimit "0" // Maximum amount of rounds, 0 is 'until someone wins'
    set scr_dd_winlimit "6" // Amount of wins needed to win a round-based game
    set scr_dd_roundswitch "4" // After X rounds, switch sides?

    set scr_dd_bombtimer "45"
    set scr_dd_defusetime "5"
    set scr_dd_multibomb "0" // Allow multiple people to 'have the bomb'?
    set scr_dd_planttime "5"

    // - Sabotage

    set scr_sab_scorelimit "1"
    set scr_sab_timelimit "2.5" // Timelimit, in minutes
    set scr_sab_hotpotato "0" // Hot potato mode

    set scr_sab_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
    set scr_sab_waverespawndelay "0" // Wave spawning, might be more 'tactical'

    set scr_sab_numlives "1" // Number of lives
    set scr_sab_promode "0" // Adds a "pro" sound to the game announcement

    set scr_sab_roundlimit "1" // Maximum amount of rounds, 0 is 'until someone wins'
    set scr_sab_winlimit "1" // Amount of wins needed to win a round-based game
    set scr_sab_roundswitch "1" // After X rounds, switch sides?

    set scr_sab_bombtimer "45"
    set scr_sab_defusetime "5"
    set scr_sab_multibomb "0" // Allow multiple people to 'have the bomb'?
    set scr_sab_planttime "5"

    // Headquarters

    set scr_koth_scorelimit "1"
    set scr_koth_timelimit "2.5" // Timelimit, in minutes

    set scr_koth_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
    set scr_koth_waverespawndelay "0" // Wave spawning, might be more 'tactical'

    set scr_koth_numlives "1" // Number of lives
    set scr_koth_promode "0" // Adds a "pro" sound to the game announcement

    set scr_koth_roundlimit "0" // Maximum amount of rounds, 0 is 'until someone wins'
    set scr_koth_winlimit "6" // Amount of wins needed to win a round-based game
    set scr_koth_roundswitch "4" // After X rounds, switch sides?

    // Global Thermo-Nuclear War

    set scr_gtnw_scorelimit "1"
    set scr_gtnw_timelimit "2.5" // Timelimit, in minutes

    set scr_gtnw_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
    set scr_gtnw_waverespawndelay "0" // Wave spawning, might be more 'tactical'

    set scr_gtnw_numlives "1" // Number of lives
    set scr_gtnw_promode "0" // Adds a "pro" sound to the game announcement

    set scr_gtnw_roundlimit "0" // Maximum amount of rounds, 0 is 'until someone wins'
    set scr_gtnw_winlimit "6" // Amount of wins needed to win a round-based game
    set scr_gtnw_roundswitch "4" // After X rounds, switch sides?

    // One Flag CTF

    set scr_oneflag_scorelimit "1"
    set scr_oneflag_timelimit "2.5" // Timelimit, in minutes

    set scr_oneflag_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
    set scr_oneflag_waverespawndelay "0" // Wave spawning, might be more 'tactical'

    set scr_oneflag_numlives "1" // Number of lives
    set scr_oneflag_promode "0" // Adds a "pro" sound to the game announcement

    set scr_oneflag_roundlimit "0" // Maximum amount of rounds, 0 is 'until someone wins'
    set scr_oneflag_winlimit "6" // Amount of wins needed to win a round-based game
    set scr_oneflag_roundswitch "4" // After X rounds, switch sides?

    // Capture The Flag

    set scr_ctf_halftime "1" // Intermission
    set scr_ctf_scorelimit "1"
    set scr_ctf_timelimit "2.5" // Timelimit, in minutes

    set scr_ctf_playerrespawndelay "-1" // -1 is no respawn delay, 0 is automatic, > 0 is X seconds
    set scr_ctf_waverespawndelay "0" // Wave spawning, might be more 'tactical'

    set scr_ctf_numlives "1" // Number of lives
    set scr_ctf_promode "0" // Adds a "pro" sound to the game announcement

    set scr_ctf_roundlimit "0" // Maximum amount of rounds, 0 is 'until someone wins'
    set scr_ctf_winlimit "6" // Amount of wins needed to win a round-based game
    set scr_ctf_roundswitch "4" // After X rounds, switch sides?

    // Arena

    set scr_arena_scorelimit "1"
    set scr_arena_timelimit "2.5" // Timelimit, in minutes

    set scr_arena_numlives "1" // Number of lives
    set scr_arena_promode "0" // Adds a "pro" sound to the game announcement

    set scr_arena_roundlimit "0" // Maximum amount of rounds, 0 is 'until someone wins'
    set scr_arena_winlimit "6" // Amount of wins needed to win a round-based game
    set scr_arena_roundswitch "4" // After X rounds, switch sides?


    // --- MAP ROTATION TDM -------------------------------------------------                            //TDM模式的地图轮转

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

    // --- MAP ROTATION MIXXED GAMETYPES -------------------------------                      //混合模式的地图轮转,使用这个的话删除下面的“//”并在上面的set前加"//"

    // set sv_mapRotation "gametype sd map mp_afghan gametype war map mp_boneyard gametype dom map mp_brecourt gametype ctf map mp_checkpoint gametype arena map mp_derail gametype dd map mp_estate gametype koth map mp_favela gametype dm map mp_invasion gametype sab map mp_nightshift gametype oneflag map mp_quarry gametype war map mp_rundown gametype ctf map mp_subbase gametype dd map mp_terminal gametype koth map mp_underpass gametype war map mp_afghan"



<!------------------------------------------------------------------------终于写到最后了--------------------------------------------------------------------->



当你把server.cfg改完后,保存。放在游戏目录的下的players文件夹就行了。

至此,服务器的准备工作基本就完成了。可以双击我们的服务器快捷方式开启服务器。


下面给出一些常用的控制台命令:

map +地图名,换地图;

status 查看现在服务器中玩家的情况

serverinfo 查看服务器信息

clientkick +玩家编号 踢出玩家(玩家编号可以查看status命令的输出

killserver 卸载服务器资源

quit 退出

Ban人什么的自行Google吧(懒……



可能会出现的问题:

例如"Script compile errror, unknow function"这类的问题,大概是由于4D1的大量MOD文件导致的(*.gsc) 我遇到了这种情况,于是删除了raw文件夹和m2demo文件夹。

可能还会出现其他情况,欢迎由建设性的解决方案。

                                                                                                                                                                                                                   server.cfg (10.35 KB, 下载次数: 905) -By 30SoMetHinG.iwd


评分

1

查看全部评分

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-5-17 17:32 , Processed in 0.039076 second(s), 19 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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