The Troll Model option becomes Legacy True Form, off by default. On,
True Form is the old one: the player's own Trol grown bigger, weapons
in hand, body untouched, which player model mods such as VRM need.
It is a local preference, not a synced one, so a server cannot force
the troll costume on a VRM user. The owner publishes the choice on the
ZDO and every other client reads it from there, so onlookers see each
Trol the way that Trol's owner picked.
The log in the troll's fist was there but switched off: an item's
attach child is stored inactive in its prefab and VisEquipment turns
it on after the Instantiate. It is now switched on, hung with the
item's equipoffset, and sized to the costume, since AttachItem keeps
an attach at its world size and the costume is not at scale 1.
The slam never ran its slam code. troll_groundslam is a Vertical
attack in vanilla, not Area, so asking the attack type sent every slam
down the punch's sweep: damage, but no AoE, no dust and no crater. The
slam now goes by the key that was pressed.
The tint multiplied _Color, which the creature shader does not read.
It now shifts _Hue, _Saturation and _Value, as LevelEffects does for
starred creatures, by the distance from the vanilla troll's colour to
the player's skin colour.
The troll pulsed several times a second and stayed small because
PlayerVisualHider.Hide put the hidden Visual back to scale 1 every
frame while Trol_PlayerUpdate_Patch grew it back, and the troll follows
that scale. Hide and Show take keepScale now, and the Trol calls pass
it. The camera height, which reads the same scale, stops jumping too.
The log in the troll's hand is the troll's own log model, hung the way
VisEquipment does it, instead of the Trol's, which was built for a
person's hand and came out huge and sideways.
Punch and slam reach further and hit wider, with a new Troll Attack
Reach option (1.3). The player is held still through every attack
clip, throw included.
The ground slam spawns the troll's own troll_groundslam_aoe with the
player's damage, kept off friends, plus its trigger and terrain
effects. It carries chop and pickaxe at least equal to its blunt, so
it breaks trees and rocks, and with Ground Slam Crater on it digs into
the terrain where it lands, never inside a ward without access.
True Form now hides the Trol's body and puts the vanilla forest troll's
model in its place, on the owner's client and on every other player's.
The costume stands as tall as the old True Form did: it follows the
Visual scale Trol_PlayerUpdate_Patch already grows and publishes, so
the grow-in, the shrink back and the size others see come for free.
It takes the Trol skin colour from Trol - Appearance.
Weapons are out while it is up. Left click is the troll's punch, right
click its ground slam, and with a log in hand they become its two log
swings, which wear the log down per hit as a club swing did. Throw
Rock plays the troll's throw. The attacks, their triggers and reach are
read off the troll's own weapons at runtime, and each hit lands on the
troll's OnAttackTrigger event rather than a fixed delay.
Damage is a share of the troll's own (Troll Attack Damage, 0.5), scaled
by the Clubs skill like a club and hit as Clubs, so the True Form and
tier melee bonuses still add on top.
Other players see the troll from the existing True Form ZDO flag, with
attacks replayed from a new trigger key. New options in Trol - True
Form: Troll Model (on/off), Troll Model Size, Troll Attack Damage.
ResetRace now undoes each race's form on the spot before it touches
status effects: Aswid bat and mist, Fenrir, Skadi drake, Trol True
Form, Trenta Muspell and Sverm Ravager. Each race gets a
HardResetForReset that stops the form's coroutine, so a transform
caught mid-gesture can't finish after the reset and a revert can't
hand out its cooldown after the sweep.
The hand-written status effect list is gone. The reset now removes
everything the mod registers through Jotunn (ModRegistry), which
covers the True Form and its cooldowns, Bat and Mist Form, the
Skeleton resurrect cooldown and Skadi's ability cooldowns.
It also puts the player and the Visual back to scale 1, clears the
Sverm's static Ravager cooldown and the Trol's wasTrueFormActive flag,
and prints what it removed to the console and the BepInEx log.
Two Color entries, Skin Color and Hair Color (hair and beard), defaulting
to the old peacock blue and golden blonde so no Trol changes on update.
Each Trol publishes its choice on its own ZDO and every client paints
that player with it; a Trol on an older build publishes nothing and shows
the defaults. The menu preview, with no ZDO, reads the local config.
The section is kept local by ConfigSync.
README: New in block, Trol features line and a 1.5.10 changelog entry.
"Gammeltroll" is only the developers' name: the prefab is TrollFrost,
whose clips fire the sfx_gameltroll_* sounds and whose Attack TreeThrow
throws a treebundle (dumpanim TrollFrost). No prefab is called
Gammeltroll, so since v1.4.16 every True Form throw fell back to the
physical log. The loose "gammel" substring fallback is gone too: it
matched nothing in vanilla and could match another mod's prefab.
Vanilla only checks its own three slots, so a meal still digesting in
the 4th or 5th stomach was eaten again as new as soon as a vanilla slot
freed up. The extra stomachs are now asked first, in both CanConsumeItem
and EatFood. Pukeberries remove food through RemoveOneFood, which only
picked from the vanilla three; slots 4 and 5 now join the same draw.
The faction merchants' 90 jokes, their generic lines and their names now
read from merchants.json. Merchant names use the game's own creature
tokens where one matches, so they arrive translated in every language
Valheim ships; the Dverg keeps a key of its own, since vanilla's token
reads "Dvergr Rogue".
The Dvergar and Trol troop names and terms, and the Sverm hive's goods,
refusals, stage names and brood kinds, follow. Their panels fill TMP texts
themselves, so they localize the names where they draw them.
The jokes have English text only for now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plugin adds TrolRace itself, but Instance did not know that and built
a second copy on first read, so two Updates read every key. Past Fader the
True Form key is a toggle: one copy put the form on, the other saw it on
in the same frame and took it off. The Trol grew and shrank back with no
status. Awake now registers the plugin's copy and removes any other.
FurlingRace had the same pattern, harmless there, and gets the same fix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What the stations, thralls, the ward and the hive show under the
crosshair now reads its text through ModText.Get, and hover.json holds
50 texts in English and Italian.
The Aswid thralls and the Race Menu Ward wrote the use key as a literal
E; they now use $KEY_Use, which shows the key the player actually bound.
For that to work, ModText.Get runs a second localization pass when a $
is left in the result: Valheim resolves tokens once and never looks
inside what it inserted, and hover texts go to the HUD without another
pass.
The Sverm hive stage names stay English for now: the compendium and the
hive's goods show them too, and those come with the merchants step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every message the mod puts in the middle or corner of the screen now reads
its text through ModText.Get, and messages.json holds 191 texts in English
and Italian. Values computed in code become $1, $2 in the text, so a
translator can put them wherever the sentence needs them. Branching
messages get one key per branch.
A few messages travel through a field before they are shown: thralls'
refusals and the building limits now hold a token or key there. Boss and
form names inside messages use tokens too, the bosses the game's own, so
"The Elder" arrives translated.
ModText.Get now localizes each argument before inserting it. A token
argument left for a later pass ran into the text after it: "$1's power"
became the unknown token "enemy_eikthyr's".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mod's own items, build pieces and summoned creatures now carry
$rov_item_, $rov_piece_ and $rov_creature_ tokens for their names and
descriptions, and items.json holds the texts in English and Italian.
Valheim localizes these fields wherever it shows them: tooltips, hover
texts, messages, the build menu.
Where a name doubles as an identifier, both sides use the same constant,
so the comparisons still hold. The Aswid foods keep their prefix as a
constant for the refinery's check and now name the creature with its
vanilla token, so "Boar" translates too. The Furling crops get one whole
description per crop instead of an English sentence with the metal dropped
in. The Race Menu Ward's panel title is a mod UI Text, so it reads the
translation directly.
Saves are unaffected: items and eaten foods are stored by prefab name.
The Sverm hive's goods stay for the merchant step.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every status effect the mod registers now carries a $rov_se_ token instead
of English, and status_effects.json holds the texts in English and Italian.
Valheim localizes both fields itself when it shows them. The blood
potion's tooltip has numbers in it, so SE_BloodPotion fills its $1 and $2
in GetTooltipString, at display time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drake flight resolves ZInput.GetJoyLeftStickY at runtime, since the
hotfix dropped its bool parameter. Faction merchant TradeItems now set
the 1.0 fields StoreGui dereferences (m_tooltip, m_buyPlayerEffects),
and the Dvergar trader discount clones the whole TradeItem instead of
rebuilding four fields. Trol totem refusals return true so vanilla's
$msg_cantuseon no longer covers them. The Fenrir curse speed modifier
is the bonus alone (SE_Stats adds it), not 1 + bonus. New Discord link.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Past Fader the Trol's True Form never expires (SE ttl 0) and the key
toggles it off with no cooldown. The True Form log throw now fires one
projectile read off the Gammeltroll's own weapons at runtime, hitting
with the rock's damage formula, and falls back to the old physical log
if none is found; 'dumpgammel' logs what was resolved.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sverm Ravager Strain (replacing the Stinger Morph), Trenta Elder Root, the
Trol food and Black Forest truce work, and the faction FindEnemy patch.
Conflicts resolved:
- FactionHostilityPatch.cs: both sides added a class at the same spot and
they cover different holes, so both are kept - FactionStaticTargetPatch
(main, stops same-faction mobs smashing structures) and
FactionHuntPlayerPatch (war-vulture, closes the HuntPlayer fall-through).
- RaceCompendium.cs: both branches independently fixed the same off-by-one
in the Trol's progression gates. Took main's wording, which matches the
code - Axes are in the melee bonus (TrolDamagePatches sends them to
m_slash), the 4th food slot has no gate at all, and Yagluth is +5 not +10
(TrolConfig.YagluthMeleeBonus). Kept war-vulture's two new lines, the
Kindling fire weakness and the Black Forest truce.
- Package/manifest.json: 1.4.8, which is what the root manifest and
PluginVersion already said.
RacesOfValheim.cs referenced SvermConfig.StingerSE/StingerCdSE, which
war-vulture renamed to Ravager. Git merged those lines without a conflict
and the result did not compile; renamed.
Also in this commit:
- Factions on/off switches (FactionsConfig): "Faction truce" and "Faction
merchants", both default on, both read live so they take effect without a
restart. The truce gates its three postfixes; the merchants gate the
Character.Awake setup plus every behavioural patch, so turning them off
drops the prompt and the trade window on mobs already awake.
- SerpentMeat sells for 200 instead of 1 at the Fuling bench, moved to keep
the list's ascending price order (the sell panel renders it as declared).
- DraughFoodPatches mapped "SerpentMeatRaw", which is not a prefab; the
internal id is SerpentMeat, so serpent meat never cooked for a Draugh.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
These periodic Jotunn.Logger.LogInfo calls were spamming the console
for every remote player update; drop them along with their now-unused
throttle fields.
Brings in v1.4.3-v1.4.5 work: Trol's Hammer, Bone Servants, War Vulture
craftability, and the Aswid/Fenrir timed-claws rework, on top of the
bugfixes merged into main since v1.4.2.
Resolved conflicts in 7 files where main's post-v1.4.2 fixes overlapped
war-vulture's claws rework:
- README.md, manifest.json: took war-vulture's v1.4.5 content (main
hadn't touched either since the v1.4.2 release).
- RacesOfValheim.cs: plugin version -> 1.4.5.
- RaceClaws.cs: kept war-vulture's lazy EnsureRoster() fix for the
Fenrir claw-registration bug over main's belt-and-suspenders
Register(this), and dropped the now-stale comment referencing the
removed static constructor. Main's SetupDragItem race-ownership fix
carried through untouched.
- AswidConfig.cs/AswidRace.cs/AswidPatches.cs: adopted war-vulture's
single-key design (I toggles both Vampiric Aura and Devour together)
to match the documented v1.4.5 trader-safety fix, removing a duplicate
AuraEnabled field the two branches had each declared independently.
Kept main's IsDownIgnoringHeldKeys() input fix on top.
- RaceCompendium.cs: kept main's fact-checked Aswid/Fenrir entries
(war-vulture's copies were pre-fix stubs, one referencing a
nonexistent variable) and layered in war-vulture's timed-claws
wording.
Build verified clean (0 errors) after resolution.
Two fixes:
- abilities no longer stop responding while a movement key is held
(BepInEx KeyboardShortcut.IsDown blocks on any other held key);
affects every race, not just Skadi.
- the dragon breath and the model's own breath VFX now travel the same
way instead of drifting apart.
BepInEx's KeyboardShortcut.IsDown() ends in ModifierKeyTest, which
requires that no key outside the shortcut is currently held - it only
exempts the mouse buttons. That is right for a config-menu hotkey and
wrong for a game ability: holding W (or any other movement key) made
every bound ability in the mod stop responding, for every race, mouse
bindings included. Vanilla attacks kept working because they go
through ZInput, which is what made it look like a Skadi/dragon bug.
Adds RaceInput.IsDownIgnoringHeldKeys / IsPressedIgnoringHeldKeys -
main key down plus every modifier held, without the blocking rule -
and switches all 27 call sites across Aswid, Dvergar, Fenrir, Skadi,
Trenta and Trol over to them.
Arrived with the rebindable-keybind work that shipped in 1.4.0.
TrolLogWeapon.GrabLog gave the picked-up log an out-of-bounds grid
position ((99, 99)) to keep it off the visible inventory grid.
InventoryGrid.UpdateGui maps every item to a cell with y * width + x
and no bounds check, so that position threw ArgumentOutOfRangeException
every frame the inventory screen was open - for the player holding it,
or anyone else who ever had it in their own pack or a chest. Visible
as endless console spam, a frame stall/freeze, and corrupted icons on
every other slot for the rest of that update.
Now uses Inventory.FindEmptySlot like every other picked-up item, so
it renders in a real slot with the normal equipped indicator.
Also adds InventoryGridSafetyPatch as a general safety net: any item
already sitting at an invalid grid position (existing saves from
before this fix, or one handed off through a chest) gets moved to a
real slot - or dropped if there's no room - instead of crashing the
grid the next time it renders.
Documents everything that landed on main since 1.3.12 (Factions peace +
merchants, BepInEx Configuration Manager across all nine races, Dvergar/Aswid
eye glow, Skeleton head-visibility and menu-preview fixes) and bumps the
version accordingly.
Also fixes a real bug found while writing this changelog: Trol's True Form
log-grab was piggybacked on pressing the True Form key a second time, with no
on-screen hint it existed. It now has its own keybind (default E, configurable
like every other race's keys) and a proper crosshair prompt patched onto
vanilla's own HoverText component - the first attempt added a second,
competing Hoverable component to the log and it was silently never reached,
since Unity's GetComponentInParent<Hoverable>() only returns the first match
and vanilla's own HoverText was already on the object.
Adds TrolConfig.cs, following the established per-race pattern: one
Configuration Manager section per topic (Passive Combat, Throw Rock,
True Form, Log Weapon, Farming), plus the two ability keybinds (Throw
Rock, True Form). Defaults match the previous hardcoded constants
exactly.
Fixes a real sync risk found while wiring it: True Form's scale (2.0
normal / 2.5 at tier 7+) was hardcoded independently in two places - the
local transform routine in TrolRace and the remote-player sizing postfix
in TrolPatches. Both now read the same TrolConfig.TrueFormScaleNormal/
TrueFormScaleAdvanced, so a retuned value can no longer make a Trol one
size to themselves and another size to everyone else.
Tier-gate thresholds and the small hardcoded "normal size by tier" table
(1.2/1.25/1.30) stay untouched, same boundary drawn for every other
race's progression data.
Config sections stay bound alphabetically by race (Aswid, Draugh,
Dvergar, Fenrir, Furling, Skadi, Skeleton, Trenta, Trol) in
RacesOfValheim.Awake() - this is the last of the nine.
Rename covers the folder, all seven filenames and every identifier, status
effect name and display string. Valheim's own Dverger/dvergr prefab references
are untouched - the names never collided.
The race id is what sits in m_customData and the ZDO, so renaming it alone would
have handed every existing character the selection menu again. DvergarRace
migrates the old id on spawn, before anything else reads it.
Runic Spark is modelled on Skadi's Ice Affinity and deliberately shares its
shape: live from the base tier and growing a flat step per progression state, so
+2 at Base through +16 after Fader. Lightning rather than frost, and like
Skadi's it rides every blow rather than melee only. AddFlat gained the elemental
channels while it was there - lightning would otherwise have landed in generic
damage.
The Trol remote-sync trace fired on a two-second timer for as long as a remote
player existed, which in the main menu is forever: Player.m_localPlayer is null
there, so the character preview counts as remote and it never stopped. Keyed on
the state it reports instead, so it still catches a remote player being sized
wrongly without narrating an idle menu.
Health: the malus was taken off Character.GetMaxHealth, which only made the
getter lie. Character.SetMaxHealth is the one thing that clamps current health
to the new maximum and it never saw a lower number, so the bar shrank while the
value stayed where it was. Player.SetMaxHealth also flashes the bar whenever the
new maximum is above GetMaxHealth(), so against a getter that always read low
every food tick looked like an increase and re-triggered the flash. Taking the
malus off Player.GetTotalFoodValue instead puts it upstream of both, and leaves
Valheim to do its own clamping on an honest number.
Scale: applied from the plugin MonoBehaviour, it was overwritten on the same
frame by Trol's Player.Update postfix, which forced every non-Trol player back
to scale 1. Sizing now happens in a postfix on that same method, the way the
Trol does it, and RaceScale records which races size themselves so they stop
undoing each other. This also fixes the Furling, which was losing the same race.
Hood: the Dverger Circlet is a metal band, not the hood, and instantiating a
skinned mesh leaves its bones pointing at the source prefab so it renders
nowhere. The headgear is now lifted off the Dvergr NPC and rebound to the
player's own bones by name, as the Skeleton does for whole bodies.
Skin is tinted to a dvergr grey, saved and restored through the same
OriginalSkinColor keys the other tinted races use.
Adds a dumpdverger console command: prefab contents live in the asset bundles
and cannot be read outside a running game, so this is how the hood mesh and the
per-star LevelEffects colours get identified.
Race Menu Ward: a buildable ward (2 wood, hammer/Misc, no crafting station)
that manages your race outside the debug console - reset the race, switch
between the server's boss progression and your own, and advance that personal
progression by offering a boss's secondary drop to it. One is placed near the
sacrificial stones on first load of a world, by the host only.
BossProgressionManager grows a personal mode alongside the world one. The tier
is stored on the character rather than the world, so a personal tier travels
with the player between servers instead of being tied to whichever world
unlocked it. resetrace and the ward now share RacesOfValheim.ResetRace so both
paths clean up identical state.
Also in progress, and NOT yet working: remote Trol sizing and remote Skadi
flight. Both are computed from the observer instead of the observed -
- Remote Trols are scaled from the observing player's own progression, and
never show True Form, because SE_TrolTrueForm only exists on the transformed
player's client. Each Trol now publishes its state and True Form flag onto
its own ZDO for others to read.
- Remote Skadi dragons sink to the terrain regardless of the altitude being
replicated: Character.m_flying is only ever set on the flying player's
client, so observers run grounded motion under gravity. Flight is mirrored
through the ZDO and the remote copy's rigidbody gravity is disabled while it
lasts.
Neither has fixed the symptom yet, so both paths keep a throttled diagnostic
log reporting what each observer actually computes. Committed to get the
instrumentation onto the branch, not because it works.
Packaging no longer hardcodes another machine's desktop path: Thunderstore and
Nexus zips go to dist/ on Release builds only, and the DLL is copied into
Valheim only when VALHEIM_INSTALL actually points at a plugins folder.
UnityEngine.Input reads the device directly, so abilities bound to keys
or mouse buttons kept firing with the map, the inventory, a chest, the
chat or a menu open - clicking an item in a container also swung the
transformed attack.
Route that input through Player.TakeInput, which is what Valheim runs
its own controls through and already reports false for those states
(InventoryGui covers the backpack and chests alike). Aswid's transform
keys were the only place already doing this; the shared helper replaces
that one-off and covers Skadi's cold spell, form keys, flight toggle,
form attacks and flight boost, Fenrir's form keys and the attacks of all
four form behaviors, Trol's rock throw and true form, and Aswid's devour
toggle.
Cultist fire is a held button, so it is gated per read rather than
around the block: opening a GUI mid-stream now falls through to
StopFire() instead of leaving the flames running.