
Mob scaling isnt adjustable for me
Moldx3 opened this issue ยท 7 comments
Describe the bug
When chaning the number of mobscaling i receive the following error in the server console:
[18:18:50] [Server thread/ERROR] [ha.pm.co.re.TomlConfigHelper/]: Config failure: Using default config value due to parsing error: Not a number: SimpleCommentedConfig:{combat=1.0E-7}; Not a number: SimpleCommentedConfig:{combat=1.0E-4}; Not a number: SimpleCommentedConfig:{combat=0.001} missed input: SimpleCommentedConfig:{max_health=SimpleCommentedConfig:{combat=0.001}, attack_damage=SimpleCommentedConfig:{combat=1.0E-4}, movement_speed=SimpleCommentedConfig:{combat=1.0E-7}} missed input: SimpleCommentedConfig:{minecraft:generic=SimpleCommentedConfig:{max_health=SimpleCommentedConfig:{combat=0.001}, attack_damage=SimpleCommentedConfig:{combat=1.0E-4}, movement_speed=SimpleCommentedConfig:{combat=1.0E-7}}}
I added values above 1 and the standard values as decimals and the error comes up. Without changing the values the error message doesnt come up.
Expected behavior
The scaling should be changed instead it falls back to default values.
To Reproduce
Steps to reproduce the behavior:
- Go to 'serverconfig and adjust the values of pmmo-server.toml of mob scaling'
- Start the server join with a player and the message is shown in the server log
Screenshots
Versions:
- Minecraft: 1.20.1
- Loader: (47.3.10)
- PMMO: pmmo-1.20.1-1.4.25.jar
Additional context
We were playing on a 1.19.2 server before and i copied the values of the server (not override all just changed the values) on the older server it was working.
in 1.121 all of the toml configs are part of the datapack and they use JSON instead. there's an additional option in the genData
command to generate the configs.
Forge converts the raw numbers into the E-notation when it parses them, but does not read them unless it's part of the default value. You will have to use the raw number to get Forge's config system to accept your value.
Attached the one from 1.19.2 and the one causing problem 1.20.1
pmmo-server1.19.2.txt
pmmo-server1.20.1.txt
Cant upload .toml here you can download it here https://we.tl/t-nSP6iplTqK