Flaxbeard / Cyberware

Cybernetics mod for Minecraft 1.9.4/1.10
MIT License
30 stars 31 forks source link

HUD is invisible with InGame Info XML #60

Open The-Key opened 7 years ago

The-Key commented 7 years ago

The power HUD from hudlens/hudjack doesn't appear if InGame Info XML is present. Disabling IGI with its command doesn't fix it either. I've posted this on IGI's github too in case it's on their end.

The-Key commented 7 years ago

From the IGI dev, Lunatrius:

Unless he's rendering it using the debug event (F3), normal text (usually also on F3) or the potion event when the overlay is disabled in IGI it's most likely on their end then. But I'll have to check their code. Relevant IGI code.

The-Key commented 7 years ago

Lunatrius:

Code wise this can be fixed by using the net.minecraftforge.fml.common.gameevent.TickEvent event, TickEvent.Type.RENDER particularly.

Flaxbeard commented 7 years ago

The Cyberware HUD is drawn during the RenderGameOverlayEvent, specifically when potion icons are rendered. If IGI stops this event, that's what's causing it.

The-Key commented 7 years ago

Every other mod's overlay works with vanilla potion icons disabled. Lunatrius had said that the rendering method used here could be fixed with the net.minecraftforge.fml.common.gameevent.TickEvent event and TickEvent.Type.RENDER.

I don't really know much about any of this though so if it's not possible with your HUD, I completely understand. Still an incredible mod regardless. Thanks for responding.

Lunatrius commented 7 years ago

If I remember correctly the (main) purpose of RenderGameOverlayEvent is to allow modders to hide certain parts of the vanilla HUD, add text (~.Text) or reposition the chat box (~.Chat).

Most mods are using the net.minecraftforge.fml.common.gameevent.TickEvent.RenderTickEvent event instead for their HUD rendering.

dragonpc75 commented 7 years ago

Also having this issue, makes it hard to manage the Power and charging requirements without info to know what you are producing and what you have.. is there a way around it without having to remove ingame XML? because that mod is nearly invaluable to me.

Lunatrius commented 7 years ago

@dragonpc75 You don't have to remove it, you can disable the option to hide potion effects in IGI.

CorneliusCornbread commented 7 years ago

I'm having the same problem with the potion hud from dynamic surroundings