Fixed missing parameter 'becFolderName'.

This commit is contained in:
2024-12-07 11:05:34 +03:00
parent 71604d9b0b
commit d30783f0b2
3 changed files with 16 additions and 18 deletions

View File

@@ -25,7 +25,7 @@ if "%1" equ "-U" set update=1
if "%1" equ "-u" set update=1 if "%1" equ "-u" set update=1
if "%1" equ "--update" set update=1 if "%1" equ "--update" set update=1
powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update% @REM powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update%
@REM powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update% > %filename% powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update% > %filename%
popd popd

View File

@@ -8,7 +8,7 @@ steamCMD=Z:\SteamCMD
steamUser=w0lf_2k steamUser=w0lf_2k
appidGame=221100 appidGame=221100
appidServer=223350 appidServer=223350
rotateLogs=0 rotateLogs=1
daysAmount=7 daysAmount=7
rotatedLogsFolderName=RotatedLogs rotatedLogsFolderName=RotatedLogs
; rotatedLogsFolderName= ; rotatedLogsFolderName=
@@ -23,9 +23,9 @@ atFolderName=VPPAdminTools
; W = Weekly - Updates are checked weekly at the hours specified in parameter 'updateHour' (0 - 23). Parameter 'updateDay' specifies the day of the week (0 - 6, 0 = Sunday). ; W = Weekly - Updates are checked weekly at the hours specified in parameter 'updateHour' (0 - 23). Parameter 'updateDay' specifies the day of the week (0 - 6, 0 = Sunday).
; M = Monthly - Updates are checked monthly at the hours specified in parameter 'updateHour' (0 - 23). Parameter 'updateDay' specifies the day of the month (1 - 31. Be careful with February!). ; M = Monthly - Updates are checked monthly at the hours specified in parameter 'updateHour' (0 - 23). Parameter 'updateDay' specifies the day of the month (1 - 31. Be careful with February!).
; Any other value disables the updates. ; Any other value disables the updates.
updatePeriod=W updatePeriod=D
updateDay=1 updateDay=1
updateHour=4 updateHour=0
[ClientMods] [ClientMods]
@CF=1559212036 @CF=1559212036
@@ -55,6 +55,9 @@ serverCPU=2
startupClientMods=@CF;@VPPadminTools startupClientMods=@CF;@VPPadminTools
startupServerMods= startupServerMods=
additionalParams= -name=Server -adminLog additionalParams= -name=Server -adminLog
; Mission name for Namalsk Mod
; This is the name of the Namalsk mod mission. It can be 'Hardcore' or 'Regular', i.e. the names of folders in the '@Namalsk_Survival\Extras\' directory.
; If you are not using Namalsk mod, this parameter is ignored.
namalskMission= namalskMission=
[Server-2] [Server-2]

View File

@@ -55,28 +55,24 @@ serverPort=2302
serverConfig=serverDZ.cfg serverConfig=serverDZ.cfg
serverExeName=DayZServer_x64.exe serverExeName=DayZServer_x64.exe
serverCPU=2 serverCPU=2
startupClientMods=@CF startupClientMods=@CF;@Namalsk_Island;@Namalsk_Survival
startupServerMods= startupServerMods=
additionalParams= -name=Server additionalParams= -name=Server
; Mission name for Namalsk Mod ; Mission name for Namalsk Mod
; This is the name of the Namalsk mod mission. It can be 'Hardcore' or 'Regular', i.e. the names of folders in the '@Namalsk_Survival\Extras\' directory. ; This is the name of the Namalsk mod mission. It can be 'Hardcore' or 'Regular', i.e. the names of folders in the '@Namalsk_Survival\Extras\' directory.
; If you are not using Namalsk mod, this parameter is ignored. ; If you are not using Namalsk mod, this parameter is ignored.
namalskMission= namalskMission=Hardcore
[Server-2] [Server-2]
serverPort=2402 serverPort=2402
serverConfig=serverDZ.cfg serverConfig=serverDZ.cfg
serverExeName=DayZServer_x64.exe serverExeName=DayZServer_x64.exe
serverCPU=2 serverCPU=2
startupClientMods=@CF;@Namalsk_Island;@Namalsk_Survival startupClientMods=@CF
startupServerMods= startupServerMods=
additionalParams= -name=Server -AdminLog -FilePatching additionalParams= -name=Server -AdminLog -FilePatching
namalskMission=
; Mission name for Namalsk Mod
; This is the name of the Namalsk mod mission. It can be 'Hardcore' or 'Regular', i.e. the names of folders in the '@Namalsk_Survival\Extras\' directory.
; If you are not using Namalsk mod, this parameter is ignored.
namalskMission=Hardcore
" "
Add-Content -Path $iniFile -Value $content -Encoding UTF8 Add-Content -Path $iniFile -Value $content -Encoding UTF8
$content = $null $content = $null
@@ -237,7 +233,8 @@ if ($rotateLogs) {
} }
if (-not ([string]::IsNullOrEmpty($config.becFolderName))) { if (-not ([string]::IsNullOrEmpty($config.becFolderName))) {
$becLocation = "$($serverLocation)\$($config.becFolderName)" $becFolderName = $config.becFolderName
$becLocation = "$($serverLocation)\$($becFolderName)"
} }
if (-not ([string]::IsNullOrEmpty($config.atFolderName))) { if (-not ([string]::IsNullOrEmpty($config.atFolderName))) {
@@ -442,10 +439,6 @@ foreach ($srv in $servers) {
#region ### wDayzManager ### #region ### wDayzManager ###
#endregion #endregion
#region ### Dayz stats logs ###
#endregion
} }
# Write-Host " instance: $($instance)" # Write-Host " instance: $($instance)"
@@ -487,12 +480,14 @@ foreach ($srv in $servers) {
# Starting servers # Starting servers
Set-Location -Path "$($serverLocation)" Set-Location -Path "$($serverLocation)"
$dayzProcess[$processID] = Start-Process -FilePath $dayz -ArgumentList $dayzArguments -PassThru $dayzProcess[$processID] = Start-Process -FilePath $dayz -ArgumentList $dayzArguments -PassThru
# Write-Host "$($dayzProcess[$processID]) = Start-Process -FilePath $($dayz) -ArgumentList $($dayzArguments) -PassThru"
# $dayzProcess[$processID] # $dayzProcess[$processID]
# Starting BEC # Starting BEC
if ($becLocation) { if ($becLocation) {
Set-Location -Path "$($becLocation)" Set-Location -Path "$($becLocation)"
$becProcess[$processID] = Start-Process -FilePath $bec -ArgumentList $becArguments -PassThru $becProcess[$processID] = Start-Process -FilePath $bec -ArgumentList $becArguments -PassThru
# Write-Host "$($becProcess[$processID]) = Start-Process -FilePath $($bec) -ArgumentList $($becArguments) -PassThru"
# $becProcess[$processID] # $becProcess[$processID]
} }