Accueil Informatique Jeux vidéo Musique

Retour aux jeux intéressants

Mettre en place et configurer un serveur dédié sous linux

7 Days to Die

 

Installation

Configuration

Serverconfig.xml

This is a table of the up-to-date Alpha 14.6 serverconfig.xml file that comes with 7 Days to Die.

Only change the data in the "value=" part of the file, otherwise it will not work.

OptionValuesDescription
ServerPort 26900 Port you want the server to listen on.
ServerIsPublic true Should this server register to master server
ServerName My Game Host Whatever you want the name to be.
ServerPassword   Password to gain entry to the server
ServerMaxPlayerCount 8 Maximum Concurrent Players (8 is the most supported by TFP.)
ServerDescription A 7 Days to Die server Whatever you want the description to be.
ServerWebsiteURL   Website URL for the server
GameWorld Navezgane Navezgane, or Random Gen
GameName My Game Whatever you want the game name to be THIS CONTROLS THE RANDOM GENERATION SEED
GameDifficulty 2 0 - 5, 0=easiest, 5=hardest
GameMode GameModeSurvivalMP GameModeSurvivalMP, GameModeSurvivalSP (MP has land protection)
ZombiesRun 0 0 = default day/night walk/run, 1 = never run, 2 = always run
BuildCreate false Cheat mode on/off
DayNightLength 50 real time minutes per in game day: 50 minutes
DayLightLength 18 in game hours the sun shines per day: 18 hours day light per day
FriendlyFire false Can friendly players damage each other (PvP)
PersistentPlayerProfiles true If disabled a player can join with any selected profile. If true they will join with the last profile they joined with
PlayerSafeZoneLevel 5 If a player is less or equal this level he will create a safe zone (no enemies) when spawned
PlayerSafeZoneHours 5 Hours in world time this safe zone exists
ControlPanelEnabled false Enable/Disable the control panel
ControlPanelPort 8080 Port of the control panel webpage
ControlPanelPassword CHANGEME Password to gain entry to the control panel
TelnetEnabled true Enable/Disable the telnet
TelnetPort 8081 Port of the telnet server
TelnetPassword CHANGEME Password to gain entry to telnet interface
AdminFileName serveradmin.xml Server admin file name
DropOnDeath 0 0 = everything, 1 = toolbelt only, 2 = backpack only, 3 = delete all
DropOnQuit 1 0 = nothing, 1 = everything, 2 = toolbelt only, 3 = backpack only
EnemySenseMemory 60 Time, in seconds, that a zombie will pursue something that has been sensed.
EnemySpawnMode 3 0 = Disabled 0%, 1 = Very Low 50%, 2 = Low 75%, 3 = Medium 100%, 4 = High 125%, 5 = Very High 150%
EnemyDifficulty 0 0 = Normal, 1 = Feral
BlockDurabilityModifier 100 Percentage in whole numbers
LootAbundance 100 Percentage in whole numbers
LootRespawnDays 7 Days in whole numbers
LandClaimSize 7 Size in blocks that is protected by a keystone (Must be an odd number)
LandClaimDeadZone 30 Keystones must be this many blocks apart (unless you are friends with the other player)
LandClaimExpiryTime 3 The number of days a player can be offline before their claims expire and are no longer protected
LandClaimDecayMode 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.
LandClaimOnlineDurabilityModifier 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
LandClaimOfflineDurabilityModifier 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
AirDropFrequency 72 How often airdrop occur in game-hours
AirDropMarker false Sets if a marker is added to map/compass for air drops.
MaxSpawnedZombies 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.
MaxSpawnedAnimals 50 If your server has a large number of players you can increase this limit to add more wildlife. †
EACEnabled true Enables/Disables EasyAntiCheat
SaveGameFolder absolute path Use this to override the default save game path

† Animals don't consume as much CPU as zombies. NOTE: That this doesn't cause more animals to spawn arbitrarily: The biome spawning system only spawns a certain number of animals in a given area, but if you have lots of players that are all spread out then you may be hitting the limit and can increase it.


Serverconfig.xml

C'est un fichier XML qui permet de configurer les différents paramètres du serveur Version Alpha 15.B105 7 Days to Die.

Il faut uniquement changer la donnée dans la case "value=" sinon cela risque d'empêcher le démarrage du serveur.

