Fixed missing parameter 'becFolderName'.
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user