[go: nahoru, domu]

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

Valheim_plus.cfg not loaded #627

Open
frankbuma opened this issue Apr 25, 2023 · 10 comments
Open

Valheim_plus.cfg not loaded #627

frankbuma opened this issue Apr 25, 2023 · 10 comments

Comments

@frankbuma
Copy link

Hi,
i have some issues with valheim plus regarding the config file. The server ist running but the settings which i made in the config file are not loaded (some things like the size of a chest...).
My compose:


version: '3'
services:
  valheim:
    image: lloesche/valheim-server
    container_name: valheim
    restart: always
    environment:
      - SERVER_NAME=valheim_buma
      - WORLD_NAME=Augustiner
      - STATUS_HTTP=true
      - SERVER_PUBLIC=true
      - VALHEIM_PLUS=true
      - VALHEIM_PLUS_RELEASE=latest
      - VALHEIM_PLUS_REPO=Grantapher/ValheimPlus
      - BEPINEX=false
      - STEAMCMD_ARGS=validate
      - BACKUPS_MAX_COUNT=0
      - BACKUPS_MAX_AGE=120
      - TZ=CET


    volumes:
      - /srv/dev-disk-by-label-Files/Config/Valheim/valheim-server-config:/config
    ports:
      - 2456-2458:2456-2458/udp

What am i doing wrong and how can i get the config loaded again?
I hope you guys can help me

Thanks in advance!

@draconb
Copy link
draconb commented Apr 25, 2023

I don't think it works by loading the config, but you have to send the config variables through the compose file.

/config/valheimplus/valheim_plus.cfg

Thats the file it updates

You can add the config settings like this:

  - VPCFG_Building_enabled=true
  - VPCFG_Building_noWeatherDamage=true
  - VPCFG_Building_maximumPlacementDistance=20
  - VPCFG_Building_pieceComfortRadius=24
  - VPCFG_Building_alwaysDropResources=true
  - VPCFG_Building_alwaysDropExcludedResources=true
  - VPCFG_Building_enableAreaRepair=true

@doughsay
Copy link

I have tried both methods (mounted volume containing the config file and environment variables). I'm using the latest image and Grantapher/ValheimPlus 0.9.9.15-alpha1. I see in the log files lines like the following:

...
Apr 26 06:09:28 supervisord: valheim-bootstrap DEBUG - Reading mod config from env variables prefixed with VPCFG_
Apr 26 06:09:28 supervisord: valheim-bootstrap DEBUG - Found [Inventory] enabled = true in environment
Apr 26 06:09:28 supervisord: valheim-bootstrap DEBUG - Found [Fermenter] autoDeposit = true in environment
Apr 26 06:09:28 supervisord: valheim-bootstrap DEBUG - Found [Smelter] maximumOre = 10 in environment
Apr 26 06:09:28 supervisord: valheim-bootstrap DEBUG - Found [SpinningWheel] maximumFlax = 50 in environment
Apr 26 06:09:28 supervisord: valheim-bootstrap DEBUG - Found [SpinningWheel] autoRange = 5 in environment
Apr 26 06:09:28 supervisord: valheim-bootstrap DEBUG - Found [Inventory] personalChestColumns = 4 in environment
Apr 26 06:09:28 supervisord: valheim-bootstrap DEBUG - Found [Smelter] coalUsedPerProduct = 2 in environment
...
etc
...
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus] Trying to load the configuration file
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus] Found config file at: '/opt/valheim/plus/BepInEx/config/valheim_plus.cfg'
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus] Loading config section Beehive
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus]   Section is enabled
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus]   Updating autoDeposit from False to True
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus]   Updating autoDepositRange from 10 to 5
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus] Loading config section Building
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus]   Section is enabled
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus]   Updating pieceComfortRadius from 10 to 15
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus]   Updating enableAreaRepair from False to True
...
etc
...
Apr 26 05:33:49 supervisord: valheim-server [Info   :Valheim Plus] Configuration file loaded succesfully.

