maruohon / litematica

A modern client-side schematic mod for Minecraft
GNU Lesser General Public License v3.0
689 stars 191 forks source link

1.21 Scroll wheel not working #867

Closed CreefYT closed 1 day ago

CreefYT commented 3 days ago

Minecraft version - 1.21

Mod version and malilib version - litematica-fabric-1.21-0.18.999-sakura.12.jar & malilib-fabric-1.21-0.19.999-sakura.6

sakura-ryoko commented 3 days ago

It seems like a configuration issue, as the scrolling tool modes works fine in my own testing.

maruohon commented 3 days ago

Check your operationModeChangeModifier hotkey, is it still bound to left Ctrl? That's the key you hold while scrolling to change the tool mode. Although if Alt + scroll nudge doesn't work either, then you would have multiple hotkeys unset for some reason...

CreefYT commented 3 days ago

Check your operationModeChangeModifier hotkey, is it still bound to left Ctrl? That's the key you hold while scrolling to change the tool mode. Although if Alt + scroll nudge doesn't work either, then you would have multiple hotkeys unset for some reason...

Yes I checked that hotkey already. Also tried to change it to another and didn't work.

maruohon commented 3 days ago

How many other mods do you have, can you try without most other mods than the "masa mods" suite? It kind of sounds like it might be a conflict with the mouse scroll event handler with something, if all scrolling functionality is broken. That's assuming you do see the tool HUD when you are holding the item, like you mentioned you do.

Basically seeing the tool HUD while holding the item is an indication that the tool is enabled and recognized (assuming you are not in Schematic Edit mode, as in that mode it always shows), so the only remaining possibilities are the hotkey not being activated, or the scroll events just not firing. I assume other Litematica hotkeys still work, for example the main menu hotkey? So all hotkeys aren't broken?

CreefYT commented 2 days ago

How many other mods do you have, can you try without most other mods than the "masa mods" suite? It kind of sounds like it might be a conflict with the mouse scroll event handler with something, if all scrolling functionality is broken. That's assuming you do see the tool HUD when you are holding the item, like you mentioned you do.

Basically seeing the tool HUD while holding the item is an indication that the tool is enabled and recognized (assuming you are not in Schematic Edit mode, as in that mode it always shows), so the only remaining possibilities are the hotkey not being activated, or the scroll events just not firing. I assume other Litematica hotkeys still work, for example the main menu hotkey? So all hotkeys aren't broken?

As I said in my first post, I tried removing all mods from the mods folder apart from litematica and malilib and still had the same problem. I can click M and go to the menu and swap tool modes through there so it is usable just really annoying not being able to use the scroll wheel with commands. It just scroll in the hotbar even to I press CTRL with the stick in hand when I see the overlay.

sakura-ryoko commented 2 days ago

Still, I cannot replicate the issue. Tweakeroo, Lithium, and all installed.

maruohon commented 2 days ago

What are your mouse scroll settings set to in the vanilla controls menu? (sensitivity and is discrete scrolling enabled?)

CreefYT commented 2 days ago

What are your mouse scroll settings set to in the vanilla controls menu? (sensitivity and is discrete scrolling enabled?)

Screenshot 2024-07-04 012054

discrete scrolling was disabled but turning it on didn't fix it

maruohon commented 2 days ago

Try enabling the mouseScrollDebug option in the malilib configs (A + C) and then do some scrolling up/down and post the debug output from the game console/log.

CreefYT commented 2 days ago

grafik

Do you mean this?

maruohon commented 2 days ago

Yes, and that looks normal, malilib is receiving the scrolls and the amount is +/- 1.0 so it's fine there. So that just leaves either Litematica mouse scroll handler not being registered, or it still being a hotkey issue somehow. You haven't modified the advanced settings for those modifier hotkeys, right? The small colored widget next to the hotkey button, does it have a white or an orange outline? If it's orange, then right click it to reset it to the defaults.

sakura-ryoko commented 2 days ago

The settings that masa is referring to should match this screen shot:

2024-07-04_11 48 38

If it does not, Right Click to set Defaults.

CreefYT commented 1 day ago

Alright,

for some reason every one of those squares wre turned orange and I don't know how that happened. I reset every setting and now it works! Thank you.