Azrael's Mods

← All RimWorld mods

Strata

Dig down, build up

RimWorld 1.6 / 1.7Requires HarmonyOdyssey optional

One home, many floors. Carve rock under your colony, frame a roof deck above it, and treat every floor as one settlement. Colonists commute for work, food, rest, hauling, medicine, combat, and construction. Heat, power, smoke, and (optionally) pipes follow the shafts with them.

Tag floors as Farm, Freezer, Workshop, Barracks, Quarry, Storage, or Hospital so hauls and rest tilt the right way. Stamp walls onto the next level. Call the elevator. See and shoot through open sky. Odyssey gravship stacks stay linked through launch and land.

Odyssey unlocks gravship stairwells and ship stacks only — dig, tower decks, atmosphere, and colony logistics work without the DLC. Default level cap is ±2 (Unlimited off). Do not run alongside AASB, AASB 2, MultiFloors, True Z-Levels, True Levels, Z-Levels, or Pathfinding Avoidance.

Download strata-4.2.0.zipSteamNexus

Strata preview

What it does

They commute

Idle colonists notice mining, blueprints, hauling, and bills on other levels and walk the stairs. Hungry and sleepy pawns find meals and beds across the stack. Haulers deliver through shafts; force-build pulls materials from linked stockpiles.

Level purpose tags3.5

Farm, Freezer, Workshop, Barracks, Quarry, Storage, Hospital, or none — set from the rename dialog or the Levels tab. Matching tags only tilt equal-priority hauls and rest; wrong tags never block a job.

Levels tab tools

Rename floors, stamp walls/doors/floors (and optional stockpiles) onto a linked floor as blueprints, call / hold / priority elevators, and toggle a support overlay for excavated cells past a roof holder.

See-below roof decks

Look through open sky and see-through deck into the map below — terrain, buildings, live pawns and projectiles. Click-select, float menus, and forbidden overlays work on what you can see.

Cross-level combat

Pawns, turrets, and mortars fire through open shafts and sky holes. Combat Extended guns included. Auto-engage keeps decks and underfloors in the fight without hopping maps by hand.

v4.2.0Current

  • Select and order across floors (CrossFloorSelection, CrossFloorDraftedMove, setting crossLevelSelectionEnabled, default on): MapInterface.Notify_SwitchedMap keeps selected colony pawns that can use level portals and stand on a floor linked to the new view. Selector.SelectInternal selects such a pawn in place instead of switching maps (portrait single-click; double-click still jumps), and a shift-add on the viewed floor keeps the linked ones. SelectionDrawer.DrawSelectionOverlays leaves out selected things on other floors (see-below ones still draw). Drafted move for a pawn on another floor (PawnCanGoto / PawnGotoAction, the single-pawn "Go here" option and MultiPawnGotoController.RecomputeDestinations) becomes a ForcedOrder stair trip that stays drafted and ends in a Goto to the clicked cell; shift-clicks on the same floor queue more stops.
  • Gatherings across floors (CrossFloorGatherings, setting crossLevelGatheringsEnabled): when ThinkNode_JoinVoluntarilyJoinableLord finds nothing on the pawn's map, it looks at linked floors (rituals excluded, RitualTravel handles those) at most every 300 ticks per pawn and relays the pawn there with RelayPurpose.Joy; vanilla adds them to the lord on arrival.
  • Fuel from another floor (RefuelAcrossLevels, setting crossLevelRefuelEnabled): RefuelWorkGiverUtility.CanRefuel passes when only local fuel is missing and a linked floor has a reachable stack; RefuelJob then sends the pawn there, PortalRelayChain hands the arrival to RefuelAcrossLevels.TryFinishFetch (HaulToLevel back), and TryStartHaulDelivery refuels that building first. A failed fetch cools down for 2500 ticks per building.
  • One-way stair ends (CompStairPassage, injected on every Strata portal def next to CompStrataShaftLink, saved as strataClosedToColony): "Allow going through" toggle per end. Closed ends are skipped by StrataPawnUtility.PortalInAllowedArea (so LevelGraph.BestFirstStep and every relay), DraftedPortalPathing detours, the vanilla Enter gizmo and float-menu option, and any JobDriver_EnterPortal fails into them. Applies to player-faction pawns not in a mental state.
  • Hungry pawns keep their work trip when there is no food: NeedsBreak.WantsFood only looked at the food level, so a hungry pawn arriving on a work floor dropped the trip even with nothing to eat anywhere. Hunger now also requires food to be findable on this floor or a linked one.
  • Pick Up And Haul keeps personal supplies: cross-floor TryDeliverInventory dropped every haulable in inventory (medicine, drugs, packed food). It now unloads only items tagged in the haul mod's CompHauledToInventory set, still by reflection with no hard dependency.
3 more changes in v4.2.0
  • Materials for a local build get carried: Strata_HaulToLevel with both targets on the pawn's map stayed treated as a cross-floor order, and a discarded other-floor work scan left the stack reserved. Same-floor hauls stay local, and failed scans release reservations before the job is pooled.
  • Babysitters pick the baby up before climbing: JobDriver_BringBabyToLevel no longer fails the carry toil before TryStartCarry finishes.
  • RimWorld 1.7 Workshop DLL matches 4.2.0: an earlier Workshop pack shipped a pre-4.0.0 1.7/Assemblies/Strata.dll, so magma vents, lost diaries, level kinds and Deep Survey threw missing-type errors at startup while 1.6 was fine. This upload ships a 1.7 DLL built from the same source. ModChecks XmlClassTypes now also checks element-text type names (<compClass>, <placeWorkers><li>, …) so CI catches the mismatch.
Older versions (v4.1.0, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.19.2, v3.19.1)

v4.1.0

  • Deep Survey: a powered seismograph has a "Survey below" gizmo. A researcher (Research work type, WorkGiver_StrataDeepSurvey, about 2500 work at research speed 1) works the console, and the result is locked for the next level under the deepest dig-down level of that colony stack: level kind (StrataLevelKinds.PickForDepth), rich ore grade and gas grade. It shows in the seismograph inspect pane and next to that level in the Levels tab.
  • Added: The dig uses the locked roll: GenStep_StrataLevelKind claims it (DeepSurvey.TryClaim), GenStep_RichOreNodes adjusts its node count (low = 1, high = one more), and GenStep_HiddenChambers uses the gas grade (low = none, moderate = 1 to 2, high = 3 or more chambers). The magma layer still wins at its depth, and a surveyed flooded or lost-floor kind falls back to standard if that kind was turned off since.
  • Added: Saved: GameComponent_StrataDeepSurvey (strataDeepSurveys, one record per stack) and the seismograph's strataSurveyRequested / strataSurveyWork. New JobDef and WorkGiverDef Strata_DeepSurvey; new Strata_DeepSurvey_* keyed strings (English text in the Chinese and Russian files for now).

v4.0.3

  • Data loaded with a save was wiped right after loading: StrataSessionReset.Run() ran in a Game.FinalizeInit postfix, but RimWorld runs Map.FinalizeLoading → Map.FinalizeInit (map components) and every spawn / PostLoadInit hook before Game.FinalizeInit (checked in the 1.7.4998 game DLL). So statics filled during load were cleared again: StrataLevelKinds (a magma, flooded or lost-floor level read as standard after loading, for example magma levels fell back to the normal geothermal temperature) and StrataCagedBirdRegistry (caged birds counted as loose and took room gas harm). The reset now runs as a prefix on Game.LoadGame and Game.InitNewGame, before any map loads. CompShaftFluidTie.ResetSession is a plain clear again.
  • Tripped power shafts kept their last transfer (3.12 review item 7): when the power-shaft fault guard trips, CompPowerShaft.HoldAllIdle sets every shaft back to its own base load, so no free power or phantom drain stays on either net.
  • Generic cross-floor scan pawn state (3.12 review item 10, setting default off): a probe on another floor now restores priorityWork (JobGiver_Work clears player-prioritized work it can't find on that floor) and nextMoveOrderIsWait unless the probe returns the job.
  • Changed: StartsWith / EndsWith on def names use StringComparison.Ordinal (9 sites).
  • Changed: Low-oxygen alert checks only the rooms colonists stand in instead of every room on the map; dropped a redundant upper-level check in the oxygen and CO2 alerts.

v4.0.2

  • Gas past sealed portals: GasGrid.GasCanMoveTo's postfix no longer walks the cell's things with three defName.StartsWith per building. New SealedPortalCells keeps a per-map set of cells under sealed Strata portals, rebuilt when LevelGraph.Epoch (portal spawn/despawn) or a seal changes (CompStairwellControl toggle or Unseal call SealedPortalCells.Notify_SealChanged).
  • Gas pipe networks: GasPipeUtility.ForEachNetwork caches each map's networks and rebuilds them only when a Building_GasPipe spawns or despawns, instead of scanning AllThings and flood-filling every atmosphere cycle. CollectNetwork is now breadth-first, so a long pipe run cannot overflow the stack.
  • Shaft fluid: ShaftFluidBackend.IsActive is resolved once (ComputeIsActive) instead of calling ModLister.GetActiveModWithIdentifier on every pulse and inspect. CompShaftFluidTie keeps a per-map list of spawned ties, so a failed Dubs Bad Hygiene PullWater no longer scans every artificial building.
  • Odyssey check: StrataGravshipUtility.OdysseyActive (34 call sites, including the MapTemperature.OutdoorTemp postfix) uses the game's cached ModsConfig.OdysseyActive.
  • Sister-mod patches: the root cellar rot patch (CompRottable.TickInterval) and the irrigated soil patch (Plant.GrowthRateFactor_Fertility) have Prepare(), so they are not applied, or fault-guard wrapped, without Homesteader or Wellspring.
  • Loading dock bonus: HaulRelayCapacity.NearDock (used by MassUtility.Capacity and Pawn.TicksPerMove) returns at once on maps without a loading dock.
  • Fault guard: CompPowerShaft.CompTick and CompSumpPump.CompTick guard themselves in code; they are no longer wrapped by a Harmony prefix and finalizer on every tick.
  • Thing lookups by id: six copies of find-by-id that each walked AllThings are replaced by StrataThingLookup, which remembers the last hit per id while it is still spawned.
  • Alerts: "Caravan goods below" now throttles on real time (the dialog pauses the game), reads the dialog's map through a cached field ref instead of Traverse, and stops at the first valuable item. "Canary warning" reads only things of canary-cage defs instead of every colony building.
  • Performance: CrossFloorReserve.CanReserve reuses one list instead of allocating per call. Ordinal string compares in HaulRelayCapacity, SisterModBridges and CompShaftFluidTie.

v4.0.1

  • Removed: Unused members with no caller in the repo: AtmosphericMix.NitrogenFraction, CompCageFoodStorage.InnerContainer, CompCagedBirdBase.ContainedBird, CompCanaryCage.ContainedCanary / HasLiveCanary, CompPowerShaft.LastTransferWatts / MaxTransferWatts, FloodMapComponent.AnyFlooded, CompGravshipHeatsink.StoredHeat / MaxHeat, CompGravshipOxygenTank.MaxStored, StrataDeferredCellClear.HasWork, JobDriver_StrataCrossLevelAttack.AttackTarget, LevelExcavationUtility.SurfaceWorkToBuild, CompShaftFluidTie.LinkEnabled, VefPipeNetworkUtil.IsAvailable, VefPipeSystemBackend.EqualizeWant, StrataLevelCap.MaxOffset, StrataStorageSoftCompat.AdaptiveStorageActive (and its id), WorkRelaySignals.UnregisterWorkSeekingJobGiverMarker, StrataBelowSelection.lastClickThingId.
  • Removed: About 80 unused using lines, 11 dead assignments, and 11 private-method parameters nothing read.
  • Removed: Kept on purpose: StrataModderApi (public API), Harmony Prepare / TargetMethods, debug actions, and game-required constructor parameters.

v4.0.0Download v4.0.0

  • Strata shaders: 1.7/Defs/ShaderDefs/Strata_Shaders.xml declares Strata_BelowMask, Strata_GasOverlay, Strata_Caustics and Strata_DepthVignette. Their GLSL 450 is in 1.7/Shaders/Strata and follows vanilla 1.7.4998 conventions: StrataOverlay.vert.glsl is a copy of vanilla Transparent.vert.glsl; material uniforms are in set 2, binding 0 with @color/@default annotations; _MainTex is at set 2, binding 1; the InstanceTransforms.glsl include sits behind INSTANCED. Every file compiles to SPIR-V with glslangValidator, with and without INSTANCED. Source/Render17 (#if RIMWORLD_1_7) holds StrataShaders17 (material from a ShaderDef, _StrataParams = time / map size / motion, per-draw render queue) and StrataMapTexture (one RGBA32 texel per cell, bilinear, one quad over the map, uploaded only when its data changes). If a shader fails to load, Strata logs one warning and falls back to the 1.6 drawing.
  • See-below: the lower level's section meshes are drawn with Graphics.DrawMesh(..., renderQueue), so the 1.6 per-(material, queue) copies are gone on 1.7. The hole mask is a map texture drawn by Strata_BelowMask (soft bilinear edges) instead of a per-cell quad mesh. It refreshes on the same view and interval rules as before.
  • Gas overlay: the per-cell overlay colours (Color32) go into a map texture once per atmosphere rebuild, never per frame. Strata_GasOverlay samples them bilinearly with a slow, low-frequency drift and a soft density ripple. Colours and the legend are unchanged, and CellBoolDrawer stays as the fallback.
  • Depth effects: MapComponent_StrataShaderEffects on underground levels. It draws a depth vignette (a screen-edge darkening that grows with depth, from 20% to a maximum of 55%) and water caustics (a moving additive light pattern on unfogged water and flood cells, from a mask rescanned every 2500 ticks). Each has a Visuals setting (depthVignette, waterCaustics, both on by default), and nothing is built while a setting is off.
  • Storm surge floods: with Stormproof 2.0.0, its StormSurgeIntensity (0 to 1 from surface rain, lightning weather and ion storms) grows seep floods on levels without a running sump pump. A flood seep incident is up to twice as big (up to 28 cells, within 4.5 cells instead of 3.5 when it needs the room), and a flooded level's rise pulse floods up to twice the cells, never fewer than the existing heavy-rain doubling. FloodUtility.AnyPumpRunning and FloodUtility.StormSurgeAbove are shared by both. Without Stormproof nothing changes.
  • Shared hazard board: an underground seismograph also shows the surface weather, how long it holds (from Stormproof's forecast) and the storm surge. Keys Strata_Seismograph_SurfaceWeather, Strata_Seismograph_SurfaceWeatherNow, Strata_Seismograph_StormSurge (EN/RU/CN). Stormproof's forecaster messages are global already, so underground players see them without a mirror.
  • Stormproof compat API: the freight-lift brownout reads StormproofCompatApi.BrownoutFor through the shared Common/Sibling/StormproofClient.cs (delegates bound once, fail-open) instead of finding MapComponent_Stormproof by name and reflecting on every call. Source/StormproofBrownout.cs is gone.
  • Transpilers on 1.7: Dialog_BeginRitual.CreateRitualRoleAssignments still reads FreeColonistsAndPrisonersSpawned once, and Designator_Build.ProcessInput still calls ListerThings.ThingsOfDef once (decompiled from the 1.7.4998 rev1299 game DLL).
  • Not done: Heat shimmer near magma and geothermal taps. It needs a scene-grab distortion pass (SceneGrabDeclaration), which needs an in-game test before it ships.
  • Not done: Seeing two or more levels down (the see-below stretch goal).
  • Not done: Folding the flat depth dim into the shader. The depth dim is for upper decks, and the vignette is for underground levels.
  • Strata 4 ships for 1.6 and 1.7. Azrael decided on 2026-11-05 not to freeze 1.6. This replaces the earlier plan of "1.7-only, with 1.6 frozen at 3.8.x". One source tree builds two DLLs: 1.6/Assemblies (net472, Krafs 1.6, Harmony 2.x) and 1.7/Assemblies (net10.0, Krafs 1.7, Harmony 3.x), which LoadFolders.xml already picks per game version. Defs, Patches, Textures and Languages stay shared at the root. Code that only exists in .NET 10 goes behind #if NET9_0_OR_GREATER (or a using alias), so the 1.6 build still compiles. pack_mod.sh already puts both DLLs into the zip.
  • Changed: The 4.0 line covers 3.12.1 through 3.19.2 (stair hold, modder API v2, settings tabs, logic tests, travel cost, magma layer, flooded level, lost floor, buried chambers fix, .NET 10 build, save compat guard).
  • Dead leftovers: dropped unused StrataLevelCoords.RootMap, OffsetInSource, FootprintInSource, and LevelRoleUtility.SortLinksForWork (plus its private PreferredWorkRole / Consider / CookingWork). None were on StrataModderApi, XML, Harmony, tests, or sister-mod reflection. No player-facing change.

v3.19.2

  • 3.8.3 saves against the current source: every Scribe_*.Look key and every saved class (MapComponent, GameComponent, WorldComponent, IExposable) that 3.8.3 wrote is still read; 64 keys and classes were added since, none renamed or removed. No defName was removed since 3.8.3 either, so saved things all still resolve. StrataSettings only gained fields, which fall back to their defaults. No migration code is needed yet.
  • Tests: SaveCompatTests reads SavedKeys-3.8.3.txt (the 156 keys and 30 classes in 3.8.3) and fails if the source stops reading any of them. A deliberate rename goes on its Migrated list together with code that reads the old name (34 tests).
  • Still to do in game: Load real 3.8.x saves (multi-level colony with gases, gravship stack, shaft fluid ties, a pawn mid-trip, prisoners on another floor) on 1.7, then save and reload.

v3.19.1

  • Cave plans run inline: StrataCavernPlan.RunOnWorker queued the plan on the ThreadPool and then blocked the main thread until it finished, so it gave no parallelism, only a hand-off. GenStep_CarveWarren and GenStep_CarveVault now call PlanWarren / PlanVault directly. Same seed, same cave.
  • Overlay colour cache is Color32[]: 4 bytes a cell instead of 16 (about 3 MB less on a 250×250 level with gas).
  • System.Threading.Lock guards the off-thread work board on .NET 10 (a using alias falls back to object on net472).
  • Pending gas seeds are cleared on game load (AtmosphereMapComponent.ResetSession), so seeds keyed by a map ID from the last game cannot land on a new map with the same ID.
  • Tests: SeededRandomTests: System.Random(seed) on CoreCLR matches a copy of the .NET Framework algorithm for Next, Next(max), Next(min, max) and NextDouble, so 1.6 (Mono) and 1.7 (CoreCLR) carve the same caves (33 tests).
  • Flattening cellDensity to one float[]: gas planes are allocated only for gases that are present. A flat cell × gas array would allocate every gas for every cell, about 10 times the memory on a typical level. That would need a profiler run first.
  • Vector256 overlay fill, CollectionsMarshal cloud updates, Parallel.For partitioning and CancellationToken for the work board: the board's worker job is a single pass over a byte array, and the ticket asks to measure first. Left for the baseline.

Good to know

  • Leave pillars under thick rock roof — or research shoring. The support overlay shows cells past a holder.
  • Seal a shaft to stop raiders and gas; it also traps your own people. Stairwells cannot be torn down while anyone is still on the linked level.
  • Grow A+ by expanding roofs downstairs; open sky never holds buildings, but you can see and shoot through it.
  • On Odyssey ships, only gravship stairwells place on the footprint; dig/tower stairs stay planet-side.
  • Don't dig Strata shafts on temporary quest maps (Ancient Urban Ruins, world sites) — Strata is for your home colony.
  • Every level is a full same-size map. Prefer a smaller map if you plan many deep floors. Default cap ±2.
  • Leave Natural / Pollutant gases off unless you want the atmosphere sim; use Performance mode to A/B lag.
  • Safe to add mid-save. Before removing: bring everyone up, haul what you care about, deconstruct all stairwells.

Alongside other mods

Works with

  • Dubs Bad HygieneFluid shaft junction ties plumbing across levels
  • Dubs Central HeatingFluid shaft junction
  • Dubs RimatomicsFluid shaft junction for coolant
  • RimefellerFluid shaft junction for crude-oil / chemfuel pipes
  • Vanilla Helixien Gas ExpandedGas well gains a pipe connector and feeds the helixien network directly
  • Vanilla Chemfuel ExpandedVEF chemfuel fluid shaft junction
  • Vanilla Temperature ExpandedFluid shaft junction
  • VGE Chapter 1Soft bridge
  • Biomes! CavernsUsed when present; Strata provides a native cavern biome when absent
  • Geological LandformsCompatible
  • Vehicle FrameworkSoft bridge for roof decks
  • ReGrowthSoft bridge for underdecks
  • Ancient Urban RuinsAUR interiors are invisible to Strata's level system by design; only Strata's smoke applies inside them
  • HomesteaderSister mod in this series
  • StormproofSister mod in this series
  • Misc. RobotsCompatible
  • Combat ExtendedCross-level combat uses CE verbs, ammo, and ballistic angle when CE is loaded
  • Deep And DeeperCaves stay invisible to Strata's relays by default; an opt-in setting extends relays into them

Leave these off

  • MultiFloorsDo not run alongside Strata
  • Z-LevelsDo not run alongside Strata
  • True Z-LevelsDo not run alongside Strata
  • True LevelsDo not run alongside Strata
  • As Above So BelowDeprecated — replaced by As above, So below 2. Do not run alongside Strata
  • As above, So below 2Do not run alongside Strata (replaces the original AASB)
  • Pathfinding AvoidanceDo not run alongside Strata

Cave / pocket-map mods (Deep And Deeper, Anomaly undercaves, and similar) are compatible: their portal maps are invisible to Strata's level system by default. The opt-in setting "Relay into other mods' portal maps" extends cross-level relays to them.

Mods adding fuel-burning buildings are not auto-tagged by heuristic; only a named vanilla/DLC list plus XML patches get smoke comps.

Multi-level mods that patch pathfinding or map generation globally are the most likely source of conflicts; Strata deliberately patches neither.

Report a problem

This report is for Strata on RimWorld.