Created
February 12, 2024 17:07
-
-
Save mindfulvector/e881aa2dfcb61c78bdf86f44728f03fa to your computer and use it in GitHub Desktop.
palworld server startup script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM This assumes Steam is installed to C:\Bin | |
REM It also assumes S3Express is installed to C:\Bin\S3Express | |
REM You need to launch S3Express and run saveauth once to enter your authentication. | |
REM If you use non-AWS S3 compatible service, configure the endpoint as well in S3Express. | |
REM | |
REM The script also assumes that scoop is installed in your user directory | |
REM and that you have run `scoop install 7zip` | |
REM | |
REM Create this directory for backups to work: | |
REM C:\Backup\palworld\ | |
@ECHO OFF | |
REM Palworld All-in-one Batch File | |
ECHO Do backups... | |
set SOURCE_DIR="C:\Bin\steamapps\common\PalServer\Pal\Saved\SaveGames\" | |
set BACKUP_DIR="C:\Backup\palworld\" | |
set DATE=%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2% | |
%USERPROFILE%\scoop\apps\7zip\current\7z.exe a -tzip "%BACKUP_DIR%\backup_%DATE%.zip" %SOURCE_DIR% | |
ECHO Upload backups... | |
REM Change SERVERNAME to your server name, "SERVERNAME-palworld-backups" must match the name of your bucket | |
C:\Bin\S3Express\S3Express.exe "put %BACKUP_DIR%\* /SERVERNAME-palworld-backups/backups/ -onlydiff -showfiles" -exit | |
ECHO Update palworld server... | |
C:\Bin\steamcmd.exe +login anonymous +app_update 2394010 +quit | |
ECHO Start the server... | |
CD C:\Bin\steamapps\common\PalServer | |
REM Change 12345 to a custom port | |
REM Change AdminPassword567890to a new, hard to guess admin password | |
REM Change ServerPassword1234 to an easy to remember server password | |
C:\Bin\steamapps\common\PalServer\PalServer.exe -ServerName="Your Server Name" -port=12345 -players=8 -log -nosteam -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS EpicApp=PalServer -AdminPassword=AdminPassword567890 -ServerPassword=ServerPassword1234 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment