Server: serverconfig.xml

serverconfig.xml
The serverconfig.xml, which this article does not tell you how to find, is the file 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 18.3b4.

    

   

   <property name="ServerAdminSlots"				value="0"/> <property name="ServerAdminSlotsPermission"		value="0"/>

<property name="ControlPanelEnabled"			value="false"/> <property name="ControlPanelPort"				value="8080"/> <property name="ControlPanelPassword"			value="CHANGEME"/>

<property name="TelnetEnabled"					value="true"/> <property name="TelnetPort"						value="8081"/> <property name="TelnetPassword"					value=""/> <property name="TelnetFailedLoginLimit"			value="10"/> <property name="TelnetFailedLoginsBlocktime"	value="10"/>

<property name="TerminalWindowEnabled"			value="true"/>

<property name="AdminFileName"					value="serveradmin.xml"/>

<property name="EACEnabled"						value="true"/> <property name="HideCommandExecutionLog"		value="0"/> <property name="MaxUncoveredMapChunksPerPlayer"	value="131072"/> <property name="PersistentPlayerProfiles"		value="false" />

<property name="GameWorld"						value="Navezgane"/> <property name="WorldGenSeed"					value="asdf"/> <property name="WorldGenSize"					value="4096"/> <property name="GameName"						value="My Game"/> <property name="GameMode"						value="GameModeSurvival"/>

<property name="GameDifficulty"					value="2"/> <property name="BlockDamagePlayer"				value="100" /> <property name="BlockDamageAI"					value="100" /> <property name="BlockDamageAIBM"				value="100" /> <property name="XPMultiplier"					value="100" /> <property name="PlayerSafeZoneLevel"			value="5" /> <property name="PlayerSafeZoneHours"			value="5" />

<property name="BuildCreate"					value="false" /> <property name="DayNightLength"					value="60" /> <property name="DayLightLength"					value="18" /> <property name="DropOnDeath"					value="1" /> <property name="DropOnQuit"						value="0" /> <property name="BedrollDeadZoneSize"			value="15" /> <property name="BedrollExpiryTime"				value="45" />

<property name="MaxSpawnedZombies"				value="64" /> <property name="MaxSpawnedAnimals"				value="50" /> <property name="ServerMaxAllowedViewDistance"	value="12" />

<property name="EnemySpawnMode"					value="true" /> <property name="EnemyDifficulty"				value="0" /> <property name="ZombieMove"						value="0" /> <property name="ZombieMoveNight"				value="3" /> <property name="ZombieFeralMove"				value="3" /> <property name="ZombieBMMove"					value="3" /> <property name="BloodMoonFrequency"				value="7" /> <property name="BloodMoonRange"					value="0" /> <property name="BloodMoonWarning"				value="8" /> <property name="BloodMoonEnemyCount"			value="8" />

<property name="LootAbundance"					value="100" /> <property name="LootRespawnDays"				value="30" /> <property name="AirDropFrequency"				value="72"/> <property name="AirDropMarker"					value="false"/>

<property name="PartySharedKillRange"			value="100"/> <property name="PlayerKillingMode"				value="3" />

<property name="LandClaimCount"					value="1"/> <property name="LandClaimSize"					value="41"/> <property name="LandClaimDeadZone"				value="30"/> <property name="LandClaimExpiryTime"			value="7"/> <property name="LandClaimDecayMode"				value="0"/> <property name="LandClaimOnlineDurabilityModifier"	value="4"/> <property name="LandClaimOfflineDurabilityModifier"	value="4"/> <property name="LandClaimOfflineDelay"			value="0"/>

</ServerSettings>