Skip to content

Commit cc1c6c0

Browse files
authored
Merge pull request #24 from ModByDaylight/dev
Updated README
2 parents 2b8c389 + 8cb2937 commit cc1c6c0

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

PrivateSeverLauncher.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ if exist gamepath.txt (
1616
set /p path=<gamepath.txt
1717
) else goto :paths
1818
call :platformCheck
19-
if not exist "%path%\.cache" md "%path%\.cache"
2019
if exist "%path%/.cache/binariesVersion.txt" call :updateBinaries
2120
:start
2221
echo [1]. Launch Live
@@ -82,6 +81,7 @@ echo %path%>gamepath.txt
8281
if not exist "%path%\DeadByDaylight\Content\Paks\~mods" md "%path%\DeadByDaylight\Content\Paks\~mods"
8382
%pwsh% "& {'Installing required mods...'; [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 } }"
8483
%pwsh% "& {Get-ChildItem -Path 'temp\*' -Include *.pak, *.sig -Recurse | Move-Item -Destination '%path%\DeadByDaylight\Content\Paks\~mods' -Force; Remove-Item -Path 'temp' -Force -Recurse }"
84+
if not exist "%path%\.cache" md "%path%\.cache"
8585
%pwsh% "& {'Downloading Private Server Binaries...'; [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%binaries%'] -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\%binaries%\*' -Destination '%path%\DeadByDaylight\Binaries\%binaries%' -Force; Remove-Item -Path 'PrivateExecutables.zip' -Force; Remove-Item -Path 'PrivateExecutables' -Force -Recurse; $paths['latestBinaries'] | Out-File -Encoding ASCII -FilePath '%path%\.cache\binariesVersion.txt' }"
8686
echo Installation Complete!
8787
goto :end
@@ -115,4 +115,5 @@ set /p binariesVersion=<"%path%/.cache/binariesVersion.txt"
115115
if '%autoUpdateBinaries%'=='true' %pwsh% "& {[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; if ( $paths['latestBinaries'] -gt '%binariesVersion%' ) { 'Updating Private Server Binaries...'; Invoke-WebRequest -Uri $paths['executablesPrivate%binaries%'] -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\%binaries%\*' -Destination '%path%\DeadByDaylight\Binaries\%binaries%' -Force; Remove-Item -Path 'PrivateExecutables.zip' -Force; Remove-Item -Path 'PrivateExecutables' -Force -Recurse; $paths['latestBinaries'] | Out-File -Encoding ASCII -FilePath '%path%\.cache\binariesVersion.txt'; '' } }"
116116
goto :eof
117117
:end
118-
pause
118+
pause
119+
exit

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The Private Server is a modified version of the live game which is 100% offline
1010

1111
1. Download and extract the Private Server Setup folder.
1212
2. Run the "PrivateSeverLauncher.bat" and follow the setup steps.
13-
3. Once the setup has been completed, run the launcher again and select the "Launch Private Server" option. Dead By Daylight can also be opened through Steam.
13+
3. Once the setup has been completed, run the launcher again and select the "Launch Private Server" option.
1414

1515
## Matchmaking
1616

@@ -20,4 +20,4 @@ In the Private Server, matches can be queued for normally. Matches can also be c
2020
2121
## Returning to Live Servers
2222

23-
If you want to return to the live servers, run the "PrivateSeverLauncher.bat" and select the "Launch Live" option. This will replace the Private Server executables with the Live executables.
23+
If you want to return to the live servers, run the "PrivateSeverLauncher.bat" and select the "Launch Live" option. You can also launch Dead by Daylight through Steam normally.

0 commit comments

Comments
 (0)