Commit graph

418 commits

Author SHA1 Message Date
46df449c82 Merge branch 'fix-thunderstore-readme-anchors' 2026-09-30 19:52:12 +02:00
2ccb09e67a fix(package): the Thunderstore README has no in-page anchor links
Thunderstore renders the README on the mod page but does not resolve
anchors, so links like [changelog](#v151) went nowhere. The package now
gets a copy with those links turned into plain text, as nexus-readme.py
already does for Nexus. The repo README keeps them, since they work on
the wiki and the git host.
2026-09-30 19:03:06 +02:00
22237d647d Merge branch 'release-v1.5.1' 2026-09-30 16:04:17 +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
c5fb99fbbd docs(changelog): reach grows with height 2026-09-30 14:00:47 +02:00
782d49e0eb Merge branch 'fix-interact-range-scale' 2026-09-30 14:00:46 +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
be1c676c2f docs(changelog): Sverm dorsal spines off for now 2026-09-30 13:51:12 +02:00
74363e12ee Merge branch 'fix-sverm-spines-off' 2026-09-30 13:51:12 +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
f0cbef64a9 docs(changelog): Sverm brood eggs, Blister Tick effect, Frost Troll log 2026-09-30 13:46:54 +02:00
057ecd2d47 Merge branch 'fix-frost-troll-and-blister-names' 2026-09-30 13:46:54 +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
8274baf74b docs(changelog): Trol log and food, Muspell camera tested 2026-09-30 13:12:19 +02:00
5c22c5d96f docs(changelog): Trol log and food, Trenta Muspell camera and idle 2026-09-30 13:11:28 +02:00
3a538bb942 Merge branch 'fix-trenta-muspell-camera' 2026-09-30 13:11:15 +02:00
0872bca116 Merge branch 'fix-trol-log-and-food' 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
5027d2d84f docs(changelog): Trol item size, Furling fire and zip path fixes; mark untested entries 2026-09-29 04:25:29 +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
fb2a440afa Merge branch 'fix-trol-trueform-item-scale' 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
19d331789a Merge branch 'fix-allied-raids' 2026-09-28 21:44:16 +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
5807e562ad docs(readme): lead with the v1.5.0 localisation, and trim the changelog
The opening section now introduces the localisation and the release's most
visible fixes instead of the Sverm, whose own section further down is
unchanged. The changelog keeps v1.5.0 back to v1.4.20; older versions are
on the wiki's release notes, which the closing line points to.
2026-09-28 20:22:06 +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
27079af19f Merge branch 'feat/translations-merchants' 2026-09-28 19:39:17 +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
6ec8fe327d feat(text): Italian compendium, and quotes and song titles kept in the original
The compendium's 204 texts in Italian. Ability names that are quotes or
song titles stay as written in every language, by the author's call:
Purple Rain, Weight of Shadows, Like a Bat out of Hell, Swarm of Terror,
Steal Their Breath and the like, including the Italian status effects and
messages that had been translated before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 19:09:14 +02:00
5910c4f746 feat(text): the race compendium comes from translation files
Every paragraph of the compendium pages now reads from compendium.json.
Values computed from the config become $1, $2; the Sverm fire clause, which
had two wordings folded into one sentence, is two sentences. The pages'
titles are tokens that the game's Texts dialog localizes, and since those
titles are also the pages' keys in the saved m_knownTexts, the refresh
clears the old English keys too. Boss names use the game's tokens.

Song titles and quotes stay in the original, in every language.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 19:03:59 +02:00
1bd09ed31d feat(text): merchants, troops and the hive's shelf come from translation files
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>
2026-09-28 18:50:54 +02:00
594b333f68 Merge branch 'feat/translations-hover' 2026-09-28 15:13:59 +02:00
2c5079bf8c fix(build): the mod's stations appear under Crafting in Valheim 1.0's build menu
Valheim 1.0 lists pieces by Piece.m_usage tags. Jotunn sets only the old
category, so a cloned piece kept its source's tags: the Crystal Golem and
the Bound Sentry, cloned from guard_stone, landed under Decorations. A
postfix on PieceManager.AddPiece now sets the tag from the category for
every Hammer piece of this mod.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 15:06:22 +02:00
83bade65cb fix(trol): True Form no longer switches itself off as it comes on
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>
2026-09-28 15:06:21 +02:00
b555da99f2 feat(text): the Tame and Grab Log hover prompts come from translation files
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-28 13:55:45 +02:00
99a1817eb0 feat(text): hover texts come from translation files
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>
2026-09-28 13:55:14 +02:00
19d7cbacbd Merge branch 'feat/translations-messages' 2026-09-28 13:50:08 +02:00
0a0d9410e7 fix(skadi): Middle Mouse in Drake form no longer spends the attack cooldown on nothing
PerformAttackCoroutine starts the cooldown and shows its icon before it
looks at the form, and the Drake has no Middle Mouse attack, so the press
cost a cooldown and fired nothing. HasAttackForButton now answers for the
Drake too and guards all three buttons, as it already did Left Mouse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 00:52:01 +02:00