chore(release): v1.4.19 - eye height, remote forms, food refresh, faction retaliation

Race body scale moved the model and not the camera: Character.m_eye hangs
off the unscaled root, so a Trol or a Dvergar changed height for everyone
but themselves. RaceEyeHeight moves the eye by whatever scale the Visual
is wearing, for every player, so aim rays follow too.

Remote copies of a Fenrir form had no one writing to their Animator and
stood in the controller's default state, sliding. RemoteFenrirAnimator
mirrors the four local behaviours off the player's own replicated
animator, the way RemoteSkadiAnimator already did for Skadi.

Player.Food.m_time is time remaining, not time elapsed: the Aswid, Trenta
and Draugh repeat-meal branches all set it to 0 and expired the slot they
meant to renew, and left the nutrition values stale. RaceFoodRefresh does
what vanilla's own branch does, in one place instead of three. The Trenta
prefix now reports __result, or a working refresh would have renewed the
slot without consuming the seed.

Aswid devour was gated by one timestamp shared by every corpse, so a pack
killed at once fed the player once; it is now per corpse, floored at a
second, and a refused meal says $msg_nomore.

MonsterAI.UpdateTarget discards any target IsEnemy refuses, so a truced
mob could not retaliate at all - it stood still or fled. RaceGrudge
records the hit on the AI owner's client and both truce postfixes stand
down for that pair. The Aswid drain and the Skadi frost aura now skip
kin, as the Skeleton's fire aura already did, or an always-on aura would
hold every truce permanently broken.

Faction sets matched exact prefab names with families half-listed:
added Skeleton_NoArcher and Draugr_Ranged to the Swamp, Greyling to the
Black Forest.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Ferdinando 2026-09-20 08:26:22 +02:00
commit 834d6647fd
18 changed files with 525 additions and 56 deletions

View file

@ -404,12 +404,22 @@ Aswid, Draugh, Skeleton / at peace with Ghost, Skeleton, Draugr, Wraith, Leech,
The **Sverm** belongs to no faction. Its Hive Pheromones make every invertebrate in the game ignore it instead — leeches, ticks, deathsquitos, seekers and bees — with no boss gate and no trading.
A truce is not a shield: hit one of your own and it hits back, for **Faction grudge** seconds (60 by default), then forgets about it. Your always-on auras — the Aswid's drain, the Skadi's frost — leave your own kin alone, so they never start that fight for you.
Both halves have an off switch under `Factions` in Configuration Manager: **Faction truce** for whether your faction's mobs leave you alone, **Faction merchants** for whether they will trade. Both are on by default and both take effect without a restart. Be aware that turning the truce off also gives up every race's own peace — Fenrir's wolves, the Aswid's list, the Draugh's undead, the Trenta's Black Forest, the Sverm's invertebrates, the Furling's Plains roster and the Skeleton's undead — because they are all the same question asked of the same vanilla method.
---
## Changelog
### v1.4.19
- **Fix - You could not see your own height:** the Trol stood a head taller and the Dvergar came up short for everyone except themselves — the body was resized, but the camera stayed at human eye level, so from your own chair nothing had changed. Your eyes now sit where your head is, and your shots start from there too. Every race that resizes its body is covered, at whatever size it happens to be wearing: the Trol's True Form lifts the view as it grows and lowers it again on the way back. Thanks to the testers who noticed it only worked on other people.
- **Fix - Other players saw a Fenrir's wolf standing still and sliding:** the form's animations were only ever driven on the transformed player's own screen. Everyone else got the model in its default pose, gliding across the ground. Wolf, Ulv, Fenring and Cultist now walk, run, jump and creep for every player who can see them. Their attacks are still silent to onlookers — that needs its own fix and is not in this build.
- **Fix - Eating the same creature or seed again destroyed that food instead of refreshing it:** the timer was being set to "expired" rather than "full", so a repeat meal deleted the slot it was meant to renew — and it only happened once the food was under half, which is exactly when it starts flashing. Above half, nothing happened at all. The Aswid's devoured creatures, the Trenta's awakened seeds and the Draugh's raw flesh all had it; all three now renew the slot the way any vanilla food does, nourishment included. Thanks to the tester who worked out that it was the flashing ones.
- **Fix - Devouring only ever caught the first kill:** the Aswid's devour was on a five-second timer shared by every corpse in the world, so clearing a group with the claws or the aura fed you once and let the rest die unnoticed. It is now per body: kill a pack and you drink from all of them. A refused meal also says so instead of failing silently.
- **Fix - Mobs of your own faction would not fight back:** attacking one of your own kin did nothing — it stood there, or ran away — because the truce was absolute in both directions and the game threw away any target it was not allowed to have. Now hitting one starts a real fight for **Faction grudge** seconds (60 by default, configurable, 0 for the old behaviour), per creature and per attacker. The Aswid's drain and the Skadi's frost aura no longer touch their own kin, so an always-on aura can no longer pick that fight on your behalf. Thanks to the tester who reported the Trenta and the Aswid.
- **Fix - Friendly skeletons in one biome, hostile ones in the next:** the faction truce matched creatures by exact name and several families were only half-listed, so an Aswid was at peace with one kind of skeleton and at war with another standing next to it. Added the melee-only skeleton and the bow draugr to the Swamp, and the greyling to the Black Forest — a Trol or a Furling was at peace with the whole forest and still fought the smallest thing in it. Thanks to the tester who mapped it out biome by biome.
### v1.4.18
- **Fix - Drake flight stopped working after the latest Valheim hotfix:** the hotfix changed how the game reads the gamepad's left stick, and the drake's flight still asked for it the old way. Every frame in the air threw a `MissingMethodException` into the log and the drake could not fly. Flight now works on both the new and the old version of the game.
- **Fix - Faction merchants would not open their shop:** Valheim 1.0 added a name, tooltip, buy effects and unlock keys to every shop item, and the shop window reads some of them without checking they are there. The merchants' goods were missing them, so pressing E threw a `NullReferenceException` and nothing opened. Buying is covered too — it would have hit the same wall on the buy effects. Thanks to the tester who tracked this down.