7 Days to Die Wiki
Advertisement

serverconfig.xml[ | ]

The serverconfig.xml file is used to adjust the value of the various properties used by the game server. The server uses these properties to configure the setting used when starting a game. While some proprieties simply relate to game options others are more important, permitting control over connectivity, access and protection of the game server.

Editing the settings requires the .xml to be opened with a suitable text editor. Notepad and Wordpad will work fine. Notepad++ is excellent for this task. Its ability to correctly handle .xml files is very useful when editing the serverconfig.xml.and it is available as a free download from:
http://notepad-plus-plus.org/download/.

To change the value of a property, enter the desired change in the value field selected. Once all chosen values have been edited don't forget to save the file, the simplest way to do this is to push Ctrl+S. If saving via the save window make sure the file is saved with the .xml extension.

Modded Status[ | ]

Edited June 07 2018

Changing some key values in the servercomfig.xml file will flag your server to a 'Modded' status in the server browser as implimented in Alpha 10. The following are the known flags and their default (required for non-modded status) values.

  • DayNightLength = 50 (Remark: 40 since 10.0, but "output_log.txt" in 12.5 says default = 50)
  • DropOnDeath = 0
  • DropOnQuit = 1
  • CraftTimer = 1
  • LootTimer = 1
  • EnemySenseMemory = 60 (Removed in 16.0)
  • EnemySpawnMode = 3
  • NightPercentage = 20 – 50 (Removed in 12.0, replaced by "DayNightLength")
  • DayNightLength = 18
  • BlockDurabilityModifier = 100
  • LootRespawnDays = 7
  • LootAbundance = 100
  • AirDropFrequency = 72
  • BuildCreate = false.
  • Also the XML files in Data/Config/ may not be modified

If you are encountering problems trying to set your server status to 'Non-Modded" or 'Vanilla' all you need to do is check your log file located in /7DaysToDie_Data/output_log.txt. You can do a quick search for the term "modded" to find it quickly or look for something like below.

Setting for 'DropOnDeath' does not match the default (server will go to the modded category): current = 1, default = 0
Setting for 'DropOnQuit' does not match the default (server will go to the modded category): current = 0, default = 1
Setting for 'EnemySenseMemory' does not match the default (server will go to the modded category): current = 90, default = 60
Setting for 'EnemySpawnMode' does not match the default (server will go to the modded category): current = 5, default = 3
Setting for 'DayNightLength' does not match the default (server will go to the modded category): current = 60, default = 40
  • Below you can find an unedited rendition of the .xml file.
  • serverconfig.xml as taken from 7 Days to Die version Alpha 16.4.
