Server rentals :: NFOservers.com

Forums

All times are UTC - 8 hours



Author Message
PostPosted: Tue Mar 22, 2011 12:39 am 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
Game customization is done in LevelRotation.xml and dedicated.cfg. LevelRotation.xml is the main file, and you can either keep it very short and simple (with just your server name, MOTD, image, and predefined Variant), or you can edit it to make a custom level rotation, or you can edit it to change other settings that will also make your server unranked.

Here is an example LevelRotation.xml with all the customizable settings and some maps specified -- customizing both the game type and variant. This will result in an unranked server.

Code:
<levelRotation name="Custom">
  <ServerInfo>
    <!-- You can specify a MOTD of up to 165 characters and a JPEG/PNG 128x128 image URL -->
    <Details name="NFOservers.com - New server" motd="Rent your own server from www.nfoservers.com!" imageUrl="http://www.nfoservers.com/crysis2banner.png" />
    <Variant name="Custom">
      <!-- If you change any of this group, your server will run UNRANKED -->
      <Option setting="g_maxHealthMultiplier 1.0" />  <!--Multiplyer (default=1.0) -->
      <Option setting="g_timelimit 10" /> <!-- Time limit for each round (in minutes, 0 = infinite time) (default=10) -->
      <Option setting="g_scoreLimit 50" /> <!-- Score need to finish the round (0 = infinite score) (default=50) -->
      <Option setting="g_minplayerlimit 6" />  <!-- Number of required players for a game to start (default=6) -->
      <Option setting="g_autoReviveTime 7" /> <!-- (default=7) -->
      <Option setting="g_numLives 0" /> <!-- (default=0) -->
      <Option setting="g_maxHealthMultiplier 1" /> <!-- (default=1) -->
      <Option setting="g_mpRegenerationRate 1" />  <!-- 0=slow, 1=normal, 2=fast (default=1) -->
      <Option setting="g_friendlyfireratio 0.0" />  <!-- fraction of damage dealt to friendlies - can go negative to deal damage back to the person firing (default=0.0) -->
      <Option setting="hud_radarTypeMP 1" />    <!-- 0=off, 1=normal, 2=always on (default=1) -->
      <Option setting="g_mpHeadshotsOnly 0" />  <!-- 0=off, 1=only headshots (default=0) -->
      <Option setting="g_allowCustomLoadouts 1" />  <!-- 0=no custom loadouts, 1=allow loadout (default=1) -->
      <Option setting="g_allowSuitPerks 1" />  <!-- 0=no suit perks, 1=allow suit perks (default=1) -->
      <Option setting="g_allowTeamPerks 1" />  <!-- 0=no team perks, 1=allow team perks (default=1) -->
      <Option setting="hud_dogtagsEnable 1" />  <!-- 0=disable dogtags, 1=enable dogtags (default=1) -->
      <Option setting="g_allowFatalityBonus 1" />  <!-- 0=disable fatality bonus,1=allow fatality bonus (default=1) -->
      <Option setting="g_modevarivar_proHud 0" />  <!-- 0=use normal hud, 1=use pro hud (default=0) -->
      <Option setting="g_modevarivar_disableNanosuit 0" />  <!-- 0=use suit, 1=disable suit (default=0) -->
      <Option setting="g_modevarivar_disableKillCam 0" />  <!-- 0=allow killcam, 1=disable killcam (default=0) -->
      <Option setting="g_modevarivar_disableSpectatorCam 0" />  <!-- 0=allow spectator camera, 1=disable spectator camera (default=0) -->
      <Option setting="g_allowExplosives 1" />  <!-- 0=disable explosives,1=allow explosives (default=1) -->
      <Option setting="g_forceWeapon -1" />    <!-- -1=allow all weapons, otherwise this is the index of the weapon that all players will be given (default=-1) -->
      <!-- You can safely change any of this group without losing RANKED mode -->
      <Option setting="g_autoAssignTeams 1" />  <!-- 0=allow users to pick their team, 1=auto assign teams (default=1) -->
      <Option setting="gl_time 10.0" />    <!-- Time spent in the lobby between games (default=45.0) -->
      <Option setting="g_gameRules_startTimerLength 5.0" />  <!-- Time from first player loading to the game starting (default=15.0)  -->
      <Option setting="gl_initialTime 5" /> <!-- Time until a round starts when the minimum number of players join (default=10) -->
    </Variant>
  </ServerInfo>

  <level name="Wars/cw2_alien_vessel" gameRules="InstantAction" />
  <level name="Wars/cw2_alien_vessel_small" gameRules="TeamInstantAction" />
  <level name="Wars/cw2_church" gameRules="Extraction" />
  <level name="Wars/cw2_city_hall" gameRules="CaptureTheFlag" />
  <level name="Wars/cw2_collided_buildings" gameRules="CrashSite" />
  <level name="Wars/cw2_cxp_liberty_mil" gameRules="TeamInstantAction" />
  <level name="Wars/cw2_downtown" gameRules="Extraction" />
  <level name="Wars/cw2_lighthouse" gameRules="CaptureTheFlag" />
  <level name="Wars/cw2_pier" gameRules="Assault" />
  <level name="Wars/cw2_rooftop_gardens" gameRules="CrashSite" />
  <level name="Wars/cw2_terminal" gameRules="InstantAction" />
  <level name="Wars/cw2_cxp_liberty" gameRules="CaptureTheFlag" />

</levelRotation>


Right now, using a "Custom" game type (on the first line of the file) is required to specify your own levels, and running a "Custom" variant is required to change settings. You can use a "Custom" game type without losing "ranked" status, but using a "Custom" variant will make your server unranked.

