
ServerConfig File Resetting
Blueberrypie255 opened this issue · 16 comments
Hi! I have added this mod nito a server, and I have found a problem. When I reset the server with a changed serverconfig file, the changed file gets reset back to the old one. Can you fix this?
Configs are managed by Forge. Mods only hooks into them, so this is not likely related to the mod.
I can try to help you track down the problem. I'll need more information, though.
Which versions of the mod and forge are you using?
Where, exactly, is the config file that you are modifying located and what is the filename?
I am using the file inside the world settings. When i reset my server (using shockbyte for hosting; forge version 39.0.76; mod version "nutritionalbalance-1.18-3.0.2.jar"). Also, I changed the engorge in the config, but the effect still comes at 170 NU (the default). Why is this happening? I have linked a copy of the nutritionalbalance-server.toml (saved as a zip file). The only issue I have found is the engorge and this config file resetting when I restart my server.
nutritionalbalance-server.zip
It looks like you changed a comment on line 19 which should read:
#Engorgement value, above which bad affects can occur.(default:170.0)
Forge is really finicky about comment values. That might be the problem, though maybe you changed that to try to fix this problem(?).
Just to be clear, all the setting except engorgement value are working correctly (before it gets reset), right?
You might want to try also adding your modified server config file into the "defaultconfigs" folder under the server instance root direct, just in case some mod is trying to reset configs from there.
So I can move the worldconfig file into the Config file? Will this break anything?
Specifically, a folder called "defaultconfigs". This is different than the "config" folder. Normally, it's where you would put server configs that you want all new worlds to get.
Do you have Discord? I would like to screenshare my screen. I do not see a "defaultconfigs" folder.
It doesn't exist by default. You need to create it.
Also, you can try this file. I reset everything except the values you changed. This can help rule out any issues with the config file itself.
nutritionalbalance-server.toml.zip
Yes. That's where the defaultconfigs folder should be. Make sure you fix that comment though or use the file that I sent.
Let me try... I will tell you in about 5 minutes after the server restarts.
K. Feel free to join our Discord server: https://discord.gg/txjRhjR
Might be a better forum for this.