Commit graph

274 commits

Author SHA1 Message Date
a9e66aeeb7 fix(trol): True Form log visible, slam reaches the ground, skin tint
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.
2026-10-14 17:17:20 +02:00
db29f868ea fix(trol): True Form troll size, log, reach, root during attacks, slam
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.
2026-10-14 17:08:20 +02:00
c64cb393c7 feat(trol): True Form wears Valheim's own troll
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.
2026-10-14 16:56:34 +02:00
d5c2d58636 fix(resetrace): drop every form and every mod status effect on reset
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.
2026-10-14 16:40:27 +02:00
65b488b5dc feat(trol): skin and hair colour pickers in Trol - Appearance
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.
2026-10-14 14:14:06 +02:00
bb1ca57924 chore(release): v1.5.10 - Skeleton body switch for player model mods
New client-side option Skeleton - Visuals -> Body Model Enabled. Off,
a Skeleton takes the human branch of the VisEquipment postfix: vanilla
body on, no bone meshes, eye glow, jaw correction or skull flame, and
the helmet is left alone. Requested by players using EnhancedValheimVRM,
where the bones floated around the replacement model.

README: New in block for v1.5.10, changelog entry (also the Russian
fixes since 1.5.9), and a line under the Skeleton features.
2026-10-13 20:00:03 +02:00
aca3eabb2f Merge branch 'localisation' 2026-10-08 18:22:13 +02:00
f1fbebb8c7 Обновить JotunnModStub/Translations/Russian/items.json 2026-10-08 08:14:18 +02:00
d86609acef Обновить JotunnModStub/Translations/Russian/hover.json 2026-10-08 08:13:43 +02:00
a1261af0f1 Обновить JotunnModStub/Translations/Russian/compendium.json 2026-10-08 08:12:25 +02:00
a75655d3e5 Обновить JotunnModStub/Translations/Russian/messages.json 2026-10-08 08:05:10 +02:00
875024e649 Обновить JotunnModStub/Translations/Russian/messages.json 2026-10-08 07:58:42 +02:00
3c86d48aad Обновить JotunnModStub/Translations/Russian/merchants.json 2026-10-08 07:57:46 +02:00
9f11cab70d Обновить JotunnModStub/Translations/Russian/hover.json 2026-10-08 07:57:09 +02:00
c45ca80d99 Обновить JotunnModStub/Translations/Russian/compendium.json 2026-10-08 07:52:10 +02:00
8bad4092be Обновить JotunnModStub/Translations/Russian/races.json
по канону Valheim 
Драуг - Драугр
2026-10-08 07:45:13 +02:00
Ferdinando
0159f1e8c4 bugfix 07/10/26 + evil laugh 2026-10-07 17:31:29 +02:00
68cdbd6de6 chore(release): v1.5.8 - Skeleton rise, truce for bound troops
README: the New in block is v1.5.8 only, a changelog entry for the three
fixes, and the Skeleton stations line says the pile and the Sentry go on
floors too.
2026-10-07 04:11:08 +02:00
1848725f2a fix(skeleton): rise on resurrect, truce for bound troops, pile and sentry on floors
The Yagluth auto-resurrect now plays the crypt rise. The player rig has no
rise state, so the body is hidden and the skeleton model is worn for the
length of the clip with "wakeup" set; the start time goes on the ZDO so
other clients play it too. The player takes no damage and does not move
until it is out.

Wild faction mobs left the player alone but attacked the player's thralls,
which are tamed and so in the Players faction. IsEnemy now gives a thrall
the same truce through its m_commandingRace, broken by a grudge against
any player. Covers every race with thralls.

