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 "--update" set update=1
powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update%
@REM powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update% > %filename%
@REM powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update%
powershell -ExecutionPolicy RemoteSigned -File wDayzManager.ps1 %update% > %filename%
popd

View File

@@ -8,7 +8,7 @@ steamCMD=Z:\SteamCMD
steamUser=w0lf_2k
appidGame=221100
appidServer=223350
rotateLogs=0
rotateLogs=1
daysAmount=7
rotatedLogsFolderName=RotatedLogs
; 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).
; 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.
updatePeriod=W
updatePeriod=D
updateDay=1
updateHour=4
updateHour=0
[ClientMods]
@CF=1559212036
@@ -55,6 +55,9 @@ serverCPU=2
startupClientMods=@CF;@VPPadminTools
startupServerMods=
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=
[Server-2]

View File

@@ -55,28 +55,24 @@ serverPort=2302
serverConfig=serverDZ.cfg
serverExeName=DayZServer_x64.exe
serverCPU=2
startupClientMods=@CF
startupClientMods=@CF;@Namalsk_Island;@Namalsk_Survival
startupServerMods=
additionalParams= -name=Server
; 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=Hardcore
[Server-2]
serverPort=2402
serverConfig=serverDZ.cfg
serverExeName=DayZServer_x64.exe
serverCPU=2
startupClientMods=@CF;@Namalsk_Island;@Namalsk_Survival
startupClientMods=@CF
startupServerMods=
additionalParams= -name=Server -AdminLog -FilePatching
; 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
namalskMission=
"
Add-Content -Path $iniFile -Value $content -Encoding UTF8
$content = $null
@@ -237,7 +233,8 @@ if ($rotateLogs) {
}
if (-not ([string]::IsNullOrEmpty($config.becFolderName))) {
$becLocation = "$($serverLocation)\$($config.becFolderName)"
$becFolderName = $config.becFolderName
$becLocation = "$($serverLocation)\$($becFolderName)"
}
if (-not ([string]::IsNullOrEmpty($config.atFolderName))) {
@@ -442,10 +439,6 @@ foreach ($srv in $servers) {
#region ### wDayzManager ###
#endregion
#region ### Dayz stats logs ###
#endregion
}
# Write-Host " instance: $($instance)"
@@ -487,12 +480,14 @@ foreach ($srv in $servers) {
# Starting servers
Set-Location -Path "$($serverLocation)"
$dayzProcess[$processID] = Start-Process -FilePath $dayz -ArgumentList $dayzArguments -PassThru
# Write-Host "$($dayzProcess[$processID]) = Start-Process -FilePath $($dayz) -ArgumentList $($dayzArguments) -PassThru"
# $dayzProcess[$processID]
# Starting BEC
if ($becLocation) {
Set-Location -Path "$($becLocation)"
$becProcess[$processID] = Start-Process -FilePath $bec -ArgumentList $becArguments -PassThru
# Write-Host "$($becProcess[$processID]) = Start-Process -FilePath $($bec) -ArgumentList $($becArguments) -PassThru"
# $becProcess[$processID]
}