From 5dff5e1b8426e83ef8eab859fdc74d2166c48934 Mon Sep 17 00:00:00 2001 From: kanym Date: Sun, 18 Oct 2026 00:09:14 +0200 Subject: [PATCH 1/2] fix(forms): hair comes back after a form with Valkyr Valkyr sets its hair's forceRenderingOff on every visual update. The hider read that flag as "not hidden yet", recorded the hair a second time with enabled already false, and the revert left it off. Track hidden renderers in a set instead of trusting the flag. --- JotunnModStub/PlayerVisualHider.cs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/JotunnModStub/PlayerVisualHider.cs b/JotunnModStub/PlayerVisualHider.cs index 6e753e5..d1cda5a 100644 --- a/JotunnModStub/PlayerVisualHider.cs +++ b/JotunnModStub/PlayerVisualHider.cs @@ -33,6 +33,11 @@ namespace RacesOfValheim } private readonly List m_hidden = new List(); + + // What we hid, kept apart from forceRenderingOff. Other mods write that flag too: Valkyr + // sets its hair's forceRenderingOff on every visual update, so the flag alone made the + // rescan record the hair a second time, already disabled, and the revert left it off. + private readonly HashSet m_tracked = new HashSet(); private float m_nextRescan; private float m_nextLog; private string m_context = ""; @@ -107,8 +112,20 @@ namespace RacesOfValheim // the cape along with the body mesh itself. foreach (Renderer r in GetComponentsInChildren(true)) { - if (r == null || r.forceRenderingOff) continue; // already ours + if (r == null) continue; + if (m_tracked.Contains(r)) + { + // Already ours: re-assert in case another mod cleared the flag. + r.forceRenderingOff = true; + continue; + } + + // Hidden by someone else (Valkyr hides the vanilla body and hair this way): leave + // it to them, or the revert would show it. + if (r.forceRenderingOff) continue; + + m_tracked.Add(r); m_hidden.Add(new HiddenRenderer { Renderer = r, WasEnabled = r.enabled }); r.enabled = false; r.forceRenderingOff = true; @@ -132,6 +149,7 @@ namespace RacesOfValheim } m_hidden.Clear(); + m_tracked.Clear(); enabled = false; return restored; } From 9d459fbc996da397b1474380e8c056fc62723d88 Mon Sep 17 00:00:00 2001 From: kanym Date: Sun, 18 Oct 2026 00:18:36 +0200 Subject: [PATCH 2/2] chore(release): v1.5.12 - hair back after a form with Valkyr With the Valkyr body replacer, leaving any monster form brought the body back without its hair. Fixed in PlayerVisualHider. README: New in block and changelog entry. --- JotunnModStub/Package/manifest.json | 2 +- JotunnModStub/RacesOfValheim.cs | 2 +- README.md | 7 +++++-- manifest.json | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/JotunnModStub/Package/manifest.json b/JotunnModStub/Package/manifest.json index 0c5a46e..6211ee9 100644 --- a/JotunnModStub/Package/manifest.json +++ b/JotunnModStub/Package/manifest.json @@ -1,7 +1,7 @@ { "name": "RacesOfValheim", "description": "A Valheim mod that adds ten custom playable races (Aswid, Draugh, Dvergar, Fenrir, Furling, Skadi, Skeleton, Sverm, Trenta, Trol) each with unique abilities, traits, race stations and a deep boss-driven progression system.", - "version_number": "1.5.11", + "version_number": "1.5.12", "website_url": "", "dependencies": [ "denikson-BepInExPack_Valheim-5.4.2333", diff --git a/JotunnModStub/RacesOfValheim.cs b/JotunnModStub/RacesOfValheim.cs index 2a6b881..2505de8 100644 --- a/JotunnModStub/RacesOfValheim.cs +++ b/JotunnModStub/RacesOfValheim.cs @@ -16,7 +16,7 @@ namespace RacesOfValheim { public const string PluginGUID = "com.nandor.racesofvalheim"; public const string PluginName = "Races Of Valheim"; - public const string PluginVersion = "1.5.11"; + public const string PluginVersion = "1.5.12"; private readonly Harmony harmony = new Harmony(PluginGUID); diff --git a/README.md b/README.md index ee6039c..0c572e8 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ Support the mod: [Patreon — NandorTheModder](https://www.patreon.com/c/NandorT --- -## New in v1.5.11 +## New in v1.5.12 -The Trol's True Form now wears Valheim's own forest troll, with its punches, ground slam and log swings; players with a model mod can keep the old True Form with `Trol - True Form` → `Legacy True Form`. The Sverm's Ravager attacks on the Seeker Brute's own animations: the ram lunges and the slam strikes with both claws. Race stations show and require their race in the build panel, and most of them now go on floors and inside caves. The Ulv sleeps when you sit. Full details in the [changelog](#v1511). +Compatibility fix for Valkyr (female body replacer): your hair no longer disappears when you leave a monster form. Full details in the [changelog](#v1512). --- @@ -450,6 +450,9 @@ Both halves have an off switch under `Factions` in Configuration Manager: **Fact ## Changelog +### v1.5.12 +- **Fix - hair gone after a form with Valkyr:** with the Valkyr body replacer, leaving a monster form (Skadi drake, Aswid bat or mist, Fenrir forms, Sverm Ravager, Trol True Form) brought the body back without its hair. Valkyr hides and shows its own hair, and the mod mistook that for a part it still had to hide, so it never turned the hair back on. Your hair now returns with the rest of the body. Thanks to BoredLizard for the report. + ### v1.5.11 - **New - Trol True Form wears a real troll:** True Form hides your Trol and puts Valheim's own forest troll in its place, as tall as the old True Form, in your Trol's skin colour. Every player sees it. Weapons are put away while it lasts: left click punches, right click slams the ground, and with a log in hand they become the troll's two log swings. The slam breaks trees and rocks around it and digs into the ground, never inside a ward you have no access to. Throw Rock plays the troll's own throw. You stand still through every attack. Damage is half a real troll's, scaled by your Clubs skill like a club, and the True Form and tier melee bonuses still add on top. New options under `Trol - True Form`: `Troll Model Size`, `Troll Attack Damage`, `Troll Attack Reach`, `Ground Slam Crater`. - **New - Legacy True Form:** prefer the old True Form, your own Trol grown bigger with weapons in hand? Turn on `Trol - True Form` → `Legacy True Form`. Use it with EnhancedValheimVRM or another player model mod, which needs the player's body to stay visible. Each player picks their own and other players see you the way you picked; a server cannot force it. Thanks to the players who answered the Discord poll. diff --git a/manifest.json b/manifest.json index 0c5a46e..6211ee9 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "RacesOfValheim", "description": "A Valheim mod that adds ten custom playable races (Aswid, Draugh, Dvergar, Fenrir, Furling, Skadi, Skeleton, Sverm, Trenta, Trol) each with unique abilities, traits, race stations and a deep boss-driven progression system.", - "version_number": "1.5.11", + "version_number": "1.5.12", "website_url": "", "dependencies": [ "denikson-BepInExPack_Valheim-5.4.2333",