11@ echo off
2- set version = 1.1.11.2
2+ set version = 2.0.0
33set branch = master
44set pwsh = %SYSTEMROOT% \System32\WindowsPowerShell\v1.0\powershell.exe -Command
55title DBD Private Server (%version% )
@@ -46,24 +46,14 @@ echo Please set your directory below.
4646set /p path =
4747goto :setupPrivate
4848:launchLive
49- echo Copying Live Executables...
50- if exist " %path% \DeadByDaylight.exe" del " %path% \DeadByDaylight.exe"
51- if exist " %path% \DeadByDaylight\Binaries\%executables% \DeadByDaylight-%executables% -Shipping.exe" del " %path% \DeadByDaylight\Binaries\%executables% \DeadByDaylight-%executables% -Shipping.exe"
52- copy LiveExecutables\DeadByDaylight.exe " %path% "
53- copy LiveExecutables\DeadByDaylight-%executables% -Shipping.exe " %path% \DeadByDaylight\Binaries\%executables% "
5449echo Launching Dead by Daylight
5550start %launch%
5651goto :end
5752:launchPrivate
58- echo Copying Private Server Executables...
59- if exist " %path% \DeadByDaylight.exe" del " %path% \DeadByDaylight.exe"
60- if exist " %path% \DeadByDaylight\Binaries\%executables% \DeadByDaylight-%executables% -Shipping.exe" del " %path% \DeadByDaylight\Binaries\%executables% \DeadByDaylight-%executables% -Shipping.exe"
61- copy PrivateExecutables\DeadByDaylight.exe " %path% "
62- copy PrivateExecutables\DeadByDaylight-%executables% -Shipping.exe " %path% \DeadByDaylight\Binaries\%executables% "
6353echo Checking mod compatibility...
6454%pwsh% " & {Get-ChildItem -Path '%path% \DeadByDaylight\Content\Paks\~mods\*' -Include *.pak, *.sig -Recurse | Rename-Item -NewName {$_.name -replace 'WindowsNoEditor','%platform% '} }"
6555echo Launching Private Server
66- start %launch%
56+ " %path% \DeadByDaylight-Modded.exe "
6757goto :end
6858:setupPrivate
6959if not exist " %path% \EasyAntiCheat\EasyAntiCheat_Setup.exe" (
@@ -76,13 +66,7 @@ echo Importing mods...
7666if not exist " %path% \DeadByDaylight\Content\Paks\~mods" md " %path% \DeadByDaylight\Content\Paks\~mods"
7767%pwsh% " & {[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webRequest = Invoke-WebRequest https://raw.githubusercontent.com/ModByDaylight/PrivateServer/%branch% /DefaultMods.json -UseBasicParsing; $Data = ConvertFrom-Json $webRequest.Content; $Data.DefaultMods.File | ForEach-Object { 'Downloading' + ' ' + $_.Name + ' ' + '(' + $_.Version + ')' + ' ' + 'by' + ' ' + $_.Author; Invoke-WebRequest -Uri $_.Path -OutFile 'Mods.zip'; Expand-Archive -Path 'Mods.zip' -DestinationPath 'temp' -Force; Remove-Item -Path 'Mods.zip' -Force } }"
7868%pwsh% " & {Get-ChildItem -Path 'temp\*' -Include *.pak, *.sig -Recurse | Rename-Item -NewName {$_.name -replace 'WindowsNoEditor','%platform% '}; Get-ChildItem -Path 'temp\*' -Include *.pak, *.sig -Recurse | Move-Item -Destination '%path% \DeadByDaylight\Content\Paks\~mods' -Force; Remove-Item -Path 'temp' -Force -Recurse }"
79- if exist " %path% \DeadByDaylight.exe" del " %path% \DeadByDaylight.exe"
80- if exist " %path% \DeadByDaylight\Binaries\%executables% \DeadByDaylight-%executables% -Shipping.exe" del " %path% \DeadByDaylight\Binaries\%executables% \DeadByDaylight-%executables% -Shipping.exe"
81- %pwsh% " & {'Downloading Private Server Executables...'; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webRequest = Invoke-WebRequest https://raw.githubusercontent.com/ModByDaylight/PrivateServer/%branch% /info.txt -UseBasicParsing; $paths = ConvertFrom-StringData -StringData $webRequest.Content; Invoke-WebRequest -Uri $paths['executablesPrivate%executables% '] -OutFile 'PrivateExecutables.zip'; Expand-Archive -Path 'PrivateExecutables.zip' -DestinationPath 'PrivateExecutables' -Force; Remove-Item -Path 'PrivateExecutables.zip' -Force }"
82- %pwsh% " & {'Downloading Live Executables...'; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webRequest = Invoke-WebRequest https://raw.githubusercontent.com/ModByDaylight/PrivateServer/%branch% /info.txt -UseBasicParsing; $paths = ConvertFrom-StringData -StringData $webRequest.Content; Invoke-WebRequest -Uri $paths['executablesLive%executables% '] -OutFile 'LiveExecutables.zip'; Expand-Archive -Path 'LiveExecutables.zip' -DestinationPath 'LiveExecutables' -Force; Remove-Item -Path 'LiveExecutables.zip' -Force }"
83- echo Installing Private Server Executables...
84- copy PrivateExecutables\DeadByDaylight.exe " %path% "
85- copy PrivateExecutables\DeadByDaylight-%executables% -Shipping.exe " %path% \DeadByDaylight\Binaries\%executables% "
69+ %pwsh% " & {'Downloading Private Server Executables...'; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webRequest = Invoke-WebRequest https://raw.githubusercontent.com/ModByDaylight/PrivateServer/%branch% /info.txt -UseBasicParsing; $paths = ConvertFrom-StringData -StringData $webRequest.Content; Invoke-WebRequest -Uri $paths['executablesPrivate%executables% '] -OutFile 'PrivateExecutables.zip'; Expand-Archive -Path 'PrivateExecutables.zip' -DestinationPath 'PrivateExecutables' -Force; Copy-Item -Path 'PrivateExecutables\DBDPrivateServerFiles\DeadByDaylight-Modded.exe' -Destination '%path% ' -Force; Copy-Item -Path 'PrivateExecutables\DBDPrivateServerFiles\DeadByDaylight\Binaries\%executables% \*' -Destination '%path% \DeadByDaylight\Binaries\%executables% ' -Force; Remove-Item -Path 'PrivateExecutables.zip' -Force; Remove-Item -Path 'PrivateExecutables' -Force -Recurse }"
8670echo Setup Complete!
8771goto :end
8872:installMods
@@ -100,6 +84,8 @@ if exist "%path%\DeadByDaylight\Content\Paks\pakchunk0-EGS.pak" (
10084 set platform = EGS
10185 set executables = EGS
10286 set launch = com.epicgames.launcher://apps/Brill?action=launch& silent=true
87+ echo The Private Server is currently unsupported on the Epic Games Store version of Dead by Daylight.
88+ goto :end
10389)
10490if exist " %path% \DeadByDaylight\Content\Paks\pakchunk0-WinGDK.pak" (
10591 set platform = WinGDK
0 commit comments