<?xml version="1.0"?>
<ServerSettings>
  <property name="ServerPort" value="26900"/>	<!-- Port you want the server to listen on. -->
  <property name="ServerIsPublic" value="true"/>  <!-- Should this server register to master server -->
  <property name="ServerName" value="My Game Host"/>	<!-- Whatever you want the name to be. -->
  <property name="ServerPassword" value=""/>	<!-- Password to gain entry to the server -->
  <property name="ServerMaxPlayerCount" value="8"/> <!-- Maximum Concurrent Players -->
  <property name="ServerDescription" value="A 7 Days to Die server"/> <!-- Whatever you want the description to be. -->
  <property name="ServerWebsiteURL" value=""/>	<!-- Website URL for the server -->

  <property name="HideCommandExecutionLog" value="true"/>	<!-- disable printing of command execution to the server log -->
  <property name="MaxUncoveredMapChunksPerPlayer" value="4"/>	<!-- Limit of per player uncovered map area configurable, client side defaults to 4 times the area of before A16 (128 km² instead of 32 km²) -->
  <property name="ServerReservedSlots" value="1"/>	<!-- allows admins to join a full server by reserving a slot -->
  
  <property name="GameWorld" value="Navezgane"/>   <!-- Navezgane, MP Wasteland Horde, MP Wasteland Skirmish, MP Wasteland War, Random Gen -->
  <property name="GameName" value="My Game"/>	<!-- Whatever you want the game name to be THIS CONTROLS THE RANDOM GENERATION SEED -->
  <property name="GameDifficulty" value="2"/>  	<!-- 0 - 4, 0=easiest, 4=hardest -->
  <property name="GameMode" value="GameModeSurvivalMP"/>   <!-- GameModeSurvivalMP, GameModeSurvivalSP (MP has land protection) -->
  <property name="PlayerKillingMode" value="3" />   <!-- Player Killing Settings (0 = No Killing, 1 = Kill Allies Only, 2 = Kill Strangers Only, 3 = Kill Everyone) --> 

  <property name="ZombiesRun" value="0" />   <!-- 0 = default day/night walk/run, 1 = never run, 2 = always run -->
  <property name="BuildCreate" value="false" />	  <!-- cheat mode on/off -->
  <property name="DayNightLength" value="40" />	  <!-- 40 minutes -->
  <property name="FriendlyFire" value="false" />   <!-- Can friendly players damage each other (PvP) -->
  <property name="PersistentPlayerProfiles" value="true" />   <!-- If disabled a player can join with any selected profile. If true they will join with the last profile they joined with -->

  <property name="ControlPanelEnabled" value="false"/>	 <!-- Enable/Disable the control panel -->
  <property name="ControlPanelPort" value="8080"/>   <!-- Port of the control panel webpage -->
  <property name="ControlPanelPassword" value="CHANGEME"/>   <!-- Password to gain entry to the control panel -->

  <property name="TelnetEnabled" value="true"/>	  <!-- Enable/Disable the telnet -->
  <property name="TelnetPort" value="8081"/>	<!-- Port of the telnet server -->
  <property name="TelnetPassword" value="CHANGEME"/>	<!-- Password to gain entry to telnet interface -->

  <property name="DisableNAT" value="true"/>  <!-- set this to true if your router doesn't support NAT -->
  <property name="AdminFileName" value="serveradmin.xml"/>  <!-- Server admin file name -->
  
  <property name="DropOnDeath" value="0" />   <!-- 0 = everything, 1 = toolbelt only, 2 = backpack only, 3 = delete all -->
  <property name="DropOnQuit" value="1" />   <!-- 0 = nothing, 1 = everything, 2 = toolbelt only, 3 = backpack only -->
  
  <property name="CraftTimer" value="1" />   <!-- 0 = None (instant), 1 = Normal, 2 = Fast (double speed) -->
  <property name="LootTimer" value="1" />   <!-- 0 = None (instant), 1 = Normal, 2 = Fast (double speed) -->
  
  <property name="EnemySpawnMode" value="true" />	  <!-- true or false, false will prevent zombies from spawning -->
  <property name="EnemyDifficulty" value="0" />	  <!-- 0 = Normal, 1 = Feral -->
  <property name="BloodMoonEnemyCount" value="100" />	  <!-- Adjust this to get more enemies per player on blood-moons if your game stage is high enough. Game-stages are still determined by your party -->
  <property name="BedrollDeadZoneSize" value="10" />	  <!-- This is a 3 dimensional unit in meters from bedrolls that blocks zombie spawning.  Including zombies spawned from biomes, screamer hordes, blood moon hordes and even sleeper volumes that are within this distance. -->
 
  <property name="BlockDurabilityModifier" value="100" />    <!-- percentage in whole numbers -->
  
  <property name="LootAbundance" value="100" />    <!-- percentage in whole numbers -->
  <property name="LootRespawnDays" value="7" />    <!-- days in whole numbers -->
  
  <property name="LandClaimSize" value="7"/>   <!-- Size in blocks that is protected by a keystone -->
  <property name="LandClaimDeadZone" value="30"/>   <!-- Keystones must be this many blocks apart (unless you are friends with the other player) -->
  <property name="LandClaimExpiryTime" value="3"/>   <!-- The number of days a player can be offline before their claims expire and are no longer protected -->
  <property name="LandClaimDecayMode" value="0"/>   <!-- Controls how offline players land claims decay. All claims have full protection for the first 24hrs. 0=Linear, 1=Exponential, 2=Full protection until claim is expired. -->
  <property name="LandClaimOnlineDurabilityModifier" value="4"/>    <!-- How much protected claim area block hardness is increased when a player is online. 0 means infinite (no damage will ever be taken). Default is 32x -->
  <property name="LandClaimOfflineDurabilityModifier" value="4"/>   <!-- How much protected claim area block hardness is increased when a player is offline. 0 means infinite (no damage will ever be taken). Default is 32x -->
  <property name="AirDropFrequency" value="72"/>    <!-- How often airdrop occur in game-hours, 0 == never -->
  <property name="AirDropMarker" value="true"/>    <!-- show the air drops on the map true/false -->  

  <property name="MaxSpawnedZombies" value="60"/>    <!-- Making this number too large (more than about 80) may cause servers to run at poor framerates which will effect lag and play quality for clients. -->
  <property name="EACEnabled" value="true"/>  <!-- Enables/Disables EasyAntiCheat -->
 <!-- <property name="ServerDisabledNetworkProtocols" value=""/> --> <!-- comma separated list of networking protocols not to be used. Possible values: unet, raknet, steamnetworking -->
  
  <!--property name="SaveGameFolder" value="absolute path" /-->	<!-- use this to override the default save game path -->
</ServerSettings>

See also[ | ]

Advertisement