RelativityMC / C2ME-fabric

A Fabric mod designed to improve the chunk performance of Minecraft.
MIT License
513 stars 42 forks source link

c2me.toml Config file doesn't save my changes. #305

Closed CalebAShepherd closed 2 months ago

CalebAShepherd commented 2 months ago

Describe the bug A clear and concise description of what the bug is. I am trying to increase the maxViewDistance in [clientSideConfig.modifyMaxVDConfig] but when I change the setting and open the game it reverts automatically to 32.

To Reproduce Steps to reproduce the behavior:

  1. Change maxViewDistance from 32 to 128 under [clientSideConfig.modifyMaxVDConfig]
  2. Run game
  3. 128 reverts back to 32 automatically in the config file

Expected behavior I expected the max render distance in video settings to change to 128.

Runtime info (please complete the following information):

Crash reports / logs Game doesn't crash.

Other mods Fabric API

Checklist

ishland commented 2 months ago

Please provide logs anyway even if it doesn't crash. How are you modifying the config file?

CalebAShepherd commented 2 months ago

game log: https://pastebin.com/0sQQcpMJ

I'm simply opening the config file (c2me.toml) in Notepad, changing the number and saving it. But after I save it and open the game, it automatically changes itself back.

ishland commented 2 months ago

The number? All default entries have a placeholder value "default" rather than a number. Modifying the value in the comment have no effect.

This is how you do it:

maxViewDistance = 128

Full reference for toml configuration files: https://toml.io/en/

CalebAShepherd commented 2 months ago

Thank you so much, that makes perfect sense. I'll give it a try

CalebAShepherd commented 2 months ago

Worked perfectly. Thank you