Hwyla

Hwyla

86M Downloads

weirdness with config loading/saving/resetting unexpectedly

Twisted-Code opened this issue ยท 3 comments

commented

Issue Description:

Wawla's config (yes I know it's a different mod, but @Darkhax said I should report this to you since your mod apparently handles the loading of both configs) keeps resetting every time I load a world. I keep having to reenable "show tooltip". Upon checking the config .json, it looks like my changes are being saved, but ignored when the world loads, to the point that if I go into the config GUI and don't change anything before closing it again, the default configuration is saved back to the .json
Might be because I'm joining a server (judging by the line "Received config from the server: {"wawla:hide_trap_chest":true,"minecraft:hide_infestations":true}" in my client log when I connect), but I don't see why that would cause my client config to be overwritten. At least, not intentionally

What happens:

dependent mod (Wawla)'s config is ignored/reset unexpectedly

What you expected to happen:

config is respected and not reset

Steps to reproduce:

  1. install this and Wawla (I doubt the other mods in the instance will affect it, but if you can't reproduce it, let me know)
  2. set up and join a dedicated server (single player might also work, but in my case it happened on a dedicated server I set up).
  3. try changing Wawla's "show tooltip" config option from the GUI that shows when you press NUMPAD0, or likely any other of the options.
  4. leave the world and rejoin
  5. Open the GUI again, note that the settings are back to default, and close it without changing anything
  6. If you pay attention to Wawa's config during this time, e.g. by opening it with Notepad++ and "Reloading from disk" at each stage, you'll see that the changes save okay, but they get reset after step 5
    ...

Affected Versions (Do not use "latest"):

  • Hwyla: forge-1.10.8-B72
  • Minecraft: 1.15.2
  • Forge: 31.2.36
  • Wawla: 3.0.4

Possible Conflicting Mods (Provide their version, as well)

commented

it doesn't seem to happen consistently; the config option I was trying to enable seems to have stayed enabled as of now, and I'm not sure what changed. and unfortunately I can't find the log file from the session in question. If you can't reproduce the issue, just close it and I'll make a follow-up if it happens again

commented

might have spoken too soon. It's happening again.
in fact, it seems to happen every time I teleport using MyCommands

commented

okay might have found the root problem: key bind that I kept triggering by accident. Like, frequently enough that even if there was another cause, I wouldn't be able to tell you for sure. I certainly haven't had any issues since changing the keybind, so I'm going to close this. I apologize for any inconvenience.