From 8e51e02a2d67dc76e9a5958eba93f0819b2d52ae Mon Sep 17 00:00:00 2001 From: Patrick Veilleux Date: Fri, 26 Jan 2024 17:20:58 -0500 Subject: [PATCH] Update comments --- templates/palworld.psm1 | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/templates/palworld.psm1 b/templates/palworld.psm1 index 978bf7e..cfa3ca5 100644 --- a/templates/palworld.psm1 +++ b/templates/palworld.psm1 @@ -1,9 +1,3 @@ -<# - Edit configuration in : .\servers\PalWorld\Pal\Saved\Config\WindowsServer\PalWorldSettings.ini - Instructions here - https://tech.palworldgame.com/optimize-game-balance -#> - #Server Name, Always Match the Launcher and config file name. $Name = $ServerCfg @@ -19,13 +13,13 @@ $ServerDetails = @{ #Server Name ServerName = "My PalWorld Server" - #Server Description (should be changed PalWorldSettings.ini if changed here after the first run) + #Server Description ServerDescription = "My PalWorld Server Description" - #Server Region (should be changed PalWorldSettings.ini if changed here after the first run) + #Server Region Region = "NA" - #Server Password (should be changed PalWorldSettings.ini if changed here after the first run) + #Server Password Password = "CHANGEME" #Maximum number of players @@ -37,15 +31,17 @@ $ServerDetails = @{ #Server Port Port = 8211 - #Rcon IP (Set RCONEnabled=True in PalWorldSettings.ini) + #Rcon IP ManagementIP = "127.0.0.1" #Rcon Port ManagementPort = "25575" - #Rcon Password (should be changed PalWorldSettings.ini if changed here after the first run) + #Rcon Password ManagementPassword = "CHANGEMETOO" + #EDIT OTHER SERVER SETTINGS AT THE BOTTOM OF THIS FILE + #--------------------------------------------------------- # Server Installation Details #--------------------------------------------------------- @@ -212,6 +208,9 @@ Add-Member -InputObject $Server -Name "WorkingDirectory" -Type NoteProperty -Val function Start-ServerPrep { Write-ScriptMsg "Writing config to $($Server.ConfigFolder)\PalWorldSettings.ini" + + # YOU MUST EDIT THE CONFIGURATION BELLOW AS THE FILE WILL BE OVERWRITTEN AT EACH LAUNCH. + $content ="[/Script/Pal.PalGameWorldSettings]`r`n" + 'OptionSettings=(' + 'Difficulty=None,' + @@ -277,6 +276,8 @@ function Start-ServerPrep { 'bUseAuth=True,' + 'BanListURL="https://api.palworldgame.com/api/banlist.txt")' + # YOU MUST EDIT THE CONFIGURATION ABOVE AS THE FILE WILL BE OVERWRITTEN AT EACH LAUNCH. + $content = $content.Replace('ServerName="Default Palworld Server"', "ServerName=`"$($Server.ServerName)`"") $content = $content.Replace('ServerDescription=""', "ServerDescription=`"$($Server.ServerDescription)`"") $content = $content.Replace('AdminPassword=""', "AdminPassword=`"$($Server.ManagementPassword)`"")