Everything seems very clearly to be working and loading correctly, all values are being printed to the logs correctly. And yet when I log in to the server with my client (with matching valheim-plus version), none of the features are enabled....

Any ideas what could be happening? Is this a client issue or a server issue?

@draconb
Copy link
draconb commented Apr 30, 2023

I don't have the bepinex set to false and also am forcing server side config

  - VALHEIM_PLUS=true
  - VALHEIM_PLUS_REPO=Grantapher/ValheimPlus
  - VALHEIM_PLUS_RELEASE=tags/0.9.9.15
  - VPCFG=/config/valheimplus/valheim_plus.cfg
  - VPCFG_ValheimPlus_serverBrowserAdvertisement=false
  - VPCFG_Server_enforceMod=true

Maybe try that?

Also latest you are using is set to just 0.9.9.15 not 0.9.9.15-alpha1, or at least thats how its working if you go to https://github.com/Grantapher/ValheimPlus/releases/latest

So maybe try using that for both or update it to tags/0.9.9.15-alpha1 to force that version.

@trmitchell7
Copy link

I’ve been experiencing this as well with the Grantapher/ValheimPlus, seems the clients aren’t getting the config properly from the server. But the server is functioning like it’s supposed to.
For example if you set the speed at which a smelter processes materials, those changes are reflected amongst anyone connected to the server, but if you set it to accept something like 80 instead of 20; the clients all only see the default values.

When I ran it locally I saw the same behaviour, the host gets everything; but the clients only get the subtle things like different material processing or increased skill experience.

@frankbuma
Copy link
Author

I don't have the bepinex set to false and also am forcing server side config

  - VALHEIM_PLUS=true
  - VALHEIM_PLUS_REPO=Grantapher/ValheimPlus
  - VALHEIM_PLUS_RELEASE=tags/0.9.9.15
  - VPCFG=/config/valheimplus/valheim_plus.cfg
  - VPCFG_ValheimPlus_serverBrowserAdvertisement=false
  - VPCFG_Server_enforceMod=true

Maybe try that?

Also latest you are using is set to just 0.9.9.15 not 0.9.9.15-alpha1, or at least thats how its working if you go to https://github.com/Grantapher/ValheimPlus/releases/latest

So maybe try using that for both or update it to tags/0.9.9.15-alpha1 to force that version.

Hi,

first of all thanks for your help!
@draconb : i tried you suggestion but it did not work: the config is still not loaded

@draconb
Copy link
draconb commented May 8, 2023

https://github.com/Grantapher/ValheimPlus/releases/tag/0.9.9.15-alpha2

Looks like he broke it maybe in the alpha1 you were using, so looks like it should be fixed now!

@frankbuma
Copy link
Author

Hi,
i just tried it like this:

  - VALHEIM_PLUS_RELEASE=tags/0.9.9.15-alpha2

  - VALHEIM_PLUS_REPO=Grantapher/ValheimPlus
  
  - VPCFG=/config/valheimplus/valheim_plus.cfg
  
  - VPCFG_ValheimPlus_serverBrowserAdvertisement=false
  
  - VPCFG_Server_enforceMod=true

the config is still not loaded or working...

@BulletCatcher82
Copy link

I´ve tried everything, but nothing still works. (Environment Variables, and Configfile) is there still no woraround for this problem?

@HellDuke
Copy link
HellDuke commented Jun 11, 2023

Not quite a fix but a workaround. Instead of putting your configs into /config/valheimplus/valheim_plus.cfg update the values in /data/plus/BepInEx/config/valheim_plus.cfg and it should work.

After a break from Valheim I updated my server and client and noticed as well that the configs were not working, but if you update the default ones they work fine, so I guess it's just some override that does not work.

@ryancmoon
Copy link
ryancmoon commented Nov 15, 2023

edit: ignore this, my problem was I needed to add this in the deployment yml:

- name: VALHEIM_PLUS_REPO
  value: "Grantapher/ValheimPlus"

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

No branches or pull requests

7 participants