Cyberware icon indicating copy to clipboard operation
Cyberware copied to clipboard

HUD is invisible with InGame Info XML

Open The-Key opened this issue 9 years ago • 8 comments

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 avatar Nov 13 '16 23:11 The-Key

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 avatar Nov 14 '16 01:11 The-Key

Lunatrius:

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

The-Key avatar Nov 14 '16 21:11 The-Key

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.

Flaxbeard avatar Nov 14 '16 23:11 Flaxbeard

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.

The-Key avatar Nov 15 '16 00:11 The-Key

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.

Lunatrius avatar Nov 15 '16 09:11 Lunatrius

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.

dragonpc75 avatar Feb 01 '17 03:02 dragonpc75

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

Lunatrius avatar Feb 18 '17 21:02 Lunatrius

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

CorneliusCornbread avatar Apr 04 '17 23:04 CorneliusCornbread