Palworld – Windows Dedicated Server / Helpful Scripts

Thought I’d share some Windows scripts I made to help with server hosting.

Helpful Scripts

The first script saves, shuts down, sends periodic messages until the shutdown, and then restarts the server.

Requirements:

  • ARRCON
  • RCON needs to be enabled on your Palworld server
  • Windows

Notes:

  • Be sure to adjust the timeouts if you adjust the shutdown timer.
  • Be sure to save this as a .bat file within the same directory where AARCON.exe resides.
  • You can then use Windows Task Scheduler to run this every 12 hours or whatever you prefer.
  • Change the directory where your .bat file resides that starts your server.
echo Saving Palworld Server... && ARRCON.exe -H 127.0.0.1 -P 25575 -p AdminPassword "save"
echo Palworld server Saved...
timeout 5
echo  Shutting Down Palworld Server... && ARRCON.exe -H 127.0.0.1 -P 25575 -p AdminPassword "shutdown 60 The_server_will_be_restarting_in_60_seconds"
timeout 30
echo Sending Restart Update Message... && ARRCON.exe -H 127.0.0.1 -P 25575 -p AdminPassword  "broadcast The_server_will_be_restarting_in_30_seconds"
timeout 20
echo Sending Restart Update Message... && ARRCON.exe -H 127.0.0.1 -P 25575 -p AdminPassword  "broadcast The_server_will_be_restarting_in_10_seconds"
timeout 20
echo Palworld Server Was Shutdown. Restarting server...
call "F:\palworld\Start Server.bat"
echo Palworld Server Started.
echo Exiting in 5 seconds...
timeout 5
exit

This next script checks for the Windows PalServer EXE service and if it detects it’s running does nothing. If it detects it isn’t running then it runs your .bat file that starts your server.

Notes:

  • Change the directory where your .bat file resides that starts your server.
  • You can then use Windows Task Scheduler to run this every 5 minutes or whatever you prefer.
@echo off
set task1=PalServer-Win64-Test-Cmd

tasklist | find /i "%task1%" > nul
if %errorlevel% neq 0 (
    echo %task1% is not running. Starting...
	call "F:\palworld\Start Server.bat"
) else (
    echo %task1% is already running.
)
echo exiting in 5 seconds...
timeout 5
exit

Be the first to comment

Leave a Reply

Your email address will not be published.


*