Survival Inc.

Survival Inc.

7.5k Downloads

[Bug] Sanity Bar is missing when you use Mantle

gatoborrachon opened this issue ยท 7 comments

commented

Describe the bug
The Sanity Bar does not show when you use Mantle (Library for Tinkers' Construct)

To Reproduce
Steps to reproduce the behavior:

  1. Use Survival Inc and Mantle
  2. Enter to a world
  3. See error

Expected behavior
you will see how the Sanity Bar is missing.

Screenshots
With Mantle:
2021-02-15_20 53 53

Without Mantle:
2021-02-15_20 59 30

Game Details:

  • Forge Version: 14.23.5.2854
  • Survival Inc: 1.2.7
  • Additional Mods:
    • Mantle-1.12-1.3.3.55

Additional Notes
i have the sanity feature enabled so it's not an user error.

commented

Hmm, the only thing that comes to my mind is that Mantle tries to deliberately overwrite the space above the hearts. Have you tried changing the sanity bar stack to right? (Under Client config->HUD).

commented

the issue persist:
2021-02-16_11 49 24

this is my config:

        # The side where the sanity bar will be stacked in
        # Valid values:
        # LEFT
        # RIGHT
        S:sanityBarStack=RIGHT

        # Set to true to enable sanity bar stacking.
        # The stacking basically means that the bar is dynamically integrated into the vanilla HUD.
        # Setting this to false enables absolute positioning using sanityBarX and sanityBarY
        B:stackSanityBar=true

EDIT:
I also would like to add that: when i change the stack position of the hydratation bar (whatever is the position of the sanity bar) it correctly moves to left or right, but it seems to detect the position of the sanity bar
2021-02-16_11 50 30

commented

What about the render trigger? Have you tried changing it?

commented

yeah, it seems to fix it (changed to FOOD):
2021-02-16_11 53 41

now i have a doubt: what exactly means the Render Trigger? when the trigger (health or food) is updated then the respective bar (sanity or hydration) updates too?

commented

what should we do? left this issue fixed by setting for default S:sanityBarRenderTrigger=FOOD or i leave it open?

commented

Oh okay so I probably know what's wrong. Mantle probably cancels the RenderOverlayEvent for HEALTH element to disable it from rendering, and renders it's own health bar. But I'm afraid that the fix would probe to be ultimatimatelly contraproductive. So I guess I will probably just add it to known issues since the fix is really easy.

commented

ok, i just wanted to add that the Sanity Bar is forced to be rendered a bit above, but its just a minor issue,
2021-02-16_12 16 41