From c099bcce3c0a115c00b23852b43ffb276511a291 Mon Sep 17 00:00:00 2001 From: Mitch Weaver Date: Mon, 5 Dec 2022 13:06:43 -0600 Subject: [PATCH] add 1.0 files --- version-1.0/serverDZ.cfg | 47 ++++++++++++++++++++++++++ version-1.0/start.bat | 73 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 version-1.0/serverDZ.cfg create mode 100644 version-1.0/start.bat diff --git a/version-1.0/serverDZ.cfg b/version-1.0/serverDZ.cfg new file mode 100644 index 0000000..fddefe4 --- /dev/null +++ b/version-1.0/serverDZ.cfg @@ -0,0 +1,47 @@ +hostname = "ZyaD Chernaurus (Traditional, True DayZ) | discord.gg/mD5KGCrn2f"; // Server name +password = ""; // Password to connect to the server +passwordAdmin = ""; // Password to become a server admin + +enableWhitelist = 0; // Enable/disable whitelist (value 0-1) + +maxPlayers = 100; // Maximum amount of players + + +steamqueryport = 2305; + +verifySignatures = 2; // Verifies .pbos against .bisign files. (only 2 is supported) +forceSameBuild = 1; // When enabled, the server will allow the connection only to clients with same the .exe revision as the server (value 0-1) + +disableVoN = 0; // Enable/disable voice over network (value 0-1) +vonCodecQuality = 20; // Voice over network codec quality, the higher the better (values 0-30) + +disable3rdPerson=1; // Toggles the 3rd person view for players (value 0-1) +disableCrosshair=1; // Toggles the cross-hair (value 0-1) + +disablePersonalLight = 1; // Disables personal light for all clients connected to server +lightingConfig = 0; // 0 for brighter night setup, 1 for darker night setup + +serverTime="SystemTime"; // Initial in-game time of the server. "SystemTime" means the local time of the machine. Another possibility is to set the time to some value in "YYYY/MM/DD/HH/MM" format, f.e. "2015/4/8/17/23" . +serverTimeAcceleration=12; // Accelerated Time (value 0-24)// This is a time multiplier for in-game time. In this case, the time would move 24 times faster than normal, so an entire day would pass in one hour. +serverNightTimeAcceleration=1.5; // Accelerated Nigh Time - The numerical value being a multiplier (0.1-64) and also multiplied by serverTimeAcceleration value. Thus, in case it is set to 4 and serverTimeAcceleration is set to 2, night time would move 8 times faster than normal. An entire night would pass in 3 hours. +serverTimePersistent=1; // Persistent Time (value 0-1)// The actual server time is saved to storage, so when active, the next server start will use the saved time value. + +guaranteedUpdates=1; // Communication protocol used with game server (use only number 1) + +loginQueueConcurrentPlayers=10; // The number of players concurrently processed during the login process. Should prevent massive performance drop during connection when a lot of people are connecting at the same time. +loginQueueMaxPlayers=100; // The maximum number of players that can wait in login queue + +instanceId = 1; // DayZ server instance id, to identify the number of instances per box and their storage folders with persistence files + +storageAutoFix = 1; // Checks if the persistence files are corrupted and replaces corrupted ones with empty ones (value 0-1) + + +class Missions +{ + class DayZ + { + template="dayzOffline.chernarusplus"; // Mission to load on server startup. . + // Vanilla mission: dayzOffline.chernarusplus + // DLC mission: dayzOffline.enoch + }; +}; \ No newline at end of file diff --git a/version-1.0/start.bat b/version-1.0/start.bat new file mode 100644 index 0000000..5ad8998 --- /dev/null +++ b/version-1.0/start.bat @@ -0,0 +1,73 @@ +@echo off +:start + +set NAS=//truenas.home.weaver/dayz + +::################Server name +set serverName="ZyaD Chernaurus (Traditional, True DayZ) | discord.gg/mD5KGCrn2f" +set modFolderName="chernaurus" +set serverPort=2302 +set serverCPU=8 +set mods_generic="mods/@dabsframework;mods/@cf;mods/@vppadmintools;mods/@earplugs;mods/@notes;mods/@noweaponraise;mods/@healthregen;mods/@enoughstamina;mods/@tentbackpacks;mods/@causeofdeath;mods/@bearbuff;mods/@durablesuppressors;mods/@customanimations;mods/@wornrepair;mods/@firefuel;mods/@gunmovesounds;mods/@badfood" +set mods_sUDE="mods/@sframework;mods/@svisual" +set mods_generic_after_sUDE="mods/@nodof" +set mods_cherno="mods/@spurglesbagz;mods/@fliptransport;mods/@novehicledamage;mods/@docscarfixes;mods/@ladslightingoverhaul;mods/@uncuepascivilianclothing" + +::#####################Server files location +set serverLocation="c:\dayzserver\DZSALModServer" +cd "%serverLocation%" +set serverConfig=serverDZ.cfg +title %serverName% batch + +:: ################ COPY STOCK DAYZ SERVER DATA ######################### +echo Copying stock server data +rsync -arvhu --progress --delete --partial %NAS%/DayZServer/addons/ addons +rsync -arvhu --progress --delete --partial %NAS%/DayZServer/keys/ keys +rsync -arvhu --progress --delete --partial %NAS%/DayZServer/battleye/ battleye +rsync -arvhu --progress --delete --partial %NAS%/DayZServer/bliss/ bliss +rsync -arvhu --progress --delete --partial %NAS%/DayZServer/docs/ docs +rsync -arvhu --progress --delete --partial %NAS%/DayZServer/dta/ dta +rsync -arvhu --progress --delete --partial %NAS%/DayZServer/mpmissions/ mpmissions + +:: ################ COPY SERVER MOD FILES ######################### +echo Copying Mod List +rsync -arvhu --progress --delete --partial "%NAS%/mods/%modFolderName%"/mods.txt mods.txt +echo COPYING MODS +rsync -arvhu --progress --delete --partial "%NAS%/mods/%modFolderName%"/ mods" +echo COPYING MOD ADDONS +FOR /d %%y IN (mods\*) DO robocopy %%y/addons addons /E /XC /XN /XO /njh /njs /ndl /nc /ns /nfl + +echo COPYING MOD KEYS +FOR /d %%y IN (mods\*) DO robocopy %%y/keys keys /E /XC /XN /XO /njh /njs /ndl /nc /ns /nfl +FOR /d %%y IN (mods\*) DO robocopy %%y/key keys /E /XC /XN /XO /njh /njs /ndl /nc /ns /nfl + +:: ################ COPY SERVER CONFIG FILES ######################### +echo Copying Config Files +rsync -acrvhu --progress --delete --partial %NAS%/server_configs/all/messages.xml mpmissions/dayzOffline.chernarusplus/db/messages.xml +rsync -acrvhu --progress --delete --partial %NAS%/server_configs/chernaurus/globals.xml mpmissions/dayzOffline.chernarusplus/db/globals.xml +rsync -acrvhu --progress --delete --partial %NAS%/server_configs/chernaurus/economy.xml mpmissions/dayzOffline.chernarusplus/db/economy.xml +rsync -acrvhu --progress --delete --partial %NAS%/server_configs/chernaurus/types.xml mpmissions/dayzOffline.chernarusplus/db/types.xml +rsync -acrvhu --progress --delete --partial %NAS%/server_configs/chernaurus/cfggameplay.json mpmissions/dayzOffline.chernarusplus/cfggameplay.json +rsync -acrvhu --progress --delete --partial %NAS%/server_configs/Profilesfolder/sUDE/ Profilesfolder/sUDE + +:: ################ COPY SERVER STORAGE ######################### +echo Copying Server Storage +rsync -acrvhu --progress --delete --partial %NAS%/STORAGE/cherno/ mpmissions/dayzOffline.chernarusplus/storage_1 + +::###########Launch parameters (edit end: -config=|-port=|-profiles=|-doLogs|-adminLog|-netLog|-freezeCheck|-filePatching|-BEpath=|-cpuCount=) +echo (%time%) %serverName% started. +start "DayZ Server" /min "DZSALModServer.exe" -config=%serverConfig% -port=2302 -profiles=Profilesfolder "-mod=%mods_generic%;%mods_sUDE%;%mods_generic_after_sUDE%;%mods_cherno%" -cpuCount=%serverCPU% -dologs -adminlog -netlog -freezecheck + +::###############Time in seconds before kill server process (14400 = 4 hours) +timeout 14403 +taskkill /im DayZServer_x64.exe /F + +::##### Save Storage +echo Sleeping 10 and storing storage +timeout 10 +rsync -acrvhu --progress --delete --partial mpmissions/dayzOffline.chernarusplus/storage_1/ %NAS%/STORAGE/cherno + +::##################Loop +echo Storage saved we are now restarting +timeout 10 +goto start \ No newline at end of file