OptionValuesDescription
ServerPort 26900 Port d'écoute du serveur
ServerIsPublic true Rendre publique son serveur (Affichage dans la liste des serveurs sur le jeu)
ServerName My Game Host Nom du serveur
ServerPassword   Mot de passe du serveur (laisser vide si pas de mot de passe)
ServerMaxPlayerCount 8 Nombre maximum de joueur
ServerDescription A 7 Days to Die server Description du serveur
ServerWebsiteURL   Url du site web du serveur
GameWorld Navezgane Navezgane (Type de création de map)
GameName My Game Si vous souhaitez une map faite aléatoirement (bogue possible)
GameDifficulty 2 0 - 5 (0 : facile - 5 difficile)
GameMode GameModeSurvivalMP Type de jeux (GameModeSurvivalMP / GameModeSurvivalSP). Le mode MP à la protection du territoire
ZombiesRun 0 Valeurs possibles 0(défaut),1,2. 0 = Court la nuit / Marche le jour, 1 = zombie ne court jamais, 2 = zombie court tout le temps
BuildCreate false mode triche on/off
DayNightLength 40 Longueur en temps réel de la nuit : 40 minutes
DayLightLength 18 Nombres d'heures de jeu où le soleil brille (par deéfaut : 18 heures)
FriendlyFire false Autoriser ou non le tir ami (False/True)
PersistentPlayerProfiles true If disabled a player can join with any selected profile. If true they will join with the last profile they joined with
PlayerSafeZoneLevel 5 If a player is less or equal this level he will create a safe zone (no enemies) when spawned
PlayerSafeZoneHours 5 Hours in world time this safe zone exists
ControlPanelEnabled false Active / désactive le panneau de controle
ControlPanelPort 8080 Port du panneau de controle
ControlPanelPassword CHANGEME Mot de passe du panneau de controle
TelnetEnabled true Active/désactive le telnet
TelnetPort 8081 Port du telenet
TelnetPassword CHANGEME Mot de passe du telenet
AdminFileName serveradmin.xml Nom du fichier XML donnant le nom des administrateurs et de leurs droits
DropOnDeath 0 Ce que le joueur perd lorsqu’il meurt : 0 = Tout, 1 = Uniquement la ceinture, 2 = Uniquement le Sac, 3 = Suppression total (irrécupérable)
DropOnQuit 1 Ce que le joueur perd en quittant le jeu : 0 = Rien, 1 = Tout, 2 = Uniquement la ceinture, 3 = Uniquement le sac
EnemySenseMemory 60 Temps en seconde pendant lequel le zombie pourchasse une joueur "ressenti"
EnemySpawnMode 3 0 = Disabled 0%, 1 = Very Low 50%, 2 = Low 75%, 3 = Medium 100%, 4 = High 125%, 5 = Very High 150%
EnemyDifficulty 0 0 = Normal, 1 = Feral
BlockDurabilityModifier 100 Percentage in whole numbers
LootAbundance 100 Percentage in whole numbers
LootRespawnDays 7 Nombre de jours avant le rechargement d'objet (respawn)
LandClaimSize 7 Size in blocks that is protected by a keystone
LandClaimDeadZone 30 Keystones must be this many blocks apart (unless you are friends with the other player)
LandClaimExpiryTime 3 The number of days a player can be offline before their claims expire and are no longer protected
LandClaimDecayMode 0 Controls how offline players land claims decay. All claims have full protection for the first 24hrs. 0=Linear
LandClaimOnlineDurabilityModifier 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
LandClaimOfflineDurabilityModifier 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
AirDropFrequency 72 Fréquence du largage d'avion en heures dans le jeu
MaxSpawnedZombies 60 Nombre maximum de zombies pouvant être créé. Augmenter cette valeur au dessus de 80 peut ralentir le serveur
MaxSpawnedAnimals 50 Nombre maximal d'animaux pouvant être créé
EACEnabled true Active / Désactive EasyAntiCheat
SaveGameFolder absolute path Chemin du dossier de sauvegarde (Laisser vide pour utilisation du chemin de base)

Web Control Panel

*** Commands ***

2013-11-12 22:30:22 - listthreads lt => lists all threads

2013-11-12 22:30:22 - enablescope es => toggle debug scope

2013-11-12 22:30:22 - gameover go => sets the game state to GameOver

2013-11-12 22:30:22 - setgamepref sg => sets a game pref

2013-11-12 22:30:22 - debugmenu dm => enables/disables the debugmenu (param=on|off)

2013-11-12 22:30:22 - shutdown => shuts down the game

2013-11-12 22:30:22 - spawnentity se => spawns an entity

2013-11-12 22:30:22 - settime st => sets the time

2013-11-12 22:30:22 - kick => Kicks user with optional reason. "kick playername reason"

2013-11-12 22:30:22 - ban => Bans user for x timeframe. "ban playername 1 hour" timeframes allowed: minutes, hours, days, weeks, months, years

2013-11-12 22:30:22 - listents le => lists all entities

