Skip to content

Project Vigilance: Overland Incursions v0.4.2

Latest

Choose a tag to compare

@CTOUT CTOUT released this 19 Nov 17:14

Project Vigilance: Overland Incursions v0.4.2

Hotfix: Orbital Performance, Runaway Spawn Deduplication & Fog of War Optimisations

Fixed

  • Save-Load Orbital Spawn Duplication & Cross-Reference Deferral (GameComponent_OrbitalLifecycle, OrbitalManager): Deferred save-load orbital deduplication and infrastructure checks from World.FinalizeInit(true) (which runs before ScribeLoader.FinalizeLoading() resolves Faction cross-references) to GameComponent_OrbitalLifecycle.LoadedGame(), preventing every save reload from misclassifying loaded stations and settlements and spawning duplicate orbital constellations.
  • Orbital Faction Assignment & Spawn Resilience (OrbitalVisibilityUtility, WorldObject_OrbitalStation, WorldObject_Satellite, Satellite_Trade): Corrected reflection fallback field from "faction" to RimWorld's WorldObject.factionInt, moved OrbitalManager registration ahead of SetTileSafe, wrapped Satellite_Trade.GenerateInitialGoods in exception guards, tightened IsOrbitalFaction to exclude temporary, defeated, and pre-industrial zero-settlement factions, capped auto-spawned NPC stations at 6 (MaxAutoSpawnedNpcStations), and widened the periodic audit cadence to 15,000 ticks.
  • Automatic Legacy Save Deduplication (OrbitalManager.PruneDuplicateNpcOrbitalEntities, DebugActionsVigilance): Added load-time deduplication and a DevMode action (Orbital: Deduplicate NPC Stations & Satellites) pruning inflated legacy saves down to at most 1 hub and 1 satellite per NPC faction/role while preserving all player assets and Odyssey SpaceSettlements; emits a one-time Log.Warning whenever duplicates are removed and stays silent on clean saves.
  • Windows Clean Staging Build Target (Geoscape.csproj): Fixed MSBuild <Exec> command parsing in RotateLockedAssembly and StageCleanDistribution when staging into a clean dist/ directory on Windows.

Changed

  • Orbital Visibility Caching (OrbitalVisibilityUtility): Cached player orbital sensor snapshots (comms consoles, ground radar ranges, and player recon/military satellites) on a 30-tick (~0.5 s) window alongside a zero-allocation ReferenceEqualityComparer detection cache invalidated on SweepRevision and visibility-mode changes, eliminating repeated per-frame colony building scans (AllBuildingsColonistOfDef) across large satellite counts.
  • Fog of War & Geoscape Rendering Optimisations (WorldDrawLayer_HazeOfWar, WorldDrawLayer_RadarCoverage, WorldObject_Visibility_Patch, SensoryManager): Eliminated double-globe dimming under ClassicHazeOfWar, added tile/revision-keyed visibility and shroud mask caches, zero-allocation pooled landmark filtering, stationary vs. mobile vision sweep splitting, and cached 3 ms corner-only dimming fans.

📦 Installation

  1. Download ProjectVigilance-OverlandIncursions-v0.4.2.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!