Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
LordsLadies
Earn your name. Skill titles on every nameplate, fame and karma from every kill, Lord and Lady titles at the top, and blue, grey or red names for the innocent, the criminal and the murderer. Server-authoritative.
CHANGELOG
Changelog
0.2.0
Choose the title you wear, and how much of your fame and karma title shows. Still one mod, on the server and on every client.
Added
- Choosing a skill title. Any title the player has earned can be worn, not only the highest. Automatic (the highest, as before) stays
the default. A chosen skill that stops counting (below 30, or taken off
Skill Nouns) falls back to the highest and comes back when it counts again. - Choosing the fame and karma style. Full ("The Glorious Lord"), Word only ("The Glorious"), Rank only ("Lord" or "Lady") or Hidden. An infamous standing, karma -625 or below (Rude, Disreputable, Notorious, Infamous, Dishonored and every word under them), always shows in full whatever was chosen: a player can hide their glory, never their shame. The name's colour (blue, grey, red) always shows.
- Kept in the character. Both choices are saved in
Player.m_customData(wubarrk.lordsladies.title_skill,wubarrk.lordsladies.rep_style), so each character keeps its own on any machine.Show My Title(F8) stays a setting of the machine. - Titles page in the Compendium (inventory, then Compendium, then Titles): a live preview of the player's own plate ("How others see you"), a skill-title drop-down (Automatic, each earned title, Hidden), a fame-and-karma drop-down (Full, Word only, Rank only, Hidden), and the player's fame, karma and notoriety.
- Skills panel. Click a skill at 30 or above to wear its title; click it again for automatic. ★ marks the one worn.
titlecommand (client, the player's own):titlelists the earned titles numbered, marks the worn one and whether it is automatic, and prints the plate as others see it;title <n>ortitle <part of a skill or title>wears one (an ambiguous or unknown name says so);title auto;title hide/title show;title style full|word|rank|hidden(says when infamy overrides it, or there is no standing yet);title help.Cycle Title Key(Shift+F8, local): automatic, then each earned title highest first, then automatic again, with a message top left ("Title: Master Blacksmith", "Title: automatic (Master Blacksmith)", "No titles earned yet"). F8 does not also fire with Shift held.- For other mods:
LordsTitles.LocalReputationTitleandReputationTitleFornow give the title as the player chose to show it, andChangedis also raised when a player changes their style.
Fixed
- Joining a second world in the same run sent your title only at the next heartbeat, so for up to a minute nobody there saw it. It is sent as soon as the new session starts.
Compatibility
- The style travels on a routed RPC of its own (
wubarrk.lordsladies.rep_style), sent with the title on every change and heartbeat. A 0.1.0 client ignores it: it still sees every skill title, chosen ones included, and shows everyone's fame and karma title in full. A 0.1.0 player never sends a style, so they show in full to everyone.
Tested
- 416 off-game checks (47 new): every earned title in order (highest first, ties in list order, below 30 left out), the chosen title and its fallbacks, each style for a Lord, a Lady, below Lord and the plain cells, the infamy lock at karma -625 against -624, and a style read from the wire.
Known limits
- Like the skill title, the style is declared by the player's own client. A modified client could hide another player's glory, but not their shame: infamy always shows in full.
0.1.0
First release. Skill titles, fame, karma and notoriety for Valheim, as one server-authoritative mod. Runs on the server and on every client.
Added
- Skill titles. Each client works out its own title from its highest skill: a level word (Neophyte 30, Novice 40, Apprentice 50,
Journeyman 60, Expert 70, Adept 80, Master 90, Grand Master 100, Elder 110, Legendary 120) and the profession noun for that skill, e.g.
"Master Blacksmith". Below 30 there is no title. A tie goes to the earlier skill in the list. The female player model gets the female
noun ("Swordswoman"). Titles are broadcast with a routed RPC, sent again on change and every
Title Heartbeat Seconds(60), and drawn on their own line under the name.Toggle Title Key(F8) hides or shows yours; the title stays earned. - Skill nouns (
Skill Nouns): 34 pairs by default, covering Valheim's skills and the Smoothbrain skills (Blacksmithing, Mining, Cooking, ...). A Smoothbrain skill is read by the hash of its English name; a skill that is not installed counts as level 0 and never adds an entry to the character's skills (so it cannot break a character save). - Fame and karma, decided on the server. Fame runs 0 to 15,000, karma -15,000 to +15,000. A creature kill is worth its fame / 100 and
-karma / 100 from
creature-reputation.json(163 creatures, beside the DLL), times a star multiplier. A creature not in the table takes a fallback by base health (hostile: bad karma; passive: 0). A gain is cut by the player's own value / 100 and a loss deepened by it. Each damager's award is divided across their party (LordsReputation.PartyOf, default no party); only players online and withinKill Credit Radius(100 m) share.Max Awards Per Minute(120) caps what a lying creature owner could credit. - The fame and karma title in front of the name: "The Glorious Lord Rohan". 5 fame rows by 11 karma columns; Lord or Lady from fame 10,000. Shown to everyone.
- Notoriety. Blue (innocent), grey (criminal), red (murderer), in the name's colour. Striking a blue player outside a safe haven makes
the attacker grey for
Criminal Seconds(120); self-defence and striking a grey or a red are no crime. A player killed by a criminal is asked whether to report each one (4 s after death); a report adds a short-term and a long-term murder count and sets the killer's karma to counts xKarma Per Murder Count(-1000). Red atRed At Counts(5) long-term counts. Counts fall with play time: short-term perShort Term Murder Hours(8), long-term perLong Term Murder Hours(40). A victim cannot report the same killer twice in 10 minutes. - Death.
Death Costs Fame(on): a tenth of the player's fame, deepened like any loss (5,000 becomes 4,450). Killing a player gives those who fought them in the last 30 seconds the victim's fame / 100. - Safe havens (optional):
lordsladies-havens.jsonin the world's save folder, the TerroritySmellatory territories format; only rectangles with"pvp": "ForcedOff"count. No file: no havens. - The store:
worlds_local/<world>.lordsladies-reputation.json, keyed by platform id and player id, written with a safe swap and a.bak, saved every 60 s and on world save. A bad file is recovered from the backup; a file from a newer version is opened read-only. A self-check proves the writer, the reader and the swap before the first write. - Commands:
sins(your counts, fame and karma) andllrepfor admins (list,status,fame,karma,counts,award,criminal,pardon,save,unlock), run on the server and answered in the admin's console. - Settings sync (ServerSync): every gameplay setting is the server's, locked to admins;
Show My Title,Toggle Title KeyandLog Eventsstay on each machine. An edit to the server's cfg is read at once and reaches every player. - For other mods:
LordsLadies.LordsTitles(titles, fame and karma title, notoriety colour,Changedevent) andLordsLadies.LordsReputation(fame, karma, notoriety,CrimeandDiedevents,AwardFame/AwardKarma,PartyOf).
Safety
- Every message the server takes is checked against the connection it came on (a client cannot speak for another player). Hooks are bound one class at a time, so a game update that breaks one costs that feature only.
Tested
- 369 off-game checks on the rules: awards, diminishing returns, death, parties, title tables, skill titles, murder counts, fights and reports, the creature table (including the shipped one), the store and its recovery, safe havens, crimes, and the engine end to end.
Known limits
- A skill title is worked out on the player's own client, so a modified client can claim any title. Fame, karma and notoriety are the server's.
- Not for use alongside VALtimaOnline, which carries these same systems (declared incompatible).