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

Changes to .env file not being changed in game / in PalWorldSettings.ini #320

Closed
bigsby-exe opened this issue Feb 8, 2024 · 5 comments · Fixed by #325
Closed

Changes to .env file not being changed in game / in PalWorldSettings.ini #320

bigsby-exe opened this issue Feb 8, 2024 · 5 comments · Fixed by #325

Comments

@bigsby-exe
Copy link

Describe the bug

I have BASE_CAMP_WORKER_MAXNUM=20 set in my .env file however the PalWorldSettings.ini has it set to 15 and won't change when I change the env file.
Additionally if you change the PalWorldSettings.ini to set the base camp workers setting to 15 it will be reset the next time the container starts even if the env var has it set to 20. This file is in the persistent storage volume.

To Reproduce

  1. Run the container with default settings
  2. Change BASE_CAMP_WORKER_MAXNUM=20 in your .env file
  3. Restart the container
  4. observe the limit in game is still 15 and the PalWorldSettings.ini reflects this

Manual change of the file

  1. Stop the container
  2. Change the PalWorldSettings.ini to set BASE_CAMP_WORKER_MAXNUM=20
  3. Start the container
  4. Check the file again and it will have changed back to 15

Expected behavior

Setting the value in the env file will set the value in game and also in the ini file

Actual behavior

Changes to env don't seem to do anything and changing the ini file manually rolls it back on next restart

docker-compose.yml contents

version: "3.8"
services:
  palworld:
    image: thijsvanloef/palworld-server-docker:latest
    restart: unless-stopped
    container_name: palworld
    ports:
      - 8211:8211/udp
      - 27015:27015/udp
    env_file:
      - .env
    volumes:
      - /mnt/mediadisk/saves/palworld2:/palworld/
networks: {}

Additional context

Extract from .env file

ENABLE_AIM_ASSIST_KEYBOARD=False
DROP_ITEM_MAX_NUM=3000
DROP_ITEM_MAX_NUM_UNKO=100
BASE_CAMP_MAX_NUM=128
BASE_CAMP_WORKER_MAXNUM=20
DROP_ITEM_ALIVE_MAX_HOURS=1.000000
AUTO_RESET_GUILD_NO_ONLINE_PLAYERS=False
AUTO_RESET_GUILD_TIME_NO_ONLINE_PLAYERS=72.00000
@sonroyaalmerol
Copy link
Contributor

It's a dedicated server bug. BASE_CAMP_WORKER_MAXNUM needs to be changed directly onto the WorldOption save file for some reason. Somebody would need to write up some script to check the env vars, generate the WorldOption save file based on those env vars, then replace the WorldOption save file with the generated one.

For now, this might help: https://help.dathost.net/article/161-palworld-base-camp-workers-fix

The files you need should be located somewhere in the folder mounted on your docker container.

Doing this would most probably override all your env variables from your docker container and the server would only use the variables used on the generated WorldOption save file.

@Diyagi
Copy link
Contributor

Diyagi commented Feb 8, 2024

#325

@thijsvanloef thijsvanloef linked a pull request Feb 8, 2024 that will close this issue
@bigsby-exe
Copy link
Author

Thanks that fixed it

@Journalist-HK
Copy link

I still can't change the limit with BASE_CAMP_WORKER_MAX_NUM=20. The value in PalWorldSettings.ini has been changed to BaseCampWorkerMaxNum=20 as expected. Should I generate a WorldOption save file?

@Diyagi
Copy link
Contributor

Diyagi commented Feb 18, 2024

Yes, the fix was more for when Pocketpair fix this issue and the server starts reading BaseCampWorkerMaxNum in the ini file.
But for now if you want to modify it the only solution will be using an WorldOption.sav.

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 a pull request may close this issue.

4 participants