How to Auto Restart Dedicated Server
Since I couldn’t find any script online for how to auto save and restart your palworld server for windows. I made one. I have this running on a windows 2019 server. This will work with windows 10 & 11.
- First you will want to download a RCON client (I used ARRCON).
- Extract the Zip. I put the ARRCON.exe in my C drive. C:\ARRCON.exe
- Go to your PalWorldSettings.ini (located in PalServer\Pal\Saved\Config\WindowsServer)
- Right click it and edit. Find and Change RCONEnabled=False to RCONEnabled=True
- Set an AdminPassword look for AdminPassword=”PasswordHere”
- Save and close.
Open Notepad or Notepad++ input the following: (if you are not running this on the local server machine, change 127.0.0.1 to IP of machine that the server is on) (time is in seconds this one is setup for 4 hr restarts, change the 14100 to however many seconds you want the script to run)
:start
timeout 14100 > NUL
start ARRCON.exe -H 127.0.0.1 -P 25575 -p AdminPasswordHere "Broadcast ServerRestartIn5min."
timeout 240 > NUL
start ARRCON.exe -H 127.0.0.1 -P 25575 -p AdminPasswordHere "save"
timeout 5 > NUL
start ARRCON.exe -H 127.0.0.1 -P 25575 -p AdminPasswordHere "shutdown 60 ServerRestartIn1minLOGOUTNOW."
timeout 60 > NUL
start "" "location of your PalServer.exe"
goto start
Example of location of Palserver.exe:
- C:\Users\Administrator\Desktop\steamcmd\steamapps\common\PalServer\PalServer.exe
If you start your server with a .bat file just change Palserver.exe to your .bat file name.
Example:
- C:\Users\Administrator\Desktop\steamcmd\steamapps\common\PalServer\PalServerStart.bat
Save as ServerRestart.bat
Stat your server normally then run the serverrestart.bat
Be the first to comment