Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Palworld template #256

Closed
wants to merge 5 commits into from
Closed

Add Palworld template #256

wants to merge 5 commits into from

Conversation

adrianopteodoro
Copy link
Contributor

@ynixt
Copy link
Contributor

ynixt commented Jan 21, 2024

image

Add mkdir -p Pal/Saved/Config/LinuxServer/
@adrianopteodoro
Copy link
Contributor Author

@ynixt i've added mkdir -p on install, this path doesn't exist on clean install so need to be created before writing the config file.

Copy link

@Hope-IT-Works Hope-IT-Works left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

palworld/palworld.json Outdated Show resolved Hide resolved
palworld/palworld.json Outdated Show resolved Hide resolved
@zetix
Copy link

zetix commented Jan 25, 2024

Should remove creating the .ini file since Palworld comes with a default configuration in root directory.

The save file configuration is only for save specific settings, and reinstalling to update will replace any changes users made to the config.

@adrianopteodoro adrianopteodoro deleted the palworld_template branch January 25, 2024 17:44
@lauridskern
Copy link

why was this closed and not merged? It worked perfectly for me

@spusuf
Copy link
Contributor

spusuf commented Jan 27, 2024

The owner deleted the repository :(

why was this closed and not merged? It worked perfectly for me

Do you have a copy of the template?

@lauridskern
Copy link

code is still there, if you want to try

{
  "display": "Palworld Dedicated Server",
  "type": "srcds",
  "install": [
    {
      "appId": "1007",
      "type": "steamgamedl"
    },
    {
      "appId": "2394010",
      "type": "steamgamedl"
    },
    {
      "type": "command",
      "commands": ["chmod +x Pal/Binaries/Linux/PalServer-Linux-Test"]
    },
    {
      "type": "mkdir",
      "target": "Pal/Saved/Config/LinuxServer"
    },
    {
      "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": 15,
    "command": "./Pal/Binaries/Linux/PalServer-Linux-Test Pal -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS",
    "workingDirectory": "",
    "pre": [
      {
        "type": "steamgamedl",
        "appId": "1007"
      },
      {
        "type": "steamgamedl",
        "appId": "2394010"
      },
      {
        "type": "command",
        "commands": ["chmod +x Pal/Binaries/Linux/PalServer-Linux-Test"]
      }
    ],
    "post": [],
    "environmentVars": {}
  },
  "data": {
    "serverplayermaxnum": {
      "type": "integer",
      "desc": "Maximum number of players",
      "display": "Server Player Max Num",
      "required": true,
      "value": 32
    },
    "publicport": {
      "type": "integer",
      "desc": "What port to bind the server to",
      "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 <password>)",
      "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": {
    "type": "tty"
  },
  "requirements": {
    "os": "linux",
    "arch": "amd64"
  }
}

@au5ton
Copy link

au5ton commented Jan 28, 2024

I'm not sure if this is an issue with the template or with how I'm using it, but I get the following error when using the template:

Starting process: ./Pal/Binaries/Linux/PalServer-Linux-Test Pal -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS
Shutdown handler: initalize.
Refusing to run with the root privileges.

@spusuf
Copy link
Contributor

spusuf commented Jan 28, 2024

Refusing to run with the root privileges.

That's an issue with pufferpanel, it should not be running as root. Have you created a user and installed pufferpanel using it?

@au5ton
Copy link

au5ton commented Jan 29, 2024

@spusuf I'm running Pufferpanel in docker

@spusuf
Copy link
Contributor

spusuf commented Jan 29, 2024

@spusuf I'm running Pufferpanel in docker and that runs Pufferpanel as root

I'm running on bare metal (well in an nspawn-container) and it's flawless.

Try using docker run with the --user parameter

@au5ton
Copy link

au5ton commented Jan 29, 2024

Thanks for your help @spusuf, I went ahead and just decided to use https://github.com/thijsvanloef/palworld-server-docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants