Azrael's Mods

← All RimWorld mods

Deep Colony

Perks, trauma, lineage

RimWorld 1.6 / 1.7Requires HarmonyFive systems

Your colonists are more than their stats. Five interlocking systems give each colonist a real identity — and make the colony feel like it has a living history. Not more furniture. Not another raid timer.

One Deep Colony tab with Perks, Legacy, Reputation and Body & Codex pages, plus a Family inspect tab (Rows or Pedigree). Soft and Default keep power systems and attitude consequences off; Hard enables skill-20 capstones, branching perks, chronic trauma, and attitude-driven trade / caravan / raid pressure.

Download deep-colony-2.0.0.zipSteamNexus

Deep Colony preview

What it does

Perks

Every colonist's trees at a glance, filters, and archetypes on each row. Perks grant themselves at skill 5 / 10 / 15 / 20 — no points to spend. If the skill drops, that perk lapses.

Legacy

Founder bloodlines, teaching lineages, traumatized count, remembrance names, estate heir, and Export chronicle (clipboard + a text file next to RimWorld saves).

Reputation

Per-faction ledger: what moved goodwill, when, and what drift is still pending. Ally / hostile filter, tribute, envoy visit.

Family inspect

Kin on the Character pane — Rows or Pedigree. Click a relative to jump to them. Dead kin included; teaching line listed separately.

v2.0.0Current

  • One Deep Colony tab — the Perks, Legacy, Reputation and Body & Codex main buttons are now one DC_Hub button (MainTabWindow_DeepColony) with sub-tabs. Perks hides while perks are off, Reputation while reputation is off, Body & Codex while both are off. The old windows are HubPanel_* pages; their rows rebuild at most twice a second.
  • Inspect lines — muscle memory (skills below their recorded peak, which learn at double speed;), the top three counselors by sessions, and the skill a rivalry formed over (lastRivalSkill / lastRivalId on the comp;).
  • Past mentors in the family tree — the comp saves pastMentorIds (newest last, max 8) next to teacherLineage. The teaching row shows them after the current mentor (two in pedigree style) with a blue-grey node and a "Past mentor" label when they are not kin. Mentors recorded before 2.0.0 are names only and stay in the inspect chain.
  • NPC perks setting — npcPerks (default on, so nothing changes unless you turn it off). Off: visitors, traders and raiders skip perk sync and perk hediffs, which is most of the cost when a big raid or caravan spawns; a pawn who joins the colony gets their perks then (SetFaction postfix).
  • Soft Multiplayer — every player action (perk switch/forget/relearn, heir, divorce, envoy, mentor, retrain, tribute, Codex notebook) goes through DeepColonyPlayerCommand.Submit(byte, int, int, string, string), registered with Multiplayer.API.MP.RegisterSyncMethod by reflection (no DLL). Counselling is a vanilla job, which Multiplayer already syncs. Mod settings are not synced: every player needs the host's settings. The "MP-safer" queue of 1.8.1/1.9.0 was client-local and did not sync. Two-client test still to do.
  • Nemesis grudge — with Nemesis loaded, when the nemesis kills a colonist, colonists on that map who liked the victim (opinion 20+) or are related gain the new "hunted" trauma (DC_Trauma_Hunted, MayRequire Nemesis), whose thought names the nemesis, plus a grudge against its faction. Uses Nemesis.NemesisCompatApi.IsNemesisPawn, bound once to a delegate (fail-open).
28 more changes in v2.0.0
  • DeepColonyApi — public read-only signals for the Azrael storyteller and other sister mods: ColonyTraumaLoad, IsColonyMourning (5 days after a colonist death), DaysSinceLastColonistDeath. ApiVersion 1. Nothing reads it yet.
  • Deep Roots in Chinese and Russian — the scenario's label, description, summary and opening text have ZH and RU DefInjected files.
  • Compatibility matrix — Deep Colony/COMPATIBILITY.md lists every mod and DLC bridge with its 1.6 and 1.7 status (all untested in game).
  • Save upgrade — GameComp_DeepColony saves dcSchema (2). A save without it (1.10.x and older) is upgraded once on load: every Deep Colony comp, world pawns included, drops comfort/reconcile/counsel entries for pawns that no longer exist, and the funeral set drops gone pawns; the counts go to the log. One-way: the pruned entries are not restored if the save goes back to 1.10.x. Class names, namespaces and scribe labels are unchanged.
  • Default preset — Default no longer resets the display and compat switches (pedigree tree, perk hediffs, visitor announcements, NPC perks, diplomacy compat); it now behaves like Soft and Hard. No preset touches the birth safety net. "Reset to defaults" still resets everything. Before the mod is constructed, DeepColonySettings.Get returns one shared defaults instance instead of a new object per call.
  • Odyssey crash trauma — patch IncidentWorker.TryExecute; allowlist Odyssey gravship-crash incidents (no bare "Crash" substring).
  • Touch comfort save growth — seed only colonists/prisoners/guests; daily prune of stale pawn IDs; skip empty ID-keyed collections on save.
  • Chronicle export on 1.7 — the clipboard write is wrapped; if it fails the text file is still written, and if both fail a message says so (DC_ChronicleFailed).
  • Birth safety net setting — turning enableBirthSafetyNet off now also turns off the failed-birth finalizers (labor teardown, GeneratePawn for newborns, ApplyBirthOutcome); before, only the newborn pawnkind clone obeyed it. WorldPawns.RemovePreservedPawnHediff also swallows NullReferenceException, which CoreCLR can throw where Mono threw KeyNotFoundException.
  • Stale player commands after a load — the static command queue is cleared in the GameComp_DeepColony constructor (new game and load), so a perk, heir, divorce, envoy, mentor or tribute click queued just before loading can't hit the next save's pawns that reuse the same id numbers. Drain swaps two buffers instead of copying the list.
  • Tribute with no map — silver tribute takes the silver from the first player home map that holds 200, instead of Find.CurrentMap ?? Find.Maps[0], which threw with every map gone and depended on the viewed map.
  • Wary trader block rate — ShouldBlockTraderCaravan uses Rand.ChanceSeeded(0.35, HashCombineInt(faction.loadID, DaysPassed)), so a wary faction blocks caravans on about 35% of days however often the storyteller re-checks.
  • Ideology funeral — the funeral check reads LordJob_Ritual.Ritual.def (a field; the old GetProperty("def") never matched) and the corpse from the grave or casket in selectedTarget. The ritual has its own processed key, so burying the body first no longer uses up the funeral's ease.
  • Strata firestorm and gas trauma — the firestorm check looked for a Strata_Firestorm game condition that Strata never had, and deep gas poisons through a hediff with no damage, so neither ever fired. A pawn burned while carrying Strata_GasInhalation now gets fire trauma (gas firestorm), and a pawn downed by deep gas poisoning gets toxic trauma.
  • Birth safety net clone — the newborn PawnKindDef copy uses object.MemberwiseClone, which copies base-class private fields too. Force-detaching stuck labor calls hediffSet.DirtyCache.
  • Settings grouped by system — Perks, Trauma and therapy, Mentoring, Family, Faction reputation, Body and Codex, Safety, Display. The "Power systems", "Later systems", "Tuning", "Family join" and "Touch traits" headings are gone (keys removed in EN/ZH/RU). Settings stay global ModSettings; moving gameplay toggles into a per-save component was not done (Multiplayer needs the host's settings instead).
  • Performance — SkillRecord.Learn looks the comp up once (passed Prefix → Postfix in __state) and the blackboard/classroom multiplier is cached per apprentice for 250 ticks, with the Blackboard def looked up once. Perk sync uses a startup PerkIndex (reverse exclusivity map, grant order) instead of rescanning every perk per perk. The rivalry sweep runs in ten slices every 250 ticks instead of one O(n²) pass an hour. One PawnIdIndex (built once per tick on demand) replaces six pawn-id scanners. The colonist inspect string is cached for 120 ticks or 2 s real time; the perk tree layout until the capstone/branching settings change; the family tree per pawn for 1 s. The hourly stuck-labor sweep covers only map and travelling pawns with a labor hediff (the full world sweep still runs on load). The perk gizmo icon loads once at startup.
  • Multiplayer-safe state — the founder surname comes from player home maps in Find.Maps order and the envoy trade bonus from the negotiator's map, not Find.CurrentMap (per-client view). A child's pending "left home" beat and the failed-birth recovery letter set are saved (pendingLeaves, birthRecoveryLettered) instead of being lost on save. The daily prune builds one id set instead of scanning every pawn per key.
  • Direct calls instead of reflection — RecruitUtility.Recruit and ResearchManager.AddProgress are public in both 1.6 and 1.7 and are called directly. Debug actions use internal accessors instead of reflecting into Deep Colony's own fields. [ThreadStatic] dropped from two main-thread counters. The tracker pawn fields stay on AccessTools.FieldRefAccess (a compiled accessor that also works on net472).
  • RimWorld 1.7 build — DeepColony.1.7.csproj targets net10.0 against Krafs.Rimworld.Ref 1.7.4998-unstable and Harmony 3.0.0-rc.4. 1.6 keeps its net472 build from the same source. LoadFolders.xml loads / plus the version folder.
  • 1.7 patch targets checked — every string-named Harmony target (CanFireNowSub, BirthdayBiological, TryExecuteWorker ×2, MakeDowned, PlantCollected, SuccessChance), the tracker pawn fields, ResearchManager.AddProgress, RecruitUtility.Recruit and LordJob_Ritual members exist in both the 1.6.4871 and 1.7.4998 reference assemblies. No transpilers.
  • Stormproof compat API — the ion-storm trauma check asks Stormproof's StormproofCompatApi.IonStormActive (ion storm or dry lightning front) through the shared Common/Sibling/StormproofClient.cs (fail-open) instead of looking conditions up by def name. Needs Stormproof 2.0.0; older Stormproof counts as absent.
  • Bridge allocations — the RimPacts and Despicable 2 bridges cache their ParameterInfo[] when they bind instead of calling GetParameters per event. The Anomaly entity check matches against a PawnKindDef set built once instead of eight substring tests per hit. Living World stays on reflection until its compat API is released.
  • Logic and translation tests — Tests/DeepColony.Tests (xUnit, run in CI) compiles Deep Colony/Source/Pure: touch-comfort tiers and gain (TouchComfortMath), unique hourly phase offsets (TickPhaseOffsets, which replace the magic numbers at each TickPhase.Due call; the prune offset 2689 is now 189, the same phase), attitude thresholds and ledger merging (FactionRepMath). It also fails if a Keyed key is missing or stale in ZH/RU, or a labelled def has no ZH/RU label. Not covered: presets (they live on ModSettings).
  • Nullable reference types — on in Data/, Patches/ and Pure/, with no warnings. The raid postfix drops a duplicate map check, and relearning a perk on a comp with no pawn returns early instead of throwing.
  • Store copy — About.xml and the site card describe Deep Colony 2: one tab, both game versions, soft Multiplayer, the Nemesis trauma, the one-time save cleanup and COMPATIBILITY.md.
  • Separate 1.6 and 1.7 assemblies. Official 1.6 loads 1.6/Assemblies. Unstable 1.7 loads 1.7/Assemblies.
  • Changed: One Harmony patch class per vanilla method for Pawn.Kill, SpawnSetup, MakeDowned, Ingested, SetFaction, AddDirectRelation, and raid TryExecuteWorker. Same utility calls in the same order. Shared one FieldRef per tracker. Deleted leftover Patch_BatchC / Patch_BatchD dump files. Settings heading key is DC_Settings_LaterSystems. Odyssey crash hook lives in Patch_Events on TryExecute.
Older versions (v1.10.0, v1.9.1, v1.9.0, v1.8.1, v1.8.0, v1.7.0, v1.6.8)

v1.10.0Download v1.10.0

  • Workshop preview — new About/Preview.png (perk-tree constellation over a hearth). Docs card synced.
  • Changed: Declared RimWorld 1.7 in supportedVersions alongside 1.6. Existing 1.6 DLL; no gameplay change.
  • Changed: Removed unused save flags, perk-alert bookkeeping, unused helpers, unused NoisyRoom DefOf, and a stale build SHA. No gameplay change; old saves still load.
  • Changed: Dropped unused Thought_Trauma.rememberedFactionId (grudges still use GrudgeUtility / comp.grudgeFactionIds; old saves ignore the removed scribe field) and unused Comp_DeepColony.QualifiesFor. Startup uses ModVersionLog.Write (stamp colony-overview-v1); the duplicate short version log in the Mod constructor is gone. Trimmed decorative // ── banners in Patch_BatchC, Patch_Events, DefOfs, and DebugActions.
  • Changed: Dropped unused EN/RU/CN keyed leftovers (DC_MentorSelf, DC_FamilyTree_PedigreeToggle, DC_InspectTouchAverseNone, DC_RomanceBlockedTouchAverse, DC_RepEnvoyShort). Live copies remain (DC_MentorInvalid, DC_FamilyTree_StylePedigree, DC_InspectTouchNeedNone, DC_RomanceBlockedTouchTier, DC_RepEnvoy). Ticket-ID prefixes stripped from Comp_DeepColony field comments and a few utility headers. No gameplay change.
  • Changed: Removed the leftover perk-points economy (always-zero Points column, Unspent filter, dead Recruits-arrive-pre-perked checkbox, unused point-grant debug). Perks still auto-grant at skill 5/10/15/20. Old saves still load: availablePerkPoints and elderPerkGranted are swallowed by dummy Scribe_Values.Look locals.

v1.9.1

  • Changed: Declared RimWorld 1.7 in supportedVersions alongside 1.6. Existing 1.6 DLL; no gameplay change.

v1.9.0Download v1.9.0

  • Body & Codex tab — one colony-wide view of who is ill, convalescing, or weakened (and whether they are in an infirmary), archives per home map, researchers at risk, and what each notebook holds. Click a name or notebook to jump to it. Hidden while both systems are off.
  • Research at risk alert — with the Codex on, warns while a skilled researcher (Intellectual 8+) has no archive on their map and a project is in progress, before a death costs the colony progress.
  • Forget a perk — the perk tree has a Forget button (with confirmation) when respec is on. The perk stays off until you press Relearn; auto-allocation no longer brings it back by itself. Turning respec off lets auto-allocation restore forgotten perks.
  • Epitaphs — remembered colonists now show their age and how they died (killer, illness, or injury) in the Legacy tab and the chronicle export. Deaths recorded before this update keep just the name.
  • Contagion only spreads real diseases — roommates now catch flu, plague, and other disease-incident illnesses only. Tumors and wound infections no longer jump to healthy colonists.
  • Pawn death can no longer break on a Codex error — if the research-loss call fails on a future game build, Deep Colony logs one warning and the death goes through normally.
  • Living World events fail open — a changed event field type in Living World is ignored with one warning instead of throwing on every event.
  • Perk switch and heir choice apply on the next tick — the perk tree Switch button and the Legacy tab heir menu now go through the same queued command path as the other player actions (multiplayer-safer).
  • Mod description lists all seven systems, including the optional body and Codex.
  • Changed: Respec setting tooltip no longer mentions refunded points (perks auto-allocate).

v1.8.1Download v1.8.1

  • Added: CN/RU DefInjected for body hediffs, Codex notebook, counseling Ideology precepts/issue, 12 tier-1 perk hediffs, Horror + Isolation thoughts.
  • Added: Reputation tab per-reason ledger totals.
  • Added: Chronicle export includes faction reputation summary when enabled.
  • Added: Clickable pawn names on Legacy and Reputation tabs (Family Tree jump pattern).
  • Changed: Player Codex / divorce / envoy / mentor / tribute actions enqueue and apply on the next game tick (MP-safer, no Multiplayer.API).
  • Changed: Assembly InformationalVersion aligned to 1.8.1+body-codex-v4.
  • Fixed: Unspent perk points alert removed — perks auto-allocate; alert must never fire.

v1.8.0

  • Version baseline — minor bump to start the next ship cycle above current Steam / Nexus / GitHub releases. No Workshop/Nexus upload in this change.

v1.7.0

  • The body (body-codex-v1) — optional contagion in-room + convalescence hediff. Off by default.
  • Infirmary / lingering weakness — medical-bed rooms (or vanilla hospital) slow contagion and ease convalescence; drafting outside can relapse; some recoveries leave a long-tail hediff.
  • Codex — optional notebook that records the current research project. Off by default.
  • Codex resume, graduation gift, archive — notebook can resume stored research; apprenticeship can drop a notebook; archive shelves keep the current project if a researcher dies (Codex on). CN/RU.

v1.6.8

  • Stuck labor restores a healthy pregnancy (labor-restore-v1) — the load sweep force-removed every Hediff_Pregnant on colonists and animals. Recovery no longer aborts. Failed or wedged labor is detached without running birth teardown, then a late Hediff_Pregnant is put back with the same parents/genes. Healthy pregnancies are left alone. Already-wiped pregnancies from a previous load cannot be reconstructed.

Good to know

  • Soft and Default keep branching power systems and attitude consequences off; Hard enables branching L15 picks, chronic trauma, and attitude-driven trade / caravan / raid pressure. Skill-20 capstones default on.
  • Perk hediffs stay off the Health tab unless Show perk hediffs is on.
  • Birth safety net (default on) keeps race-mod newborns from failing generation.
  • Deep Roots scenario is a generational-colony showcase start; locks Azrael when Homesteader is loaded.
  • Safe to add mid-save. Requires Harmony.

Works with

  • BiotechA blackboard in the room boosts mentoring XP
  • HomesteaderGrand Chef extra mood on pantry foods; polyarmory cannot force a bed share a touch-averse pawn still refuses
  • Date NightDate Night owns romance jobs; lovers reach confidant in two counsel sessions
  • StrataEmpty-nest and homecoming ignore stair hops; cave-ins, deep gas poisoning and gas firestorms use existing trauma
  • StormproofIon-storm downs apply existing trauma with a keyed reason
  • NemesisHunt epitaph can copy onto Legacy letters; when the nemesis kills a colonist, those close to them carry a hunted trauma that names it
  • MultiplayerSoft support: Deep Colony actions are synced; every player needs the host's Deep Colony settings
  • Living WorldFail-open goodwill consumer for decisive victories / betrayals / refugee flights
  • RoyaltyTitles sort envoy candidates first; titled envoys add a little extra goodwill
  • IdeologyCounseling sacred vs stoic precepts; funerals ease violent-loss trauma
  • Humanoid Alien RacesBirth safety net sanitizes newborn kinds so HAR babies generate

Report a problem

This report is for Deep Colony on RimWorld.