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

Configuration file .toml is not correct #8

Open
Timkokain opened this issue Jan 7, 2023 · 1 comment
Open

Configuration file .toml is not correct #8

Timkokain opened this issue Jan 7, 2023 · 1 comment

Comments

@Timkokain
Copy link

Timkokain commented Jan 7, 2023

The forge server prints out a message:

[main/WARN] [ne.mi.co.ForgeConfigSpec/CORE]: Configuration file /data/config/rottencreatures-common.toml is not correct. Correcting

At the same time, he tries to re-create the mod's settings file. But it does it wrong.
I think the mod generates a settings file with custom representations of setting names instead of key names.
This is what it generates:

["Mob Spawns"]
	#determines how often will Burneds spawn
	"Burned Weight" = 20
	#determines how often will Frostbittens spawn
	"Frostbitten Weight" = 80
	#determines how often will Glacial Hunters spawn
	"Glacial Hunter Weight" = 20
	#determines how often will Swampies spawn
	"Swampy Weight" = 80
	#determines how often will Undead Miners spawn
	"Undead Miner Weight" = 20
	#determines how often will Mummies spawn
	"Mummy Weight" = 20
	#determines how often will Dead Beard spawn
	"Dead Beard Weight" = 1
	#determines the chance of spawning for Immortals
	"Immortal Chance" = 0.025

and this is how i try to fixed it:

[mobSpawns]
	#determines how often will Burneds spawn
	burned_weight = 20
	#determines how often will Frostbittens spawn
	frostbitten_weight = 80
	#determines how often will Glacial Hunters spawn
	glacial_hunter_weight = 20
	#determines how often will Swampies spawn
	swampy_weight = 80
	#determines how often will Undead Miners spawn
	undead_miner_weight = 20
	#determines how often will Mummies spawn
	mummy_weight = 20
	#determines how often will Dead Beard spawn
	dead_beard_weight = 1
	#determines the chance of spawning for Immortals
	immortal_chance = 0.025

But it did not help. When the server starts, it continues to produce backup copies of the settings.

@Timkokain
Copy link
Author

Timkokain commented Jan 7, 2023

And here is the message in the logs:

 [main/WARN] [ne.mi.co.ForgeConfigSpec/CORE]: Incorrect key Mob Spawns.Immortal Chance was corrected from 0.025 to its default, 0.025. 

i don't think it should be like that

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

1 participant