Here is an example LevelRotation.xml from a customer who runs a custom game type/map list, with a standard variant -- therefore allowing his server to remain ranked but still play his desired maps:

Code:
<levelRotation name="Custom">
  <ServerInfo>
    <!-- You can specify a MOTD of up to 165 characters and a JPEG/PNG 128x128 image URL -->
    <Details name="YourServerName" motd="Your MOTD" imageUrl="http://www.nfoservers.com/crysis2banner.png" />
    <Variant name="Standard">
    </Variant>
  </ServerInfo>

<level name="Wars/cw2_alien_vessel" gameRules="InstantAction" />
<level name="Wars/cw2_alien_vessel" gameRules="TeamInstantAction" />
<level name="Wars/cw2_alien_vessel" gameRules="CrashSite" />
<level name="Wars/cw2_alien_vessel" gameRules="CaptureTheFlag" />
<level name="Wars/cw2_alien_vessel" gameRules="Assault" />
<level name="Wars/cw2_alien_vessel" gameRules="Extraction" />
<level name="Wars/cw2_alien_vessel_small" gameRules="InstantAction" />
<level name="Wars/cw2_alien_vessel_small" gameRules="TeamInstantAction" />
<level name="Wars/cw2_alien_vessel_small" gameRules="CrashSite" />
<level name="Wars/cw2_alien_vessel_small" gameRules="CaptureTheFlag" />
<level name="Wars/cw2_alien_vessel_small" gameRules="Assault" />
<level name="Wars/cw2_alien_vessel_small" gameRules="Extraction" />
<level name="Wars/cw2_church" gameRules="InstantAction" />
<level name="Wars/cw2_church" gameRules="TeamInstantAction" />
<level name="Wars/cw2_church" gameRules="CrashSite" />
<level name="Wars/cw2_church" gameRules="CaptureTheFlag" />
<level name="Wars/cw2_church" gameRules="Assault" />
<level name="Wars/cw2_church" gameRules="Extraction" />
<level name="Wars/cw2_city_hall" gameRules="InstantAction" />
<level name="Wars/cw2_city_hall" gameRules="TeamInstantAction" />
<level name="Wars/cw2_city_hall" gameRules="CrashSite" />
<level name="Wars/cw2_city_hall" gameRules="CaptureTheFlag" />
<level name="Wars/cw2_collided_buildings" gameRules="InstantAction" />
<level name="Wars/cw2_collided_buildings" gameRules="TeamInstantAction" />
<level name="Wars/cw2_cxp_liberty_mil" gameRules="InstantAction" />
<level name="Wars/cw2_cxp_liberty_mil" gameRules="TeamInstantAction" />
<level name="Wars/cw2_cxp_liberty_mil" gameRules="CrashSite" />
<level name="Wars/cw2_cxp_liberty_statue" gameRules="InstantAction" />
<level name="Wars/cw2_cxp_liberty_statue" gameRules="TeamInstantAction" />
<level name="Wars/cw2_cxp_liberty_statue" gameRules="CrashSite" />
<level name="Wars/cw2_downtown" gameRules="InstantAction" />
<level name="Wars/cw2_downtown" gameRules="TeamInstantAction" />
<level name="Wars/cw2_downtown" gameRules="CrashSite" />
<level name="Wars/cw2_downtown" gameRules="Assault" />
<level name="Wars/cw2_downtown" gameRules="Extraction" />
<level name="Wars/cw2_lighthouse" gameRules="InstantAction" />
<level name="Wars/cw2_lighthouse" gameRules="TeamInstantAction" />
<level name="Wars/cw2_lighthouse" gameRules="CrashSite" />
<level name="Wars/cw2_lighthouse" gameRules="CaptureTheFlag" />
<level name="Wars/cw2_pier" gameRules="InstantAction" />
<level name="Wars/cw2_pier" gameRules="TeamInstantAction" />
<level name="Wars/cw2_pier" gameRules="CrashSite" />
<level name="Wars/cw2_pier" gameRules="Assault" />
<level name="Wars/cw2_pier" gameRules="Extraction" />
<level name="Wars/cw2_rooftop_gardens" gameRules="CrashSite" />
<level name="Wars/cw2_rooftop_gardens" gameRules="TeamInstantAction" />
<level name="Wars/cw2_rooftop_gardens" gameRules="InstantAction" />
<level name="Wars/cw2_terminal" gameRules="TeamInstantAction" />
<level name="Wars/cw2_terminal" gameRules="InstantAction" />
<level name="Wars/cw2_cxp_liberty" gamerules="CaptureTheFlag" />
<level name="Wars/cw2_cxp_liberty" gamerules="Assault" />
<level name="Wars/cw2_cxp_liberty" gamerules="Extraction" /> 

</levelRotation>

When specifying maps, keep in mind that not all maps are compatible with all game types: viewtopic.php?f=64&t=5147


Top
 Profile  
 
PostPosted: Tue Mar 22, 2011 4:33 pm 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9239
Location: Seattle
You can also put some of these same custom cvars (console variables) in dedicated.cfg, or enter them through XML-RPC/rcon. These are the only ways to specify the variables that won't "unrank" your server on a ranked server.

An example dedicated.cfg would be our default:

Code:
http_password=default
sv_password=
gl_time=45
gl_initialtime=10
g_gameRules_startTimerLength=15

When using XML-RPC/rcon, switch out the "=" for a space, such as:

Code:
gl_time 45


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
It is currently Fri May 24, 2013 7:11 pm
Powered by phpBB® Forum Software © phpBB Group