You are viewing a potentially older version of this package. View all versions.
cjayride-BuildingHealthDisplay-0.8.1 icon

BuildingHealthDisplay

Fork of aedenthorn/BuildingHealthDisplay. Building health bar with optional integrity text and custom colours. Updated for Valheim 1.0.

Date uploaded 12 hours ago
Version 0.8.1
Download link cjayride-BuildingHealthDisplay-0.8.1.zip
Downloads 98
Dependency string cjayride-BuildingHealthDisplay-0.8.1

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2350 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2350

README

BuildingHealthDisplay

Updated for Valheim 1.0

A fork of aedenthorn/BuildingHealthDisplay

ThunderStore | GitHub

Display HP of buildings

This is a small quality-of-life mod that lets you tweak the little bar that shows how much health a building piece has.

  • Lets you optionally set colours for low, mid, and high remaining health, with smooth blending from one colour to another (default red, yellow, and green)
  • Lets you optionally hide the health bar.
  • Lets you optionally show custom health text with the health bar (default shows current / max (percent))
  • Lets you optionally show piece structural integrity (default shows current / max (percent))
  • Lets you optionally set colours for low, mid, and high piece integrity, with smooth blending from one colour to another (default red, yellow, and green)

The health and integrity texts are in the format {0}/{1} ({2}) just as an example to show all three showable values. You can customize this as you like. {0} is replaced by current value. {1} is replaced by max value. {2} is replaced by percentage value.

Configuration

A config file BepInEx/config/cjayride.BuildingHealthDisplay.cfg is created after running the game once with this mod.

Contact

  • 𝕏: x.com/cjayride

  • Discord: discord.gg/cjayride (find me at the top of the user list) "cjayride"

  • Twitch: twitch.tv/cjayride

AI Generated

This code was not AI Generated, however, AI was used to verify that it works with the new version of the game.

CHANGELOG

v0.8.1

  • Re-upload to tag for Deep North Update on Thunderstore

v0.8.0

  • Updated for Valheim 1.0 (Unity 6)
  • Rebuilt against the live 1.0 client (Unity 6000.0.75f1)
  • Piece health now reads ZDOVars.s_health instead of the string ZDO key
  • Call WearNTear.GetSupport / GetMaxSupport via Harmony Traverse (those methods are still private)
  • Harmony patch targets Hud.UpdateCrosshair(Player, float) by name; extra HUD children are null-checked
  • Build against the game's Managed Unity assemblies (Unity 6 dropped unstripped_corlib / TextCoreModule)
  • BepInEx dependency updated to denikson-BepInExPack_Valheim-5.4.2350
  • Piece highlight / custom integrity colours remain disabled (same as 0.7.1)

v0.7.1

  • Commented out piece highlighting until a fix can be provided. Health bar and text still work.

v0.7.0

  • Removed terminal reload
  • Added compatibility for v0.217.46

0.6.2

  • Fixed potential issue with missing assembly file

0.6.1

  • Changed config file name to cjayride.BuildingHealthDisplay.cfg

0.6.0

  • 2 changes (commits) by "Aedenthorn" on Aug 24, 2023 and Oct 6, 2023

0.4.1

  • Verified works on Mistlands update
  • Changed config file name to cjayride.BuildingHealthDisplay.cfg
  • Changed default value of ShowIntegrityText = false