The Bound Bone Pile and the Bound Sentry seed drop m_groundPiece and
m_groundOnly, so both can be built on floors and foundations.
2026-10-07 04:11:08 +02:00
02c640e1d9 chore(release): v1.5.7 - Bone Ships and the Russian translation
README: the stack of "New in" blocks at the top is down to the latest
release, a languages line with flags sits under the intro, Bone Ships gets
its own section, and the Translations section credits Rudra and Axibed for
the Russian. nexus-readme.py keeps an image inside a line of text inline,
so the flags do not come out as 350 px pictures on Nexus.
2026-10-06 14:20:22 +02:00
60e9b0ab72 localisation(ru): add Russian translation
Merged from two community translations (Rudra and Axibed). Axibed's set is
the base; Rudra's lines replace it where they read better or are more
faithful, mostly the merchant jokes. Boss, creature and resource names follow
vanilla Valheim's own Russian (Матерь, Прародитель, Драугр, Эйтр,
Быкоящер, Пеплозавр, Масса костей). Ability names that are quotes or song
titles stay in English, as in Italian. The bone-ship and thrall-order keys
that neither translation had are translated here.
2026-10-06 13:59:52 +02:00
Ferdinando
553303d0fd bugfix 06/10/26 + bone ship 2026-10-06 11:36:18 +02:00
Ferdinando
7a863b07a6 bugfix 05/10/26 2026-10-05 11:39:38 +02:00
Ferdinando
5113225981 chore(release): v1.5.5 - Sverm Gjall bombs spare the player and the ticks they hatch are tame
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-04 07:31:16 +02:00
Ferdinando
9a3ab78666 chore(release): v1.5.4 - Sverm troops keep their own place around the player and the boat
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-03 08:11:05 +02:00
Ferdinando
b9ac02fe50 chore(release): v1.5.3
Version bumped in manifest.json, the packaging manifest and PluginVersion.
Valheim 1.0's new creatures for the Aswid and the Draugh (seal, moose,
Elaking, Jotun, Barka, Deep North Goblin and every Dvergr), the Elaking
Hair Bundle in the blood refinery, and the Skeleton choosing its look at
the barber.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-01 08:19:47 +02:00
fa0e2cbb06 chore(release): v1.5.2
Version bumped in manifest.json, the packaging manifest and PluginVersion.
The one change is the Thunderstore package keeping the mod under plugins/,
so mod managers no longer take the Translations folders apart. The
changelog explains why 1.5.1's zip fix was not enough, and the README
leads with it.
2026-09-30 22:43:44 +02:00
ecc238a728 chore(release): v1.5.1
Version bumped in manifest.json, the packaging manifest and PluginVersion.
The Unreleased changelog becomes v1.5.1 with the "TO BE TESTED" tags
removed, the translation entry now covers mod-manager installs and says
to reinstall if keys still show, and the lead section describes 1.5.1.
2026-09-30 16:04:17 +02:00
d502eda748 fix(visuals): a taller player reaches as far as they are tall
Vanilla only takes a hover target within m_maxInteractDistance (5 m) of
the eye, and RaceEyeHeight raises the eye with the model. A True Form
Trol's eye stands about 4 m up, so a log at its feet was already out of
reach and Grab Log worked on one small spot under the camera. The range
now grows by the same ratio as the eye (10-12.5 m in True Form, the
Muspell by its own eye), and never drops below vanilla for smaller races.
2026-09-30 13:57:51 +02:00
0cd09bc862 fix(sverm): the dorsal spines are off by default until they are placed right
On a body wearing armour the crest came out through the chest and
shoulder pieces instead of standing off the back. A new "Enabled" entry
under Sverm - Dorsal Spines, false by default, removes it at once; the
placement settings are kept for when it comes back.
2026-09-30 13:49:44 +02:00
ff4f79f452 fix(sverm): the nest lays brood eggs while its owner is around
Settle ran every second and restarted the egg clock at "now" each time.
One second is 1/20 of an egg, which integer division rounds to none, so
with the owner near the nest twenty seconds never went by and the clutch
stayed empty. Every troop and the Blister Tick cost an egg, so the whole
Hive Market shelf stayed grey. The clock now moves on only by the eggs
actually laid, and is held at now while the clutch is full.
2026-09-30 13:42:32 +02:00
6c23d4e206 fix(sverm): the Blister Tick's burst shows its effect (vfx_BombBlob_explode_poison) 2026-09-30 13:22:48 +02:00
3485665d4e fix(trol): the True Form log is borrowed from TrollFrost, the real Gammeltroll
"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.
2026-09-30 13:22:48 +02:00
3a538bb942 Merge branch 'fix-trenta-muspell-camera' 2026-09-30 13:11:15 +02:00
1a461dc81b fix(trenta): restart the Muspell's idle with Play, found by weight
The first loop fix never fired. The idle shares a locomotion blend tree
with the Swagger Walk clips, so it is not always the first clip listed:
it is now found by name with most of the weight. And a cross-fade from
a state into itself can be ignored by Unity, so the state is restarted
with Play once it reaches its end.
2026-09-30 13:10:29 +02:00
b201c3a637 fix(trenta): the Muspell's idle loops instead of freezing
The Elder's "Unarmed Idle" clip is not a looping clip (loop=False,
1.90s), so after standing up or attacking the form played it once and
froze on the last frame. The state is now cross-faded into itself just
before its end while the form stands idle.
2026-09-30 13:03:58 +02:00
7d88bc78d0 fix(trenta): the camera rises to the Muspell's head
The form hides the player's body by shrinking its Visual to 0.001, and
RaceEyeHeight reads anything that small as hidden and leaves the eye
where it was, at a person's height. The Muspell now measures its head
height when the clone is made and hands RaceEyeHeight that height times
the form's current scale, so the camera follows the grow and shrink.
2026-09-30 12:55:15 +02:00
c4b119b406 fix(trol): no food in two slots at once, and Pukeberries empty slots 4 and 5
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.
2026-09-29 04:55:24 +02:00
2f64bcfc38 fix(trol): the grabbed log keeps its own size in True Form
Its 0.4 scale was set by eye on the size it had before held items
started following the model, so in True Form it came out two and a
half times too big. HeldItemScaleFix now leaves TrolWeapon_* alone.
2026-09-29 04:55:23 +02:00
7b425c69c2 Merge branch 'fix-package-zip-paths' 2026-09-29 04:25:04 +02:00
d0e3cbc46c Merge branch 'fix-fenrir-forms' 2026-09-29 04:25:04 +02:00
1c92eaef35 Merge branch 'fix-furling-fire-reset' 2026-09-29 04:23:14 +02:00
5af7c0205d fix(furling): Through Fire and Flames goes out when the player changes race
The ability is vanilla's Burning set to 999 minutes. FurlingRace.Update
returned before ticking it for anyone who was not a Furling, and
ResetRace never removed it, so the fire followed the player onto any
race and came back visible if they picked the Furling again. The tick
now runs for every race and puts out a Burning longer than an hour when
the player is not a tier 8 Furling; ResetRace does the same at once.
2026-09-29 02:50:47 +02:00
e8ca631dee fix(visuals): sheathed items follow the model's scale, not the back joint's
The back joints sit inside the armature, authored at 100x, so scaling a
sheathed item by its joint's world scale put a shield on a Trol's back
at 250 times its size. Items are now scaled by the Visual's world scale.
2026-09-29 02:48:58 +02:00
598d709af1 fix(visuals): weapons and shields drawn by a resized player match their size
VisEquipment.AttachItem parents the item with SetParent(joint), which
keeps its world size, so on a scaled model the item's local scale was
divided by the model's. A Trol drew items 23% too small at base size,
and after sheathing in True Form they came back at human size on a
2.5x body. The item is now scaled back by the joint's scale, as if
parented without keeping world size, and follows the model from there.
2026-09-29 02:33:54 +02:00
6b020fb80a fix(package): zip paths use / so the translation files survive extraction
Compress-Archive on Windows PowerShell 5.1 wrote the entries as
Translations\English\items.json. The zip format only allows /, so on
Linux and Steam Deck each text file came out as one flat file with
backslashes in its name, Jotunn found no Translations folder and every
mod text showed as [key]. The zips are now built by scripts/package.ps1.
2026-09-29 02:07:55 +02:00
b4b6fe3758 fix(fenrir): hidden human no longer attacks or blocks under a form
The attack block patched Character.StartAttack, which Humanoid overrides
without calling the base, so it never ran; and it covered the Fenring only.
Every form swing also fired the hidden human's attack: stamina spent,
regen held at zero while it played, and forward_speed dropped to 0. Patch
Humanoid.StartAttack for all four forms, and clear m_blocking after
SetControls so the pad's heavy attack stops raising the guard.

