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

[bug] Configuration changes do not save #5

Closed
Moovry opened this issue Jul 10, 2019 · 1 comment
Closed

[bug] Configuration changes do not save #5

Moovry opened this issue Jul 10, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@Moovry
Copy link

Moovry commented Jul 10, 2019

Version
Minecraft 1.14.3 / Mouse Wheelie v1.24+1.14.3
Describe the bug
Mouse Wheelie configuration changes made through Mod Menu do not stick. Settings do not save.

To Reproduce

  1. Change configuration settings for Mouse Wheelie using Mod Menu
  2. Save changes in Mod Menu and return to the game
  3. Observe that configuration changes did not stick because mod behaves the same way as it did prior to attempting to change configuration
  4. Confirm that no configuration changes were saved by checking Mod Menu -> Mouse Wheelie
  5. Observe that %appdata%.minecraft\config\mousewheelie.hjson is an empty, blank file

Expected behavior
Saved configuration changes for Mouse Wheelie in Mod Menu should actually be saved.

Log

[20:36:35] [main/INFO]: Reloaded configs for mousewheelie
[20:38:26] [main/INFO]: [STDERR]: java.lang.ArithmeticException: / by zero
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.shadow.org.hjson.HjsonWriter.handleContainerLines(HjsonWriter.java:218)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.shadow.org.hjson.HjsonWriter.writeObject(HjsonWriter.java:145)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.shadow.org.hjson.HjsonWriter.save(HjsonWriter.java:107)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.shadow.org.hjson.HjsonWriter.save(HjsonWriter.java:81)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.shadow.org.hjson.JsonValue.writeTo(JsonValue.java:635)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.data.serializer.HjsonSerializer.write(HjsonSerializer.java:46)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.config.ConfigLoader.updateMainConfigFile(ConfigLoader.java:59)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.client.TweedClothBridge.lambda$save$20(TweedClothBridge.java:244)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.client.TweedClothBridge$$Lambda$1976/1463100964.accept(Unknown Source)
[20:38:26] [main/INFO]: [STDERR]: 	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
[20:38:26] [main/INFO]: [STDERR]: 	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.client.TweedClothBridge.save(TweedClothBridge.java:238)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.client.TweedClothBridge$$Lambda$1936/98383937.run(Unknown Source)
[20:38:26] [main/INFO]: [STDERR]: 	at me.shedaniel.clothconfig2.impl.ConfigBuilderImpl$1.onSave(ConfigBuilderImpl.java:183)
[20:38:26] [main/INFO]: [STDERR]: 	at me.shedaniel.clothconfig2.gui.ClothConfigScreen$1.onPress(ClothConfigScreen.java:182)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_4264.onClick(class_4264.java:15)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_339.mouseClicked(class_339.java:154)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_4069.mouseClicked(class_4069.java:27)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_312.method_1611(class_312.java:86)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_312$$Lambda$1908/1211349891.run(Unknown Source)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_437.wrapScreenError(class_437.java:441)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_312.method_1601(class_312.java:86)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_312$$Lambda$1607/1394059247.invoke(Unknown Source)
[20:38:26] [main/INFO]: [STDERR]: 	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)
[20:38:26] [main/INFO]: [STDERR]: 	at org.lwjgl.system.JNI.invokeV(Native Method)
[20:38:26] [main/INFO]: [STDERR]: 	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_1041.method_16001(class_1041.java:581)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_1041.method_15998(class_1041.java:406)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_310.method_15994(class_310.java:1023)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_310.method_1523(class_310.java:976)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_310.method_1514(class_310.java:411)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.client.main.Main.main(Main.java:154)
[20:38:26] [main/INFO]: [STDERR]: 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[20:38:26] [main/INFO]: [STDERR]: 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[20:38:26] [main/INFO]: [STDERR]: 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[20:38:26] [main/INFO]: [STDERR]: 	at java.lang.reflect.Method.invoke(Method.java:497)
[20:38:26] [main/INFO]: [STDERR]: 	at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:170)
[20:38:26] [main/INFO]: [STDERR]: 	at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:129)
[20:38:26] [main/INFO]: [STDERR]: 	at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
[20:38:26] [main/ERROR]: Failed to update config file mousewheelie.hjson
[20:38:26] [main/INFO]: [STDERR]: java.lang.ArithmeticException: / by zero
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.shadow.org.hjson.HjsonWriter.handleContainerLines(HjsonWriter.java:218)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.shadow.org.hjson.HjsonWriter.writeObject(HjsonWriter.java:145)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.shadow.org.hjson.HjsonWriter.save(HjsonWriter.java:107)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.shadow.org.hjson.HjsonWriter.save(HjsonWriter.java:81)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.shadow.org.hjson.JsonValue.writeTo(JsonValue.java:635)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.data.serializer.HjsonSerializer.write(HjsonSerializer.java:46)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.config.ConfigLoader.updateMainConfigFile(ConfigLoader.java:59)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.config.ConfigLoader.loadConfigs(ConfigLoader.java:37)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.client.TweedClothBridge.lambda$save$20(TweedClothBridge.java:245)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.client.TweedClothBridge$$Lambda$1976/1463100964.accept(Unknown Source)
[20:38:26] [main/INFO]: [STDERR]: 	at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
[20:38:26] [main/INFO]: [STDERR]: 	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.client.TweedClothBridge.save(TweedClothBridge.java:238)
[20:38:26] [main/INFO]: [STDERR]: 	at de.siphalor.tweed.client.TweedClothBridge$$Lambda$1936/98383937.run(Unknown Source)
[20:38:26] [main/INFO]: [STDERR]: 	at me.shedaniel.clothconfig2.impl.ConfigBuilderImpl$1.onSave(ConfigBuilderImpl.java:183)
[20:38:26] [main/INFO]: [STDERR]: 	at me.shedaniel.clothconfig2.gui.ClothConfigScreen$1.onPress(ClothConfigScreen.java:182)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_4264.onClick(class_4264.java:15)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_339.mouseClicked(class_339.java:154)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_4069.mouseClicked(class_4069.java:27)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_312.method_1611(class_312.java:86)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_312$$Lambda$1908/1211349891.run(Unknown Source)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_437.wrapScreenError(class_437.java:441)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_312.method_1601(class_312.java:86)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_312$$Lambda$1607/1394059247.invoke(Unknown Source)
[20:38:26] [main/INFO]: [STDERR]: 	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:36)
[20:38:26] [main/INFO]: [STDERR]: 	at org.lwjgl.system.JNI.invokeV(Native Method)
[20:38:26] [main/INFO]: [STDERR]: 	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3101)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_1041.method_16001(class_1041.java:581)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_1041.method_15998(class_1041.java:406)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_310.method_15994(class_310.java:1023)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_310.method_1523(class_310.java:976)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.class_310.method_1514(class_310.java:411)
[20:38:26] [main/INFO]: [STDERR]: 	at net.minecraft.client.main.Main.main(Main.java:154)
[20:38:26] [main/INFO]: [STDERR]: 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[20:38:26] [main/INFO]: [STDERR]: 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[20:38:26] [main/INFO]: [STDERR]: 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[20:38:26] [main/INFO]: [STDERR]: 	at java.lang.reflect.Method.invoke(Method.java:497)
[20:38:26] [main/INFO]: [STDERR]: 	at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:170)
[20:38:26] [main/INFO]: [STDERR]: 	at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:129)
[20:38:26] [main/INFO]: [STDERR]: 	at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)
[20:38:26] [main/ERROR]: Failed to update config file mousewheelie.hjson
[20:38:26] [main/INFO]: Reloaded configs for mousewheelie

latest.log

@Siphalor Siphalor transferred this issue from Siphalor/mouse-wheelie Jul 21, 2019
@Siphalor
Copy link
Owner

That's a Tweed bug I'm soon™️ going to fix.

A temporary fix is to delete the empty config file and let the mod recreate it.

@Siphalor Siphalor pinned this issue Jul 21, 2019
@Siphalor Siphalor added the bug Something isn't working label Jul 21, 2019
@Siphalor Siphalor unpinned this issue Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants