Skip to content

Project Vigilance: Overland Incursions v0.4.0 (Milestone 1.3)

Choose a tag to compare

@CTOUT CTOUT released this 16 Nov 20:30
· 24 commits to main since this release

Project Vigilance: Overland Incursions v0.4.0

Milestone 1.3: Radar Infrastructure, Advanced Early Warning & Inter-Faction Encounters

Added

  • Campaign Rules, Mutability Framework & First-Class Campaign Creation Wizard (GeoscapeCampaignRules, GeoscapeRuleSet, Page_GeoscapeRules, Dialog_GeoscapeCampaignRules, Dialog_GeoscapeModAdoption):
    • Core Epistemic Principles: Elevated twin foundational design principles: "You don't know what you don't know" and "Information must be earned, not guessed". Established Fog of War as the recommended default visibility mode, transforming the procedural rimworld into an uncharted celestial body where knowledge must be earned through active field reconnaissance.
    • Native Campaign Creation Wizard Page (Page_GeoscapeRules): First-class campaign wizard page stitched between Storyteller selection and World Parameters via PageUtility_StitchedPages_Patch, displaying $2 \times 2$ profile cards (Fog of War, Planetary Surveillance, Hardcore Vigilance, Omniscient) and launching a dedicated Anomaly-style modal dialog (Dialog_GeoscapeCampaignRules) for granular rule customisation without UI card clipping.
    • First-Time Mod Adoption Lifecycle (Dialog_GeoscapeModAdoption): Modal dialog presented when loading pre-existing vanilla saves offering non-destructive Planetary Surveillance default, 1-day grace period, or Fog of War blackout challenge.
    • Two-Axis Mutability Framework (ProjectVigilance.Geoscape.Rules): Decoupled lifecycle constraints (Mutable, Escalatable, Immutable) from transition side-effects (RebuildWorldLayers, RescanSensors, ReleaseConcealedSites, RepathPlayerCaravans).
    • Authoritative Save Persistence: Persists GeoscapeRuleSet in .rws save data via GeoscapeCampaignRules (WorldComponent), ensuring gameplay rules remain immutable to cross-save contamination.
    • High-Performance Facade (GeoscapeRules): Routes all production queries to save data with zero heap allocations, safely falling back to defaults in tests and at the main menu.
    • Forensic Audit Ledger (RuleChangeRecord) & Cryptographic Savegame Integrity (RuleLedgerSigner, GeoscapeCampaignRules.ReconcileLedgerOnLoad): Tracks escalations, mod adoption provenance (ModAdoption), legacy migrations, and dev overrides up to 100 entries, including an immutable Day-0 rule snapshot (CampaignCreated). Chained HMAC-SHA256 record hashing and load-time replay reconciliation detect unrecorded direct XML edits or schema downgrades non-destructively.
    • DevMode-Gated Session Override: allowUnsafeRuleTransitions requires active Prefs.DevMode, resets on exit, and turns off automatically if DevMode is disabled.
  • Starting Site Selection Feedback & Blind Touchdown (StartingSiteFeedbackUtility, StartingSiteSelectionFeedback_Patch):
    • Ambiguous Rejection on Physically Impossible Sites: Replaces explicit ocean and impassable mountain errors on unexplored hexes under Fog of War with "Unviable landing coordinates: Selected sector cannot support a colony drop.", eliminating sonar-probing of the black shroud prior to touchdown. Standard explicit messages remain active under Planetary Surveillance and Omniscient.
    • Blind Touchdown on Environmental Hazard Sectors: Suppresses confirmation dialog prompts for Biotech toxic pollution, extreme climates, and harsh biomes under Fog of War so players land blind and discover conditions upon touchdown.
    • Faction Proximity Intelligence Masking: Silences proximity diplomatic penalty warnings (GetConfirmationDescriptions and GetConfirmationEffects) near hidden faction bases in the shroud.
    • Classified Inspect Shroud: Masks detailed geology, fertility, elevation, and biome survey readouts on unexplored hexes during starting site selection.
  • Dual-Layer Orbital Rendering & Dynamic Faction Livery Tinting (WorldObject_OrbitalStation, WorldObject_Satellite):
    • Satellites and stations render seamlessly across both Surface and Odyssey Orbit layers (<fullyExpandedInSpace>), adhering strictly to sensor shroud masking outside active radar envelopes.
    • Dynamic faction livery colour tinting applied to 2D expanding icons and 3D mesh quads (Faction.Color, e.g. Voidborn pink, Pirate crimson, Player emerald green).
  • Orbital Faction Hubs, Persistent Stations & Drifting Satellite Logistics Network (WorldObject_OrbitalStation, WorldObject_Satellite, Satellite_Trade, OrbitalFlightModel, OrbitalManager):
    • Drifting Keplerian Mechanics Engine: Analytical closed-form flight model ($O(1)$, zero heap allocations) incorporating $J_2$ planetary oblateness nodal precession ($\dot{\Omega}$) and incommensurate periods ($T_{\text{orbit}} \nmid 60{,}000$), ensuring satellite ground tracks continuously drift across longitudes without repeating on rigid timers.
    • Persistent Orbital Stations: Permanent faction operational centres for orbital factions (such as TradersGuild / Merchant's Bazaar). Manages constellation telemetry, automated replacement queues, and a $35^\circ$ angular service corridor where satellites enter for maintenance and trade restock.
    • Five Specialized Satellite Roles:
      • Trade Satellites: Implements ICommunicable, ITrader, and IThingHolder. Connects to Building_CommsConsole during colony overpasses, allowing direct trade negotiations and drop pod deliveries.
      • Reconnaissance Satellites: High-inclination polar sweeps ($88^\circ$), implements ISensorProvider (IsTechnological, PenetratesTerrainMasking, MaxIntelligenceTier = Analysed), clearing Haze/Fog of War.
      • Military Satellites: High-inclination tactical platforms providing fire control and instant incursion analysis in contested sectors.
      • Navigation Satellites: Medium orbit ($12{,}000\text{ km}$), projecting positioning telemetry beams accelerating surface caravan travel speed by 15%.
      • Communication Satellites: High-apogee relays ($35{,}786\text{ km}$) linking remote unmanned listening posts to the colony network across mountains and oceans.
    • Extensibility Interface (IOrbitalEntity): Decoupled contract allowing future orbital vessels (gravships, shuttles, interceptors, UFOs) to navigate between stations and orbits.
  • Detection-Layer Site Masking, Anomalous Landmarks & Optimistic Exploration (SensoryManager, LandmarkSensoryUtility, OptimisticPathingUtility, WorldPathing_FindPath_Patch, Dialog_FormCaravan_Patches):
    • Detection-Layer Site Masking: Non-player settlements, camps, and sites in the outer Detection ring ($R_{detect}$) are masked as "Unidentified site" contacts with gold question-mark mystery icons and hidden faction/type details until entering the identification horizon ($R_{id}$).
    • Anomalous Landmark Exploration (LandmarkSensoryUtility, WorldSearchVisibilityUtility, TileHighlightVisibilityUtility): Anomalous sites, ancient structures, monoliths, and insectoid mega-hives in $R_{detect}$ render distinct cyan '!' discovery blips instead of threat markers, while world search entries and single-tile hover/selection highlights remain gated by exploration state under ClassicHazeOfWar.
    • Optimistic Fog-of-War Travel Routing & Autonomous Obstacle Circumvention: Caravan directives assume unexplored black hexes are traversable until actively uncovered, evaluating discovered barriers via UnitTraversalCapability (LandCaravan, NavalUnit, Aircraft) and ExpeditionDetourState break-even budgets (MaxDetourMultiplier = 2.0f). Viable detours emit an advisory notification ("Caravan has encountered an obstacle and is searching for an alternative route."), while non-viable routes trigger a 4-option high-priority hard-stop prompt (Select a new destination, Authorise a wider search radius, Cancel the expedition, Continue manual exploration).
    • Camera-Aligned World Outpost & Sensor Icons: Fixed rotated outpost and sensor markers when zoomed in, ensuring upright orientation across all zoom levels and latitudes.
  • Coastal Sonar Traversal, Automated Sonar Station & Placement Validation (SonarTraversalUtility, PlaceWorker_CoastalSonar, WorldObject_ListeningPost, Vigilance_ListeningPost_Sonar, SensoryManager):
    • Standalone Automated Sonar Station (ListeningPostKind.AutomatedSonar / Vigilance_ListeningPost_Sonar): Deployable coastal acoustic outpost (120 Steel + 4 Components; repair 30 Steel + 1 Component; salvage 90 Steel + 3 Components) providing 18 detection rings and 8 identification rings.
    • Coastal Placement Validation (SonarTraversalUtility.HasCoastalAccess, PlaceWorker_CoastalSonar): Restricts both settlement Geoscape_SonarArray facilities and standalone Automated Sonar Stations to tiles with at least one adjacent WaterCovered hex.
    • Directional Connected-Water Propagation & Cache Isolation: Sonar originates from adjacent WaterCovered tiles and projects outward in directional V-shaped sectors (DirectionalSectorCosThreshold = 0.45f) strictly through connected WaterCovered tiles so land acts as an acoustic barrier. Stationary caches in SensoryManager use (tileId, isSonar) keys so Radar and Sonar envelopes overlap cleanly on water tiles without conflict.
  • Sensory Model Refinements & Environmental Disruption (WorldObject_ListeningPost, SensoryTerrainUtility, SensoryDisruptionUtility):
    • Signal Beacon 0 Identification Radius: Unmanned timber and stone signal beacons provide perimeter detection (Contact Tier) across 6 rings, but feature strictly 0 identification range.
    • Terrain Masking Vision Horizon Alignment: Corrected SensoryManager.PopulateActiveVisionTiles so masked mountainous hexes are not erroneously painted into the yellow identification horizon when viewed by non-penetrating sensors. Proximity sightline logic preserves direct optical observation for immediately adjacent hexes ($\le 1$ tile).
    • Actionable Masking Telemetry: Added clear contextual feedback to incursion inspect panes explaining when heraldry and weapon details are obscured by mountain terrain masking.
    • Environmental Sensory Disruption (SensoryDisruptionUtility): Split environmental disruption by power and sensor tier: IsSolarFlareActive (SolarFlare, EMIField) disrupts grid-powered colony CompRadar installations, WorldObject_Satellite orbital satellites, and electronic outposts (AutomatedRelay, AutomatedSonar), whereas IsEclipseOrProlongedDarknessActive (Eclipse, VolcanicWinter, UnnaturalDarkness, SunBlocker) specifically takes solar-powered AutomatedRelay and AutomatedSonar outposts Offline without interrupting grid-powered colony CompRadar installations or satellites; primitive optical SignalBeacon bonfires remain operational throughout.
  • 5-Tab Mod Settings UI, Live CRT Scope Preview & Mountain Radar Shadows (GeoscapeSettings, RadarScopePreview, RadarTerrainShadowStyle):
    • Reorganised Mod Settings into five latched tabs (Sensory, Radar, Incursions, Geoscape, Diagnostics).
    • Added a live $180\times180\text{ px}$ CRT RadarScopePreview widget inside the Radar tab and configurable Mountain Radar Shadow visualisation styles (None, DashedContours, CellHatching, Both).
  • Cross-Platform Linux / CachyOS Deployment Pipeline (scripts/deploy-geoscape.sh, scripts/deploy-geoscape.ps1, Geoscape.csproj):
    • Added native Bash deployment automation script scripts/deploy-geoscape.sh targeting Linux distributions (including CachyOS and Ubuntu/Zorin) with native Steam, Snap, and Flatpak Steam path auto-detection, Flatpak sandbox permission checks and automatic read-only overrides (flatpak override --user), symlink and copy modes, assembly lock rotation for running game instances, build bypass (--skip-build), and rebuild flags.
    • Updated scripts/deploy-geoscape.ps1 with cross-platform environment detection ($IsLinux, $IsMacOS), automatically choosing SymbolicLink on Unix systems and preserving NTFS Junction on Windows.
    • Added MSBuild platform conditioning in Geoscape.csproj and Geoscape.Tests.csproj to resolve Linux Steam and Workshop paths automatically when building on non-Windows hosts.
    • Added deploy:geoscape:linux shortcut script in package.json.
  • 4X Context Dispatch, Staging & Queued Outpost Construction (CaravanExpeditionUtility, OutpostAssemblySpeedUtility, CaravanArrivalAction_ConstructOutpost, CaravanArrivalAction_HoldPosition, WorldSelector_HandleWorldClicks_Patch, WorldSelector_SelectFirstOrNextFrom_Patch):
    • Colony & Source-Agnostic Contextual Dispatch: Selecting a player colony or right-clicking any globe hex without pre-selecting a source surfaces proximity-sorted options across active player caravans and colonies (Form caravan to Tile {tile}, Move caravan ..., Send caravan from ..., and outpost construction/dismantling expeditions).
    • Civilization-Style Settlement Staging (CaravanArrivalAction_HoldPosition): Directs player caravans to march to settlement tiles and hold position outside ("Move to hex (Hold position outside ...)") without entering or merging into the settlement map.
    • Overlapping Entity Disambiguation (WorldSelector_SelectFirstOrNextFrom_Patch, WorldSelector_SelectUnderMouse_Patch): Intercepts clicks on co-located world entities, settlements, and caravans with an X-COM style contact disambiguation menu.
    • Automated Supply Pre-allocation & Builder-Scaled Assembly (OutpostAssemblySpeedUtility): Pre-allocates exact construction materials (100 Steel + 4 Components for Automated Listening Posts, 120 Steel + 4 Components for Automated Sonar Stations, 150 Wood/Stone for Signal Beacons) and scales on-site assembly duration by lead builder speed (100%) plus assistants (50% each), clamped between 2,500 and 40,000 ticks with circadian shift awareness.
    • Unified Outpost Labels & Arrival Execution: Standardised outpost labels via CaravanExpeditionUtility.GetListeningPostKindLabel ("Automated Listening Post", "Automated Sonar Station", "Signal Beacon") and automated construction upon arrival via CaravanArrivalAction_ConstructOutpost.
  • Grounded Storyteller Caravan Ambushes, Post-Retreat Pursuit & Encounter Dialogue (IncidentWorker_Ambush_Patch, GroundedCaravanMeetingHelper, IncursionTacticalRetreatUtility, Pawn_ExitMap_Patch, WorldObject_Incursion):
    • Grounds storyteller enemy faction ambushes (IncidentWorker_Ambush_EnemyFaction) via GroundedCaravanMeetingHelper.TryInterceptAmbush into persistent WorldObject_Incursion entities on the Geoscape while leaving manhunter packs to vanilla behaviour.
    • Post-Retreat Hostile Pursuit (IncursionTacticalRetreatUtility.ResumeIncursionAfterCaravanRetreat): Evaluates surviving forces when a player caravan flees a tactical encounter map; able-bodied hostile warbands ($\ge 50%$ fit survivors, PursuitMinimumFitFraction = 0.5f) actively give chase on the Geoscape (SetPursuitTarget), while battered or non-hostile forces resume their route or return home.
    • Guaranteed robust non-null faction assignment and explicit group kind synchronisation (incursion.SetExplicitGroupKind(groupKind)) for grounded storyteller caravan encounters, resolving null-faction errors and contradictory encounter dialogues.
  • Waylith Native DeepProfiler Instrumentation & Telemetry (SensoryManager, InterFactionEncounterManager):
    • Native RimWorld / Waylith Verse.DeepProfiler.Start and Verse.DeepProfiler.End instrumentation blocks wrapping all core geoscape sensory passes:
      • ProjectVigilance.PerformSensorySweep: complete 250-tick sensory sweep execution.
      • ProjectVigilance.SensorySweep.VisionUpdates: active vision transitions, haze vertex updates, and dirty color flushing.
      • ProjectVigilance.SensorySweep.TargetEvaluations: per-contact detection and classification loop against active sensors.
      • ProjectVigilance.InterFactionCollisions: $O(M)$ tile-bucketed collision scans across all active incursions.
      • ProjectVigilance.SkirmishResolution: algebraic overland background skirmish resolution, casualty calculation, and aftermath site generation.
  • Zero-Allocation Policy & Pre-allocated Pooling:
    • Audited and optimized hot paths on TickRare (250 ticks) ensuring exactly 0 bytes allocated per steady-state sweep (GC.GetAllocatedBytesForCurrentThread() delta == 0).
    • Pre-allocated and recycled dictionary buckets (tileBuckets capacity 256), incursion list pools (listPool capacity 256 with 64 pre-allocated instances), sensor state tracking dictionaries, and cached static predicates (StaleTargetPredicate).
  • Measurable Benchmark & Automated Verification Suite (Geoscape.Tests, PerformanceAndStressTests.cs):
    • Expanded the Geoscape.Tests automated MSTest suite to 406 unit tests covering campaign rules, HMAC ledger integrity, coastal sonar traversal, optimistic navigation, outpost assembly, orbital logistics, grounded encounters, and sensory masking.
    • Simulated high-load planetary stress scenarios with 20 active radar installations and 100 concurrent world incursions.
    • Verified that steady-state sweep execution latency strictly satisfies the $\le 1.0\text{ ms}$ budget using Stopwatch.GetTimestamp().
    • Verified that steady-state sweeps strictly generate 0 bytes of GC allocation across both sensory passes and tile-bucketed collision sweeps.
    • Verified zero memory growth across 50 consecutive steady-state tick cycles.
  • Living World Inter-Faction Encounters (InterFactionEncounterManager, WorldObject_EncounterAftermath):
    • Tile-Bucketed Incursion Collisions ($O(M)$): Evaluates collisions on TickRare (250 ticks) using pre-allocated tile buckets, completely eliminating $O(M^2)$ pairwise scans and triggering background skirmishes strictly when hostile or rival forces occupy identical tiles.
    • Algebraic Background Skirmishes: Pure algebraic resolution factoring in combat points, tech level multipliers (Animal 0.5x, Neolithic 0.8x, Medieval 1.0x, Industrial 1.25x, Spacer 1.5x, Ultra 1.75x, Archotech 2.0x), and tactical variance without spawning a tactical map.
    • Persistent Encounter Aftermath Sites: Clashes spawn salvageable wreckage sites on the world map containing trade loot and live casualty pawns harvested directly from the defeated force.
    • Grounded Storyteller Caravan Encounters (GroundedCaravanMeetingHelper): Harmony patches on IncidentWorker_CaravanMeeting and IncidentWorker_CaravanDemand grounding abstract storyteller caravan events into physical, travelling WorldObject_Incursion entities with persistent pawn rosters, cargo, and travel routes.
  • Two-Stage Early Warning Dispatcher & Non-Peeking Escalation (EarlyWarningDispatcher):
    • Stage 1 (Outer Boundary Alert): Dispatches LetterDefOf.ThreatSmall upon crossing $R_{detect}$, rendering an amber pulsing blip with masked faction, threat points, and hidden path overlays.
    • Stage 2 (Identification Threshold): Gated by $R_{id}$ and target terrain masking; escalates hostiles to LetterDefOf.ThreatBig (red blip with faction crest, pawn count, weaponry, and ETA) and friendly merchants to LetterDefOf.PositiveEvent.
  • Dynamic Haze Reconnaissance & Camp Concealment (HazeReconnaissanceManager, BreadcrumbRumourUtility):
    • Conceals dynamic quest and bandit camps spawned in unmonitored Haze sectors, suppressing instant global announcement letters until uncovered by radar sweeps, scout caravans, or rumours.
    • Suspends quest expiration timers (TimeoutComp) while sites remain concealed in the Haze so quests do not expire invisibly.
    • Breadcrumb rumour intelligence: Visiting trade caravans and travellers share reconnaissance on unmapped camps with 8-cardinal compass bearings.
    • Robust site despawn and removal lifecycle (WorldObject.PostRemove & CheckUncoveredSites): Intercepts dynamic sites cancelled, expired, or destroyed while concealed in the Haze, purging them from memory and preventing save-game bloat and missing cross-reference serialization errors.
  • Lightweight Geoscape Outposts (WorldObject_ListeningPost, FloatMenuMakerWorld):
    • Lightweight, 100% unmanned, zero-TPS planetary outposts (AutomatedRelay, AutomatedSonar, and SignalBeacon) deployed directly onto world hexes without creating tactical maps or storing colonists in WorldPawns.
    • Streamlined world context actions: Right-click hex to construct outposts from carried caravan inventory (100 Steel + 4 Components for Automated Listening Posts, 120 Steel + 4 Components for Automated Sonar Stations, 150 Wood/Stone for Signal Beacons), dismantle for 75% material recovery, or repair sabotaged stations (25 Steel + 1 Component, 30 Steel + 1 Component, or 30 Wood/Stone).
    • Material tracking and stack-limit partitioning: Tracks specific consumed construction materials (stuffDef) on Signal Beacons (Wood vs Stone blocks), dynamically updating labels and inspect panes. Dismantling refunds 75% of the exact material type (112 items for beacons, 75 Steel + 3 Components for relays, 90 Steel + 3 Components for sonar stations), cleanly partitioned into valid item stacks respecting stackLimit (e.g. 75 + 37 items) to eliminate infinite wood transmutation and engine stack-overflow glitches.
  • Colony Technological Radar Infrastructure & Dual-Ring Interferometry (CompRadar, CompProperties_Radar):
    • Explicit integer traversal rings across 5 sensory building tiers (Lookout Watchtower, Small Radar Dome, Phased Radar Array, SIGINT Decryption Console, Coastal Sonar Station).
    • Multi-dish interferometry: Fixed $R_{detect} = 24\text{ rings}$, synthetic aperture expanding $R_{id} = 10 \rightarrow 17 \rightarrow 22\text{ rings}$ at a locked 250-tick sweep cadence, and providing fail-safe redundancy.
    • Dynamic standby vs active power scaling (350W/750W, 800W/1,800W, 700W/1,400W).
    • Single-pass traversal optimization: Unified ISensorProvider.TryGetDetectionDistance(target, out int distance) evaluates planetary reach and step distance in a single BFS pass, eliminating redundant graph queries per sensor/target pair on the sweep hot path.
    • Model B+ "Vantage & Masking": High ground grants origin vantage bonuses (+1 to +3 rings); Mountainous terrain delays target classification until exiting into plains or decrypted by Spacer Phased Array + SIGINT.
  • Tactical Radar Coverage & Perimeter Outlines (WorldDrawLayer_RadarCoverage):
    • GPU-instanced 3D mesh rendering dual-ring holographic perimeters and hexagonal honeycomb grid over active sensor envelopes with 5 tactical color palettes and background dimming.

Fixed

  • Pre-Entry Impassable Tile Safeguards & Unexplored Road Discount Masking (WorldPathing_FindPath_Patch, OptimisticPathingUtility):
    • Added pre-entry impassability guards in Caravan_PathFollower_SetupMoveIntoNextTile_Patch and Caravan_PathFollower_TryEnterNextPathTile_Patch using OptimisticPathingUtility.IsTileActuallyImpassable, uncovering only the single blocked tile (MarkSurroundingTilesExplored(tile, 0f) with maxSteps = 0), invoking NotifyCaravanVisionUpdated, and halting via StopDead() when recovery does not replace the path—preventing caravans from stepping onto impassable tiles even after authorising a wider search radius.
    • Added WorldGrid_GetRoadMovementDifficultyMultiplier_Patch masking road movement discounts (1.0f) on unexplored tiles during optimistic routing and route planning so plotted paths cannot trace undiscovered roads in the shroud.
  • Caravan Route Visibility Masking (WorldObject_Incursion.DrawVisibilityClippedSegment, GroundedCaravanMeetingHelper.GetTileDestinationLabel):
    • Clipped incursion path segments at active vision perimeters in ClassicHazeOfWar (midpoint clipping at vision boundaries) and masked unexplored destination settlement names in approaching-contact alerts as "an uncharted destination".
  • Random Caravan Trade Loop Fix (IncursionInterceptionUtility.ConsumeInterceptOrder, WorldObject_Incursion, CaravanArrivalAction_InterceptIncursion):
    • Consumed pending CaravanArrivalAction_InterceptIncursion arrival orders on interception (StopDead()) and enforced encounter cooldown timers (IsCaravanOnCooldown) on 1a interception checks and arrival handling, while clearing any stale cooldown (ResetCaravanCooldown) when manually selecting "Hail & Trade".
  • Outpost Kind Label Standardisation (CaravanExpeditionUtility.GetListeningPostKindLabel):
    • Unified outpost kind labels ("Automated Listening Post", "Automated Sonar Station", "Signal Beacon") across WorldObject_ListeningPost, Dialog_FormCaravan_Patches, and OutpostAssemblySpeedUtility.
  • WorldGrid Distance & Sensor Footprint Mathematical Alignment (OrbitalFlightModel):
    • Fixed IsTileWithinFootprint which previously estimated hex distances using an arbitrary constant approximation (1.8f), causing mathematical footprints to diverge radically from visual overlays.
    • Replaced with RimWorld's native Find.WorldGrid.ApproxDistanceInTiles(angularDistanceRadians), aligning mathematical sensor and speed boost calculations 1:1 with GenDraw.DrawWorldRadiusRing flood-fill geometry.
  • Comms Console Overhead Trade Deduplication & Operational Guards (Building_CommsConsole_GetCommTargets_Patch):
    • Added a local HashSet<string> deduplication guard across yielded orbital comms options, preventing duplicate entries for overhead satellites.
    • Added an explicit sat.CanTradeNow operational check before yielding trade contacts, ensuring satellites only appear in the comms menu when active, powered, and in range.
  • Orbital Sprite Presentation & Icon Cleanup (WorldObjects_Orbital.xml):
    • Replaced placeholder watchtower sprites (Sites/Outpost) with dedicated satellite icons (World/WorldObjects/Expanding/Satellite) and settlement platform markers.
  • Debug Tooling & Save State Hygiene (DebugActionsVigilance):
    • Appended unique suffix identifiers (tick timestamp) to spawned orbital entities and merchant callsigns to prevent entity collisions.
    • Added paired cleanup debug actions: Orbital: Clear All Satellites and Orbital: Despawn Overhead Satellites for pristine testing hygiene.
  • Milestone Scope Gating & Experimental Content Guarding (Buildings_Radar.xml, DebugActionsVigilance):
    • Gated experimental coastal sonar arrays (Geoscape_SonarArray, Vigilance_ListeningPost_Sonar) and non-standard satellite roles (Recon, Nav, Comms, Military) behind Prefs.DevMode and debug actions, stabilizing Milestone 1.3 around fully polished core features.
  • Headless Unit Test Safe Lifecycle (WorldObject_Satellite):
    • Guarded against uninitialized Find.WorldObjects and Find.FactionManager singletons in SetFactionSafe and sensor status checks, allowing headless test runners to execute without mocking entire engine singletons.
  • Automated Test Suite Expansion (Geoscape.Tests):
    • Expanded automated MSTest test coverage to 424 passing unit tests across all campaign rules, orbital logistics, distance calculations, and sensory systems.

📦 Installation

  1. Download ProjectVigilance-OverlandIncursions-v0.4.0.zip attached below.
  2. Extract the ProjectVigilance-OverlandIncursions folder into your RimWorld Mods/ directory (or subscribe on the Steam Workshop).
  3. In RimWorld's mod menu, activate Harmony followed by Project Vigilance - Overland Incursions.

💬 Feedback & Discussion

Please report issues via GitHub Issues or join the discussions in GitHub Discussions!