2013-11-12 22:30:22 - listplayers lp => lists all players

2013-11-12 22:30:22 - chunkcache cc => shows all loaded chunks in cache

2013-11-12 22:30:22 - showchunkdata sc => shows some date of the current chunk


Command Console

Description

The Command Console is a tool primarily used for game development. However, it can be accessed by the player and used to input various "Console Commands" adding a wider range of functionality to the game. Using the commands the player is able to retrieve game information and statistics in addition, but not limited to altering the game's settings, spawning items and controlling time. Commands are also available which can be used to control guest players when the game is running in multi-player. This allows the host player to kick or even ban other players that are abusive or being disruptive.

Usage

Key 1

Key 2

Console Commands

Entering codes

Command List

Current list taken from Alpha 15. Commands are as listed by typing "help" into the console.

CommandShortcutDescriptionExample
help   Prints help text for supported commands. help ban
admin add   Used to add a player to the admin list with the desired permission level. Note that you can use the players entityid, playername, or steam ID. Type "lpi" to find an ID. Permission levels can range between 0 (maximum) and 1000 (none). admin add 171 0
admin remove   Used to remove a player from the admin list. Type "lpi" to find an ID. admin remove 171
aiddebug   Toggles AIDirector debug output.  
ban add [reason]   Bans a player from the game for in with a reason of [reason] (optional). Duration units are minutes, hours, days, weeks, months, and years. Type "lpi" to find an ID. ban 171 10 hours griefing
ban 282 1 year hacking
ban list   Print a list of banned players with their duration, ID, and reason to the console.  
ban remove   Remove a ban. Find a list of banned player IDs using "ban list". ban remove 171
buff   Applies a buff to the local player (you). Buff names can be found in 7 Days To Die\Data\Config\buffs.xml buff CoffeeStaminaBoost
buffplayer   Applies a buff to the selected player. Type "lpi" to find an ID. Buff names can be found in 7 Days To Die\Data\Config\buffs.xml. buffplayer 171 CoffeeStaminaBoost
chunkcache cc Shows all loaded chunks in the cache.  
clear   Clears all output text in the command console  
cp add   Used to add a command to the command permission list with the desired permission level. Use "cp list" to view commands. cp add gettime 0
cp remove   Used to remove a command from the command permission list. cp remove gettime
cp list   Display a list of current command permissions. "1000" is the lowest (Guest or normal player) while "0" is the highest (Host or Admin).  
creativemenu cm Enables or disables the Creative Menu  
deathscreen <on/off>   Display the blood-filled death screen during normal gameplay. This does not hurt or kill the player but it diminishes visibility.  
debuff   Remove a buff from the local player (you). debuff brokenLeg
debuffplayer   Remove a buff from the targeted player. debuff 171 brokenLeg
debugmenu [on/off] dm Toggles Debug Mode on or off. This allows God mode (G key), the debug menu (ESC), and other unique functionality.  
enablescope <on/off> es Toggle debug scope.  
exhausted   Makes the player exhausted.  
exportitemicons   Exports all item icons to the 7 Days To Die\ItemIcons folder. Extremely useful for wiki editing!  
getgamepref gg Prints a list of current game preferences to the console (airdrop frequency, daylight length, etc).  
getgamestat ggs Prints a list of current game stats to the console (land claim size, difficulty, etc)  
gettime gt Prints current number of days and time.  
givequest   Give yourself a quest. Quest names can be found in 7 Days To Die\Data\Config\quests.xml. The example command can be used to skip to the end of the tutorial quests. This is also immensely helpful for modded quests. givequest quest_BasicSurvival8
giveself [quality level]   Drops an item at your feet with maximum (600) quality. Use the optional [quality level] to specify. Item names can be found in 7 Days To Die\Data\Config\items.xml giveself machete
giveselfskillxp   Increase the specified skill by of experience. The MUST be capitalized and spaced correctly. giveselfskillxp Mining Tools 1000
giveselfxp   Increase your experience by . giveselfxp 1000
kick [reason]   Kicks a player from the game. Type "lpi" to find an ID. [reason] is optional. kick 171 bye
kickall [reason]   Kicks all players from the game. [reason] is optional. kickall bye
killall   Kills all players and entities.  
lights   Toggles display of an outline around all light-emitting objects (candles, campfires, etc) (screenshot)  
listents le Lists all entities currently in game (zombies, players, animals).  
listplayerids lpi Lists all players and their IDs.  
listplayers lp Lists all players with IDs, positions, health, stats, IP address, etc.  
listthreads lt Lists all threads.  
loggamestate [true/false] lgs Writes information on the current state of the game (memory usage, entities, threads, etc) to the log file at 7 Days To Die\7DaysToDie_Data\output_log.txt. is any string that will be included in the header of the generated log. True = the command should be run on the client. False = the command should be run on the server. "False" is default. loggamestate START
loglevel <true/false>   Telnet/web only. Select which types of log messages are shown on the connection. By default, all log messages are printed on every connection. Log levels: INF, WRN, ERR, EXC, or ALL. loglevel INF false
mem   Prints memory information and calls garbage collector.  
memcl   Prints memory information on client and calls garbage collector.  
pplist   Prints Persistent Player data.  
removequest   Removes a quest. Quest names can be found in 7 Days To Die\Data\Config\quests.xml.  
repairchunkdensity [fix] rcd Used to check if the densities of blocks in a chunk match the actual block type. If there is a mismatch it can lead to the chunk rendering incorrectly or not at all, indicated by the error message "Failed setting triangles. Some indices are references out of bounds vertices." It can also fix mismatches within a chunk. and are the coordinates of any block within the chunk to check. Adding "fix" to the end of the command will repair any mismatches. rcd 0 100 fix
saveworld sa Manually saves the world.  
say   Sends a server message to all connected clients.  
setgamepref sg Sets a gamepref. Preference names can be viewed with the "gg" command (getgamepref). sg ZombiesRun 0
setgamestat sgs Sets a gamestat. Stat names can be viewed with the "ggs" command (getgamestat). sgs LandClaimExpiryTime 10
settempunit stu Sets the temperature unit to Celsius (c) or Fahrenheit (f, default).  
settime day
settime night
settime
st Sets the current game time. settime 1300
settime 6 15 0
showalbedo albedo Toggles display of albedo in gBuffer.  
showchunkdata sc Shows some data of the current chunk.  
showclouds   Artist command to show one layer of clouds.  
shownexthordetime   Displays the wandering horde time.  
shownormals norms Toggles display of normal maps in gBuffer.  
showspecular spec Toggles display of specular values in gBuffer.  
shutdown   Shuts the game down.  
sounddebug   Toggles SoundManager debug output.  
spawnairdrop   Spawns an air drop.  
spawnentity se "se" by itself prints a list of entity IDs. Type "lpi" to find an ID. You may also use the Entity Spawner (F6) in Debug Mode to spawn an entity.  
spawnscouts   Spawns 1 Screamer in the distance and makes it navigate towards the location where the command was used.  
spawnscreen   Displays spawn screen.  
spawnsupplycrate   Spawns a supply crate above the player.  
spawnwanderinghorde   Spawns a full zombie horde (including several Screamers) in the distance and makes it navigate towards the location where the command was used.  
spectrum   Force a lighting spectrum. Choices are Biome, BloodMoon, Foggy, Rainy, Stormy, Snowy. For the moment, the "biome" choice is bugged and might crash the game.  
starve   Makes the player hungry.  
staticmap   Switches the Navazgane map between static and dynamic  
switchview sv Switches the player view between 1st person and 3rd person views. This can also be done in Debug Mode by hitting F5.  
systeminfo   Print info about the current system (CPU, operating system, etc).  
teleport [y]
teleport
teleport
teleport offset
tp Teleport the local player (you) to specified location. If using [y] (optional) use -1 to spawn on the ground. Use only and to always spawn on the ground. Use "offset" to teleport based on current position (e.g. 3 meters north inside a locked building). Type "help tp" for more info. South and West are negative, (-) before number. tp -200 77 300
tp -200 300
tp 171
tp offset 3 1 0
teleportplayer
teleportplayer
tele Teleport the target player to specified location. Use y = -1 to spawn on the ground. Use another player's name or ID to teleport one player to another (such as to yourself). Type "lpi" to print a list of player IDs. Type "help tele" for more info.

South and West are negative, (-) before number.

tele 171 -200 77 300
tele 171 365
tele = friend to you.
thirsty   Makes the player thirsty.  
traderarea   If a player is within a trader area they will be forced out but can reenter unless trader is closed.  
updatelighton   Commands for UpdateLightOnAllMaterials and UpdateLightOnPlayers.  
version   Print the version of the game and loaded mods.  
water   Control water settings. Type "help water" for more info.  
weather   Control weather settings. Type "help weather" for more info.  
weathersurvival   Toggles weather survival.  
whitelist add   Adds a player to the whitelist.  
whitelist remove   Removes a player from the white list.  
whitelist list   Prints a list of all whitelisted players.  

 


 

Source 1 => https://developer.valvesoftware.com/wiki/7_Days_to_Die_Dedicated_Server

Source 2 => https://7daystodie-fr.gamepedia.com/Serveurs