thijsvanloef / palworld-server-docker

A Docker Container to easily run a Palworld dedicated server.
https://hub.docker.com/r/thijsvanloef/palworld-server-docker
MIT License
2.43k stars 295 forks source link

ENV variable issues after update 0.18.0 #239

Closed thijsvanloef closed 9 months ago

thijsvanloef commented 9 months ago

Hi,

Due to a faulty PR the settings of some folks got messed up resulting in only the ./PalServer.sh parameters working to change settings.

This issue should be resolved in 0.19.1. However it does require that you do the following:

Thank you for your patience, a PR has been opened to hopefully fix all environment errors https://github.com/thijsvanloef/palworld-server-docker/pull/207.

dexterIshere commented 9 months ago

thx !

PulsarFTW commented 9 months ago

I've had time to do some testing now, and I can confirm that after deleting the existing config file, it works!

Thanks!

iamspido commented 9 months ago

Hey,

I think you mean palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini instead of palworld/Pal/Saved/Config/LinuxServer/PalworldWorldSettings.ini, right?

I don't have a palworld/Pal/Saved/Config/LinuxServer/PalworldWorldSettings.ini in that folder.

After deleting palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini, the server name, server password, and server description work fine. However, the setting BASE_CAMP_WORKER_MAXNUM: "20" in the docker-compose.yml under environment doesn't work on the server. Nevertheless, in palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini, the value BaseCampWorkerMaxNum=20 is correctly set.

Marc-- commented 9 months ago

Thanks for the fix, i confirm it's working fine with 0.19.1.

Lizardbutt commented 9 months ago

There's a better way to do this. Throw your default.env variables into the docker compose file for the value changes needed.

  1. Set wanted value changes from default.env into your docker-compose.yml file under environment:
  2. docker compose down --rmi all
  3. rm palworld/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
  4. docker compose up -d

I've confirmed three times over this works. Editing the .ini does not.

services:
   palworld:
      image: thijsvanloef/palworld-server-docker:latest
      restart: unless-stopped
      container_name: palworld-server
      stop_grace_period: 30s # Set to however long you are willing to wait for the container to gracefully stop
      ports:
        - 8211:8211/udp
        - 27015:27015/udp # Required if you want your server to show up in the community servers tab
      environment:
         - PUID=1000
         - PGID=1000
         - PORT=8211 # Optional but recommended
         - PLAYERS=16 # Optional but recommended
         - SERVER_PASSWORD= # Optional but recommended
         - MULTITHREADING=true
         - RCON_ENABLED=true
         - RCON_PORT=25575
         - TZ=UTC
         - DIFFICULTY=Normal # These are the three value changes I made. 
         - PAL_EGG_DEFAULT_HATCHING_TIME=5.000000 # and this one
         - DEATH_PENALTY=Item # and this one.
         - ADMIN_PASSWORD=
         - COMMUNITY=false  # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
         - SERVER_NAME=
         - SERVER_DESCRIPTION=
      volumes:
         - ./palworld:/palworld/