From a176664dfc425410b9f591e2bb73cfe2484da9cd Mon Sep 17 00:00:00 2001 From: Adriano Teodoro Date: Fri, 19 Jan 2024 22:14:40 -0300 Subject: [PATCH 1/5] Add palworld template --- palworld/README.md | 17 +++++++++++++++ palworld/palworld.json | 48 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 palworld/README.md create mode 100644 palworld/palworld.json diff --git a/palworld/README.md b/palworld/README.md new file mode 100644 index 00000000..428ed32b --- /dev/null +++ b/palworld/README.md @@ -0,0 +1,17 @@ +# Palworld Dedicated Server + +## Template OS suport + +This template only works for the following operating systems: + +- Linux + +## Server configurations + +Edit file located in `Pal/Saved/Config/LinuxServer/PalWorldSettings.ini` and check the optimization guide in [More Info](#more-info) links. + +## More info + +- [Palworld tech guide - Dedicated server guide - Linux](https://tech.palworldgame.com/dedicated-server-guide#linux) +- [Palworld tech guide - Server commands](https://tech.palworldgame.com/server-commands) +- [Palworld tech guide - Optimize game balance](https://tech.palworldgame.com/optimize-game-balance) \ No newline at end of file diff --git a/palworld/palworld.json b/palworld/palworld.json new file mode 100644 index 00000000..fa4a92dc --- /dev/null +++ b/palworld/palworld.json @@ -0,0 +1,48 @@ +{ + "id": "1c798222", + "display": "Palworld Dedicated Server", + "type": "srcds", + "install": [ + { + "appId": "2394010", + "type": "steamgamedl" + }, + { + "commands": [ + "chmod +x PalServer.sh" + ], + "type": "command" + } + ], + "run": { + "stopCode": 9, + "command": "./PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS players=${maxplayers} port=${port}", + "workingDirectory": "", + "pre": [], + "post": [], + "environmentVars": {} + }, + "data": { + "maxplayers": { + "type": "integer", + "desc": "Maximum number of players", + "display": "Max Players", + "required": true, + "value": 32 + }, + "port": { + "type": "integer", + "desc": "What port to bind the server to", + "display": "Port", + "required": true, + "value": 8211 + } + }, + "environment": { + "type": "tty" + }, + "requirements": { + "os": "linux", + "arch": "amd64" + } +} \ No newline at end of file From 96583c06434a34a49b239e2d1bf65de7034a4387 Mon Sep 17 00:00:00 2001 From: Adriano Teodoro Date: Fri, 19 Jan 2024 23:39:28 -0300 Subject: [PATCH 2/5] Update palworld template --- palworld/palworld.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/palworld/palworld.json b/palworld/palworld.json index fa4a92dc..c93bdd56 100644 --- a/palworld/palworld.json +++ b/palworld/palworld.json @@ -1,8 +1,11 @@ { - "id": "1c798222", "display": "Palworld Dedicated Server", "type": "srcds", "install": [ + { + "appId": "1007", + "type": "steamgamedl" + }, { "appId": "2394010", "type": "steamgamedl" From 78bc31178588b6061017e4dbb0bae6b0fe29b499 Mon Sep 17 00:00:00 2001 From: Adriano Teodoro Date: Sat, 20 Jan 2024 01:09:02 -0300 Subject: [PATCH 3/5] Update template file --- palworld/palworld.json | 73 +++++++++++++++++++++++++++++++++++------- 1 file changed, 62 insertions(+), 11 deletions(-) diff --git a/palworld/palworld.json b/palworld/palworld.json index c93bdd56..1d85ae68 100644 --- a/palworld/palworld.json +++ b/palworld/palworld.json @@ -11,34 +11,85 @@ "type": "steamgamedl" }, { - "commands": [ - "chmod +x PalServer.sh" - ], + "commands": ["chmod +x PalServer.sh"], "type": "command" + }, + { + "type": "writefile", + "text": "[/Script/Pal.PalGameWorldSettings]\nOptionSettings=(Difficulty=None,DayTimeSpeedRate=1.000000,NightTimeSpeedRate=1.000000,ExpRate=1.000000,PalCaptureRate=1.000000,PalSpawnNumRate=1.000000,PalDamageRateAttack=1.000000,PalDamageRateDefense=1.000000,PlayerDamageRateAttack=1.000000,PlayerDamageRateDefense=1.000000,PlayerStomachDecreaceRate=1.000000,PlayerStaminaDecreaceRate=1.000000,PlayerAutoHPRegeneRate=1.000000,PlayerAutoHpRegeneRateInSleep=1.000000,PalStomachDecreaceRate=1.000000,PalStaminaDecreaceRate=1.000000,PalAutoHPRegeneRate=1.000000,PalAutoHpRegeneRateInSleep=1.000000,BuildObjectDamageRate=1.000000,BuildObjectDeteriorationDamageRate=1.000000,CollectionDropRate=1.000000,CollectionObjectHpRate=1.000000,CollectionObjectRespawnSpeedRate=1.000000,EnemyDropItemRate=1.000000,DeathPenalty=All,bEnablePlayerToPlayerDamage=False,bEnableFriendlyFire=False,bEnableInvaderEnemy=True,bActiveUNKO=False,bEnableAimAssistPad=True,bEnableAimAssistKeyboard=False,DropItemMaxNum=3000,DropItemMaxNum_UNKO=100,BaseCampMaxNum=128,BaseCampWorkerMaxNum=15,DropItemAliveMaxHours=1.000000,bAutoResetGuildNoOnlinePlayers=False,AutoResetGuildTimeNoOnlinePlayers=72.000000,GuildPlayerMaxNum=20,PalEggDefaultHatchingTime=72.000000,WorkSpeedRate=1.000000,bIsMultiplay=False,bIsPvP=False,bCanPickupOtherGuildDeathPenaltyDrop=False,bEnableNonLoginPenalty=True,bEnableFastTravel=True,bIsStartLocationSelectByMap=True,bExistPlayerAfterLogout=False,bEnableDefenseOtherGuildPlayer=False,CoopPlayerMaxNum=4,ServerPlayerMaxNum=${serverplayermaxnum},ServerName=\"${servername}\",ServerDescription=\"${serverdescription}\",AdminPassword=\"${adminpassword}\",ServerPassword=\"${serverpassword}\",PublicPort=${publicport},PublicIP=\"${publicip}\",RCONEnabled=False,RCONPort=25575,Region=\"\",bUseAuth=True,BanListURL=\"https://api.palworldgame.com/api/banlist.txt\")\n", + "target": "Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" } ], "run": { - "stopCode": 9, - "command": "./PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS players=${maxplayers} port=${port}", + "stopCode": 15, + "command": "./PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS", "workingDirectory": "", - "pre": [], + "pre": [ + { + "appId": "1007", + "type": "steamgamedl" + }, + { + "type": "steamgamedl", + "appId": "2394010" + }, + { + "commands": ["chmod +x PalServer.sh"], + "type": "command" + } + ], "post": [], "environmentVars": {} }, "data": { - "maxplayers": { + "serverplayermaxnum": { "type": "integer", "desc": "Maximum number of players", - "display": "Max Players", + "display": "Server Player Max Num", "required": true, "value": 32 }, - "port": { + "publicport": { "type": "integer", "desc": "What port to bind the server to", - "display": "Port", + "display": "Public Port", "required": true, "value": 8211 + }, + "publicip": { + "type": "string", + "desc": "What address to bind the server to (leave blank for auto)", + "display": "Public IP", + "required": false, + "value": "" + }, + "servername": { + "type": "string", + "desc": "You server name that will show on server list", + "display": "Server Name", + "required": true, + "value": "Default Palworld Server" + }, + "serverdescription": { + "type": "string", + "desc": "What is shown when selecting the server in the list.", + "display": "Server Description", + "required": true, + "value": "" + }, + "adminpassword": { + "type": "string", + "desc": "Sets a Admin Password to be able to use commands in game (use command /AdminPassword )", + "display": "Admin Password", + "required": true, + "value": "" + }, + "serverpassword": { + "type": "string", + "desc": "Sets a Server Password to make it private.", + "display": "Server Password", + "required": false, + "value": "" } }, "environment": { @@ -48,4 +99,4 @@ "os": "linux", "arch": "amd64" } -} \ No newline at end of file +} From 27e970b5e659d38b5374d39faa1cede718058ebd Mon Sep 17 00:00:00 2001 From: Adriano Teodoro Date: Mon, 22 Jan 2024 15:47:40 -0300 Subject: [PATCH 4/5] Add mkdir -p to create config file path on install Add mkdir -p Pal/Saved/Config/LinuxServer/ --- palworld/palworld.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/palworld/palworld.json b/palworld/palworld.json index 1d85ae68..2f486293 100644 --- a/palworld/palworld.json +++ b/palworld/palworld.json @@ -11,7 +11,7 @@ "type": "steamgamedl" }, { - "commands": ["chmod +x PalServer.sh"], + "commands": ["chmod +x PalServer.sh && mkdir -p Pal/Saved/Config/LinuxServer"], "type": "command" }, { From d4b8c6dcf14e0b0f726bf505dba7c1f7b3abf4a0 Mon Sep 17 00:00:00 2001 From: Adriano Teodoro Date: Wed, 24 Jan 2024 01:35:31 -0300 Subject: [PATCH 5/5] Fix requested changes --- palworld/palworld.json | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/palworld/palworld.json b/palworld/palworld.json index 2f486293..f47c14fc 100644 --- a/palworld/palworld.json +++ b/palworld/palworld.json @@ -11,8 +11,12 @@ "type": "steamgamedl" }, { - "commands": ["chmod +x PalServer.sh && mkdir -p Pal/Saved/Config/LinuxServer"], - "type": "command" + "type": "command", + "commands": ["chmod +x Pal/Binaries/Linux/PalServer-Linux-Test"] + }, + { + "type": "mkdir", + "target": "Pal/Saved/Config/LinuxServer" }, { "type": "writefile", @@ -22,20 +26,20 @@ ], "run": { "stopCode": 15, - "command": "./PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS", + "command": "./Pal/Binaries/Linux/PalServer-Linux-Test Pal -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS", "workingDirectory": "", "pre": [ { - "appId": "1007", - "type": "steamgamedl" + "type": "steamgamedl", + "appId": "1007" }, { "type": "steamgamedl", "appId": "2394010" }, { - "commands": ["chmod +x PalServer.sh"], - "type": "command" + "type": "command", + "commands": ["chmod +x Pal/Binaries/Linux/PalServer-Linux-Test"] } ], "post": [],