Hidden Recipe Book (Forge)

Hidden Recipe Book (Forge)

386k Downloads

GUI Clock & GUI Compass incompatibility with Auto HUD

Crendgrim opened this issue · 4 comments

commented

Information

Minecraft version: 1.20.2 (probably also earlier versions, didn't test specifically)
Modloader: Forge (possibly NeoForge)
Forge version: 48.0.1
Environment: Singleplayer

First mod name: GUI Glock & GUI Compass
First mod version: 4.3

Second mod name: Auto HUD
Second mod version: 6.3

Description

When Auto HUD is in "move" mode, the text overlay rendered by the clock and compass mods is duplicated and offset, see [1]. This happens because these mods render on every GUI Overlay Post event [2] (equivalently, for every pre event for Gui Compass). However, such an event is triggered for every GUI element (hotbar, health, food, player list, boss bar, ...). This means that GUI Clock and GUI Compass each render their text many times per render pass, rather than once. Since Auto HUD is moving individual elements, the PoseStacks get unaligned, surfacing this issue. This is the same problem that occured with MineMenu [3]; see the pull request in [4] for a potential way to fix this.

[1] Crendgrim/AutoHUD#77
[2] guiclock/forge/events/ForgeGUIEvent.java
[3] Crendgrim/AutoHUD#74
[4] GirafiStudios/MineMenu#159

commented

hello! i have come across this issue with the GUI mods and Auto HUD
i really hope this could still get fixed

commented

Disregard the suggested way to fix this: I recently learned about RegisterGuiOverlayEvent which seems to be the best option to, well, register a new gui overlay.

commented

I am experiencing the same issue with these mods (v4.3), but I do not use Auto HUD. I do have Inventory HUD+ installed, but it doesn't have something like "move mode" as far as I can tell.

Edit:
I tested my mods with it, and identified the conflict. It's a bug fix mod I have called Raised, which fixes a bug introduced several versions ago in a post 1.7 snapshot that causes the hotbar to be positioned 2 pixels below the bottom of the screen (https://bugs.mojang.com/browse/MC-67532). It claims to be fixed post 1.20.1, but it looks the same to me in 1.20.1 and 1.20.2, Raised is still being updated, and the difference with the mod installed is noticeable. Although I suppose it's a very minor issue compared to the moderate issue of making your mods unreadable, so I guess I'll leave Raised out until you can update your mods.

commented

I have also been waiting for this to be fixed for the past year.
Dropping a comment with the hopes that it brings some attention to it.