Skip to content

Commit 44ab3e7

Browse files
authored
Merge pull request #18 from ModByDaylight/dev
Private Server for DBD 5.6.2
2 parents 73905c0 + 940d98a commit 44ab3e7

2 files changed

Lines changed: 8 additions & 24 deletions

File tree

PrivateSeverLauncher.bat

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
set version=1.1.11.2
2+
set version=2.0.0
33
set branch=master
44
set pwsh=%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\powershell.exe -Command
55
title DBD Private Server (%version%)
@@ -46,24 +46,14 @@ echo Please set your directory below.
4646
set /p path=
4747
goto :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%"
5449
echo Launching Dead by Daylight
5550
start %launch%
5651
goto :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%"
6353
echo Checking mod compatibility...
6454
%pwsh% "& {Get-ChildItem -Path '%path%\DeadByDaylight\Content\Paks\~mods\*' -Include *.pak, *.sig -Recurse | Rename-Item -NewName {$_.name -replace 'WindowsNoEditor','%platform%'} }"
6555
echo Launching Private Server
66-
start %launch%
56+
"%path%\DeadByDaylight-Modded.exe"
6757
goto :end
6858
:setupPrivate
6959
if not exist "%path%\EasyAntiCheat\EasyAntiCheat_Setup.exe" (
@@ -76,13 +66,7 @@ echo Importing mods...
7666
if 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 }"
8670
echo Setup Complete!
8771
goto :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
)
10490
if exist "%path%\DeadByDaylight\Content\Paks\pakchunk0-WinGDK.pak" (
10591
set platform=WinGDK

info.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
latestVersion=1.1.11.2
2-
executablesPrivateWin64=https://cdn.discordapp.com/attachments/838158112749781000/935746796465049610/DBDModding-Steam.zip
3-
executablesLiveWin64=https://cdn.discordapp.com/attachments/917649484450775061/941880810523459684/LiveExecutablesWin64.zip
4-
executablesPrivateEGS=https://cdn.discordapp.com/attachments/838158112749781000/936418774276521984/PrivateExecutablesEGS.zip
5-
executablesLiveEGS=https://cdn.discordapp.com/attachments/838158112749781000/935819978186297354/LiveExecutablesEGS.zip
1+
latestVersion=2.0.0
2+
executablesPrivateWin64=https://cdn.discordapp.com/attachments/838158112749781000/960612982243602452/DBDPrivateServerFiles.zip
3+
executablesPrivateEGS=https://cdn.discordapp.com/attachments/838158112749781000/936418774276521984/PrivateExecutablesEGS.zip

0 commit comments

Comments
 (0)