Nutritional Balance

Nutritional Balance

2M Downloads

ServerConfig File Resetting

Blueberrypie255 opened this issue · 16 comments

commented

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?

commented

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?

commented

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

commented

Not necessarily. I would replace it with the one I sent though.

commented

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.

commented

So I can move the worldconfig file into the Config file? Will this break anything?

commented

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.

commented

Do you have Discord? I would like to screenshare my screen. I do not see a "defaultconfigs" folder.

commented

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

commented

I should create the file in my default directory? Sending a picture.
Uploading pic.PNG…

commented

I should make a new folder here? The world is BlueCraft MineColonies.

commented

There is the picture.

commented

pic

commented

Yes. That's where the defaultconfigs folder should be. Make sure you fix that comment though or use the file that I sent.

commented

Let me try... I will tell you in about 5 minutes after the server restarts.

commented

Should I delete the config in my world folder?

commented

K. Feel free to join our Discord server: https://discord.gg/txjRhjR
Might be a better forum for this.