Open frankbuma opened 1 year ago
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
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?
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.
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.
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
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!
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...
I´ve tried everything, but nothing still works. (Environment Variables, and Configfile) is there still no woraround for this problem?
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.
edit: ignore this, my problem was I needed to add this in the deployment yml:
- name: VALHEIM_PLUS_REPO
value: "Grantapher/ValheimPlus"
so after a while i tried to run valheim again and after a little update on the client side the server works perfectly fine again. Thanks for all the help! Have a nice day :-)
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:
What am i doing wrong and how can i get the config loaded again? I hope you guys can help me
Thanks in advance!