|
|
Line 7: |
Line 7: |
| ==Server Configuration== | | ==Server Configuration== |
| | | |
− | In order to run a dedicated server you need to set it up with a configuration file which tells the server what to do. There are two files required:
| + | Server configuration is done entirely with the MWLL Launcher. First, select the Dedicated Server Configuration option from the launcher. |
− | * <code>levelrotation.xml</code> - used to specify the maps and per-map settings
| |
− | * <code>server.cfg</code> - used for the general server configuration
| |
| | | |
− | These two files need to be placed in either one of two locations:
| + | [[File:Dedicated server.PNG|right|thumb|An example of a simple [[Solaris Arena]] map rotation.]] |
− | <code>%ProgramFiles%\Crysis Wars\mod\mwll</code> or <code>%Program Files%\Crysis Wars\mod\mwll\server</code>
| |
| | | |
− | '''Note:''' As of MWLL 0.4, the MWLL Launchers dedicated server section can also be used to generate the required files.
| |
| | | |
− | ===Levelrotation.xml===
| |
| | | |
− | Here is an example for a levelrotation. You can add and remove maps as needed and also remove the randomizer if you want them to be played in order. This file does not need to be created since MWLL does come with a default levelrotation that looks almost the same. If you are not happy with it you can create a new one in the mwll directory and load that instead.
| |
| | | |
− | <pre>
| |
− | <levelRotation randomize="1">
| |
− | <level name="Multiplayer/TSA/TSA_Sandblasted" gameRules="TeamSolarisArena">
| |
− | <setting setting="g_timelimit 100"/>
| |
− | <setting setting="g_fraglimit 0"/>
| |
− | <setting setting="g_pp_scale_income 1.00"/>
| |
− | <setting setting="g_revivetime 5"/>
| |
− | <setting setting="g_roundtime 100"/>
| |
− | <setting setting="g_roundlimit 0"/>
| |
− | <setting setting="g_preroundtime 0"/>
| |
− | <setting setting="g_suddendeath_time 0"/>
| |
− | </level>
| |
− | <level name="Multiplayer/TSA/TSA_Marshes" gameRules="TeamSolarisArena">
| |
− | <setting setting="g_timelimit 100"/>
| |
− | <setting setting="g_fraglimit 0"/>
| |
− | <setting setting="g_pp_scale_income 1.00"/>
| |
− | <setting setting="g_revivetime 5"/>
| |
− | <setting setting="g_roundtime 100"/>
| |
− | <setting setting="g_roundlimit 0"/>
| |
− | <setting setting="g_preroundtime 0"/>
| |
− | <setting setting="g_suddendeath_time 0"/>
| |
− | </level>
| |
− | <level name="Multiplayer/TSA/TSA_Inferno" gameRules="TeamSolarisArena">
| |
− | <setting setting="g_timelimit 100"/>
| |
− | <setting setting="g_fraglimit 0"/>
| |
− | <setting setting="g_pp_scale_income 1.00"/>
| |
− | <setting setting="g_revivetime 5"/>
| |
− | <setting setting="g_roundtime 100"/>
| |
− | <setting setting="g_roundlimit 0"/>
| |
− | <setting setting="g_preroundtime 0"/>
| |
− | <setting setting="g_suddendeath_time 0"/>
| |
− | </level>
| |
− | <level name="Multiplayer/TSA/TSA_Clearcut" gameRules="TeamSolarisArena">
| |
− | <setting setting="g_timelimit 100"/>
| |
− | <setting setting="g_fraglimit 0"/>
| |
− | <setting setting="g_pp_scale_income 1.00"/>
| |
− | <setting setting="g_revivetime 5"/>
| |
− | <setting setting="g_roundtime 100"/>
| |
− | <setting setting="g_roundlimit 0"/>
| |
− | <setting setting="g_preroundtime 0"/>
| |
− | <setting setting="g_suddendeath_time 0"/>
| |
− | </level>
| |
− | </levelRotation>
| |
− | </pre>
| |
− |
| |
− | ===Server.cfg===
| |
− |
| |
− | The <code>server.cfg</code> is used to pre-configure your server when starting up. This example here should get you all set so use it as your own <code>server.cfg</code> which is placed in your mwll directory.
| |
− |
| |
− | <pre>
| |
− | g_useProfile = 1
| |
− | g_teamlock = 0
| |
− |
| |
− | r_ShadersAsyncCompiling = 1
| |
− | r_driver = "DX9"
| |
− |
| |
− | sv_levelrotation = "levelrotation.xml"
| |
− | sv_servername = "Servername"
| |
− | sv_password = "0"
| |
− |
| |
− | sv_voice_enable_groups 0
| |
− | net_enable_voice_chat = 0
| |
− |
| |
− | sv_cheatprotection = 0
| |
− | net_pb_sv_enable false
| |
− | sv_ranked = 0
| |
− | sv_maxplayers = 32
| |
− | sv_bandwidth = 900000
| |
− | sv_packetRate = 240
| |
− |
| |
− | g_timelimit = 100
| |
− | g_minteamlimit = 0
| |
− | g_revivetime = 5
| |
− | g_autoteambalance = 0
| |
− | g_tk_punish = 0
| |
− | g_tk_punish_limit = 100
| |
− |
| |
− | ban_timeout = 600
| |
− |
| |
− | log_verbosity = 1
| |
− | log_fileverbosity = 1
| |
− |
| |
− | g_nextlevel
| |
− | </pre>
| |
| | | |
| ===Game modes=== | | ===Game modes=== |
Server configuration is done entirely with the MWLL Launcher. First, select the Dedicated Server Configuration option from the launcher.
To setup a private testing server where you can have unlimited money, enter the command sv_leaguemode_enable = 1 followed by sv_leaguemode_givecbills = 1 into the server console. This will enable League Mode on your server and from there, every time you press the Home key, you will receive 100,000 CBills.