Commit graph

393 commits

Author SHA1 Message Date
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
b0d18b0654 feat(text): on-screen messages come from translation files
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>
2026-09-26 20:30:03 +02:00
b3641e5bf4 Merge branch 'feat/translations-status-items' 2026-09-26 20:24:28 +02:00
b177c89c71 feat(text): item, piece and creature names come from translation files
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>
2026-09-26 19:58:53 +02:00
9bf144aedc feat(text): status effect names and tooltips come from translation files
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>
2026-09-26 19:51:10 +02:00
c055455027 Merge branch 'feat/translations-races' 2026-09-26 19:48:29 +02:00
73b67cd6ce feat(text): the race menu reads its texts from translation files
First step of moving every piece of text out of the code so modders can
translate the mod. The texts live in Translations/<Language>/*.json, one
file per kind of text, which Jotunn finds on its own and falls back to
English for. ModText reads them; values take Valheim's $1, $2 placeholders.

This step covers the race selection menu: title, buttons, every race's
name and description, in English and Italian. The race ID and the name on
screen are now separate strings. The ID is what the save and the ZDO hold,
so it must never be translated.

The files are deployed to plugins\RacesOfValheim\Translations and packed
into both release zips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:43:48 +02:00
a835a58003 Merge branch 'fix/cold-spell-tier-text' 2026-09-26 19:30:57 +02:00
19c9347772 fix(skadi): the Cold Spell key's description says tier 2+, where it unlocks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:30:56 +02:00
731125901e Merge branch 'feat/eclipse-dusk' 2026-09-26 19:27:22 +02:00
52c26d9b52 feat(aswid): the Eclipse's dusk spends its time on the sunset
An even sweep from the afternoon to midnight looked still for three
seconds and then fell dark in half of one, because the sky hardly changes
between 0.25 and 0.75 and does its darkening around sunset. The dusk now
walks keyframes: half a second to late afternoon, three through the
sunset band, half a second to midnight.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:24:23 +02:00
055635d1b4 feat(aswid): Eclipse runs the sky through dusk instead of cutting to night
While EnvMan's debug time is on it copies the value straight onto the sky,
so setting midnight in one go made night fall in a single frame. The clock
now eases forward from the current hour to midnight over 3.5 seconds. The
dawn already eased back on its own, because EnvMan smooths towards the real
time once the switch is off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 19:16:08 +02:00
0403b6a9df Merge branch 'fix/aswid-eclipse' 2026-09-26 19:14:14 +02:00
2d718a09ec Merge branch 'main' into fix/aswid-eclipse 2026-09-26 19:04:09 +02:00
bb6af1c877 Merge branch 'fix/fenrir-sounds-spawn-like-vanilla' 2026-09-26 19:04:07 +02:00
0674329592 fix(fenrir): spawn sounds the way vanilla spawns effects, without ghost init
Ghost init was meant to keep a sound's ZNetView from writing a ZDO. It
does not: ZNetView.Awake still creates the ZDO and only skips registering
the instance, so ZNetScene sees an unbuilt ZDO and builds a second copy.
Vanilla's EffectList.Create uses a plain Instantiate, and TimedDestruction
deletes the ZDO through ZNetScene.Destroy when the sound ends. The spawn
now does the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:50:51 +02:00
8f477dd3be fix(aswid): Eclipse brings the night instead of dying on its first line
The coroutine set EnvMan's two debug-time fields the wrong way round and
asked for 0.5, which is noon. Handing a bool to the float field threw, so
the cast stopped right after the announcement and IsEclipseActive stayed
true, and every later press returned without a word. The fields are now
set directly, to midnight, and a finally frees the ability if anything in
there throws again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:29:34 +02:00
e4694f6cd9 Merge branch 'fix/ulv-footsteps' 2026-09-26 18:23:46 +02:00
5bdd7200a5 fix(fenrir): the Ulv no longer asks the player for feet called LeftHand
The form's CharacterAnimEvent finds its FootStep on the nearest Character
up the hierarchy, which for a form parented under the player is the player.
The Ulv's Run clip names its front paws LeftHand and RightHand, a human rig
has neither, and vanilla logged "FAiled to find foot" twice per stride.

The form's receivers are now cut from the player's FootStep, on the local
form and on the copy other players see. The footsteps stay: the hidden
human animator keeps running and FootStep steps off its curve.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:17:37 +02:00
58874457e0 Merge branch 'fix/radial-swallows-attack-input' 2026-09-26 18:12:36 +02:00
97d02855e5 feat(skadi): say why a Cold Spell press did not cast, and log each step of the cast
Every gate on the spell was silent, so "it does nothing" looked the same as
"it was never pressed". Each refusal now logs its reason once per session,
and the cast logs each step before taking it, because the crash it chases
kills the process without a stack trace. The prefab descriptions run after
the Instantiate, so reading them can't be what makes the spawn safe.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 18:12:34 +02:00
e973e21003 chore(input): quieten the radial proof to one line per state
The transition log did its job - it showed Hud.InRadial() reporting False at
spawn with no wheel on screen, which is what the gate depends on and what the
method's name alone could not promise. Left in, because that proof is worth
one line in every player's log, but said once per state instead of twice per
use of the wheel.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 17:30:35 +02:00
2b900d91e7 fix(input): the radial menu no longer swings the form it is opening a menu on
Clicking an entry in the race wheel also fired the transformed form's attack.
The click picks the entry AND is read here as a raw mouse button, because the
forms read the device directly rather than going through Humanoid.StartAttack.
Vanilla attacks never had this: they go through ZInput, which the radial
already blocks, so only input read straight off the device got through - which
is all of ours.

Hud.InRadial() answers it, the same shape of call as the
Hud.IsPieceSelectionVisible() already here for the hammer's build panel. That
is now the second GUI Player.TakeInput knows nothing about.

CHECKED IN AttackDown AND NOT IN Allowed, deliberately. The radial fires an
ability by queueing its keybind through Press(), and the ability's own reader
picks that up inside an Allowed gate - so blocking Allowed while the wheel is
open would risk the wheel swallowing the abilities it exists to trigger.

The second half is the same bug one layer down: an ability bound to a mouse
BUTTON does not go through AttackDown at all. Skadi's cold spell sits on middle
mouse, so middle-clicking an entry in the wheel cast it. IsDownIgnoringHeldKeys
now takes the queued press first and without any gate - that one is the radial
itself - and ignores a raw mouse button while the wheel is up. Keys at the
keyboard are untouched: nothing about an open wheel makes pressing K ambiguous.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 17:15:21 +02:00
7ad1d6920e fix(fenrir): the Ulv was mouthing a silent howl
The howl code took a playing animation as proof the sound was coming, because
the wolf's does bring it: 'C_Hawl' fires an Effect event at 0.39s holding
sfx_wolf_haul. The Ulv is the same family on the same rig and its 'Idle Howl'
carries no event at all - events=0, read straight off dumpanim - so pressing
the key as an Ulv played the animation and nothing else. The muzzle went up in
silence.

Which creatures bring their own sound is now written down rather than assumed,
and it is only the wolf. FenrirCreatureSound.Howl does the whole thing -
animation, trigger published for the other clients, and a sound unless the
animation is already carrying one - so the four forms call one line and the
distinction lives in one place.

The Ulv's hold also went from 3.3s to 3.8s: it was the wolf's clip length,
copied, and 'Idle Howl' runs 3.67s.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 16:55:19 +02:00
cd10722594 docs: say that the Cultist's fire breath runs on eitr
The feature list said "Transform into a Cultist to use fire abilities" and
never mentioned a cost. The flames take 12.5 eitr per second, and eitr comes
from the Mistlands while the form unlocks at Yagluth - so the form can be had
with its signature attack still out of reach. Both the feature bullet and the
changelog say so now.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 16:27:42 +02:00
6b43d3544e feat(fenrir): say why the fire breath did not come, and log a Draugh's parry
Holding right mouse as a Cultist with no eitr did nothing whatsoever - no
flames, no sound, no reason given. The form arrives at Yagluth and eitr is a
Mistlands thing, so a Cultist meets that silence before it ever meets the
fire. It now says "Only breath comes out. The fire wants eitr." on a
three-second timer, since the button is read every frame and the message would
otherwise be a wall.

The parry that fires the Draugh's poison splash is logged, with the block
timer against the window and whether the splash effect resolved. A parry has
to land inside a quarter-second window while blocking, so "nothing looks
different after tier 3" is as likely to mean the window was missed as it is to
mean the splash did not draw, and there was no way to tell those apart.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-26 14:00:21 +02:00