Forms treat the player as airborne only after 0.25 s off the ground, so
bumps no longer flicker run to idle. Melee reach ignores the target's own
colliders and accepts a clear line from the eyes or the attack point, with
an opt-in hit log. Sunrise names the key that still works by day.
2026-09-28 22:19:37 +02:00
df9c768f92 feat(factions): no raids made only of allies, and allies spare the whole base
A raid whose every spawn is at peace with the player's race is struck from
the list the client sends as possibleEvents, and from the server's valid
event points when raids are world-based.

The structure veto covered only 20 m from the creature, but
FindClosestStaticPriorityTarget searches the whole view range. It now holds
while any allied player is within 100 m, and reads the per-race lists too.
2026-09-28 21:41:29 +02:00
a8d7c95e2b chore(release): v1.5.0
Version bumped in manifest.json, the packaging manifest and PluginVersion.
The changelog covers the localisation work, the Valheim 1.0 build menu
fix and the fixes since 1.4.24, and corrects the 1.4.24 note that claimed
Fenrir sounds had been writing into the world save. A Translations section
explains how to add a language, and the install step now names the folder.
2026-09-28 19:50:33 +02:00
29bd557eb9 feat(text): Italian merchant jokes, from the adaptations Nando wrote
The 90 closing jokes in Italian, taken from Factions_Battute_Mercanti.txt,
where each pun was adapted rather than translated wherever the English
wordplay had no Italian equivalent. The file wrote accents as trailing
apostrophes; they are proper accented letters here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 19:35:11 +02:00