forked from nyanloutre/nixos-config
migrer 7 days to die vers la version A17
This commit is contained in:
parent
870381b16a
commit
a5e0b44753
@ -7,7 +7,7 @@ let
|
||||
gamePath = "/var/lib/sdtdserver";
|
||||
gameOptions = {
|
||||
ServerPort="26900";
|
||||
ServerIsPublic="true";
|
||||
ServerVisibility="2";
|
||||
ServerName="Serveur des loutres";
|
||||
ServerPassword="";
|
||||
ServerMaxPlayerCount="16";
|
||||
@ -17,12 +17,18 @@ let
|
||||
ServerAdminSlotsPermission="0";
|
||||
ServerDescription="Un serveur idiot anti gilets jaunes";
|
||||
ServerWebsiteURL="";
|
||||
ServerDisabledNetworkProtocols="UNET";
|
||||
GameWorld="Random Gen";
|
||||
GameName="Loutre Game";
|
||||
ServerDisabledNetworkProtocols="";
|
||||
GameWorld="Navezgane";
|
||||
WorldGenSeed="Lakeu";
|
||||
WorldGenSize="4096";
|
||||
GameName="Lakeu";
|
||||
GameDifficulty="2";
|
||||
GameMode="GameModeSurvivalMP";
|
||||
GameMode="GameModeSurvival";
|
||||
ZombiesRun="0";
|
||||
ZombieMove="0";
|
||||
ZombieMoveNight="3";
|
||||
ZombieFeralMove="3";
|
||||
ZombieBMMove="3";
|
||||
BuildCreate="false";
|
||||
DayNightLength="60";
|
||||
DayLightLength="18";
|
||||
@ -36,6 +42,9 @@ let
|
||||
TelnetEnabled="false";
|
||||
TelnetPort="8081";
|
||||
TelnetPassword="";
|
||||
TelnetFailedLoginLimit="10";
|
||||
TelnetFailedLoginsBlocktime="10";
|
||||
TerminalWindowEnabled="false";
|
||||
AdminFileName="serveradmin.xml";
|
||||
DropOnDeath="0";
|
||||
DropOnQuit="0";
|
||||
@ -51,6 +60,7 @@ let
|
||||
LandClaimDecayMode="0";
|
||||
LandClaimOnlineDurabilityModifier="4";
|
||||
LandClaimOfflineDurabilityModifier="4";
|
||||
PartySharedKillRange="100";
|
||||
AirDropFrequency="72";
|
||||
AirDropMarker="false";
|
||||
MaxSpawnedZombies="60";
|
||||
@ -59,6 +69,7 @@ let
|
||||
HideCommandExecutionLog="0";
|
||||
MaxUncoveredMapChunksPerPlayer="131072";
|
||||
BedrollDeadZoneSize="15";
|
||||
ServerLoginConfirmationText="Prout";
|
||||
};
|
||||
gameConfig = builtins.toFile "serverconfig.xml" ''
|
||||
<?xml version="1.0"?>
|
||||
@ -92,14 +103,10 @@ in
|
||||
];
|
||||
in ''
|
||||
${pkgs.steamcmd}/bin/steamcmd +login anonymous +force_install_dir ${gamePath} +app_update 294420 validate +quit
|
||||
${pkgs.patchelf}/bin/patchelf \
|
||||
--set-interpreter "$(cat ${pkgs.gcc}/nix-support/dynamic-linker)" \
|
||||
--set-rpath "${libPath}" \
|
||||
${gamePath}/7DaysToDieServer.x86_64
|
||||
install -m666 ${gameConfig} ${gamePath}/serverconfig.xml
|
||||
'';
|
||||
script = ''
|
||||
${gamePath}/7DaysToDieServer.x86_64 -quit -batchmode -nographics -dedicated -configfile=serverconfig.xml
|
||||
${pkgs.steam-run}/bin/steam-run ${gamePath}/7DaysToDieServer.x86_64 -quit -batchmode -nographics -dedicated -configfile=serverconfig.xml
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user