Offshore Modular Platforms

v0.1.14
by Mdroid (OffshoreModularPlatforms Team)

Experimental vibe-coded mod adding a 3D fixed offshore platform view, island heliport crew shifts, and modular rig upgrades. Updates not guaranteed.

Beta 1 hour ago CoI-Open No source
Source code
No source provided
Tags
Content Graphics Production Research UI World map

Experimental / Vibe-Coded Project: This mod was built as an experimental, vibe-coded project to bring a dedicated 3D visual experience to offshore oil platforms in Captain of Industry. Future updates and long-term maintenance are not guaranteed—always back up your saves before installing.

Adds a dedicated 3D oceanic visual layer and modular simulation to fixed offshore oil platforms:

  • 3D Offshore Platform View: Inspect your fixed platform in a dedicated 3D ocean scene featuring a lattice derrick, processing separators, active flare stack, helideck, animated helicopter flights, support/visiting vessels, and visual module expansions as you upgrade wells, processing units, and tiers.
  • Island Heliport & Crew Rotation: Build an onshore Heliport to dispatch workers via helicopter with visual takeoff/landing cycles, shift changeovers, and configurable difficulty modes (Easy, Medium, Hard).
  • Reservoir & Progression Integration: Research-gated progression with depth limits by tier, reservoir depletion, water-cut tracking, and material deliveries for incremental upgrades.
    image_b57724.jpg

No announcements yet.

v0.1.14

Latest
Game version
0.8.8
Released
Nov 22, 2026
File size
1.1 MB
License
CoI-Open
Save-game: Add · Remove
Loading forum…

# Changelog

## 0.1.14 - T1 Research Gate, Clean Research Corridor, Shift Progress Pause & Onshore Heliport Flight
- Enforced strict `OffshoreTech_T1_FixedJacket` research gate before allowing Fixed Platform construction, repair, upgrades, surveys, or production (`0m` operable depth and `LOCKED: Research Offshore T1 first` status in Medium/Hard until `T1` is researched).
- Repositioned the 4-tier Offshore Research Tree (`T1`–`T4`) into a clean top horizontal corridor (`Y = 0`) validated by `OffshoreResearchLayoutPlanner.IsHorizontalCorridorFreeOfLineCrossings` with a single linear parent chain (`T1 -> T2 -> T3 -> T4`), eliminating diagonal cross-tree wires over vanilla nodes.
- Paused native `WorldMapMine` recipe progress (`mine.SetPaused(true)` tracked via `_modPausedRigIds`) during `ShiftChangeover` and operational halts while distinguishing mod-induced pauses from manual player pauses.
- Positioned `Produced water` directly after the native production panel (`Slider` / `60 / 60`) in `WorldMapMineInspector` without duplicate storage bars.
- Added animated onshore `Helicopter` (`HeliMainRotor` / `HeliTailRotor`) to `island_heliport` (`OffshoreHeliport`) with visual takeoff/climb toward the offshore platform on `HelicopterInbound`, offshore touchdown on `ShiftChangeover`, and return landing on `HelicopterReturn` (respecting `IsSimPaused` and `SimSpeedMult`).
- Shortened module and seismic survey tooltips to compact resource symbol tags (`⚙ Steel`, `🔧 Mech. Parts`, `⚡ Electronics`, `🧱 Concrete Slabs`) + native `CostRow`, and dispatched player fleet vessels (`GoToLocationCmd` / `CargoShipV2`) for staged material deliveries.

## 0.1.12 / 0.2.0-arch - 4-Agent Blender 5.3 Fixed Platform Architecture, Island Heliport, Crew Shift Cycles & Hard Maintenance
- Built specialized 4-agent Blender 5.3 procedural pipeline (`agent_1_structure_jacket_helideck.py`, `agent_2_derrick_drilling_flare.py`, `agent_3_process_vessels_piping_crane.py`, `agent_4_pbr_uv_export.py`, `generate_offshore_modules.py`) generating 9 industrial `.fbx` models (`base_fixed`, `well_riser`, `production_module`, `upgrade_module`, `well_addon`, `prod_addon`, `upgrade_tier2_addon`, `upgrade_tier3_addon`, `island_heliport`) with explicit hierarchy space conjugation (`0.0000m` rotor air-gap).
- Standardized active gameplay exclusively on the **Fixed Platform** across all water depths (`200m` -> `600m` -> `1500m` -> `3500m`) unlocked via Fixed Jacket Engineering Tiers `T1`–`T4`.
- Registered the onshore **Offshore Heliport** (`OffshoreModularPlatforms.OffshoreHeliport`, `6x6` tiles, `6` workers, `150 kW`, `MaintenanceT1`) required on Medium and Hard difficulty.
- Added deterministic crew shift rotation state machine (`OffshoreShiftCycleState`: `Operational` -> `HelicopterInbound` -> `ShiftChangeover` -> `HelicopterReturn`) halting offshore production during `ShiftChangeover` (`25s`) and when missing Heliport/workers/maintenance, plus `60s` Hard realistic maintenance deduction (`Steel`, `MechanicalParts`, `Electronics`, `Diesel`).
- Added Unity `6000.3.19f1` headless CLI AssetBundle compilation (`BuildMafiAssetBundles.BuildFromCli`) with single-line COI `mafi_bundles.manifest` and `BoxCollider` setup for `island_heliport`.

## 0.1.9 - Save-Safe Research Node Aliases, Seismic Reservoir Surveys, Staged Upgrade Orders & Persistent 3D View
- Fixed `Failed find proto` / `__PHANTOM__RESEARCH__` during save load by registering `OffshoreModularPlatforms.`-prefixed `ResearchNodeProto` IDs, `TechnologyProto` unlock cards, and legacy unprefixed aliases (`OffshoreTech_T1..T4`) in `ProtosDb`.
- Added 3D Seismic & Appraisal Well Reservoir Surveys (`OffshoreModuleActionKind.SurveyReservoir`, `+35%` recoverable reserves per survey, up to 5 surveys at `T4`) and non-instant 4-stage material delivery/installation orders (`PlatformUpgradeOrder`: `LoadingAtIsland` -> `VesselInTransit` -> `OffloadingAtPlatform` -> `InstallingOnPlatform`) with full cancellation refund.
- Kept the 3D Offshore Platform view accessible during external or modular upgrades (`IsConstructedFor3dView`), standardized UI labels/tooltips in English, and added live difficulty switching (`Easy: Visual`, `Medium: Operational`, `Hard: Realistic`).

## 0.1.8 - World Map Auto-Close/Restore, Conserved Reservoir Water Cut, Bow-First Visiting Ships & Pause-Aware 3D Animations
- Added automatic `WorldMapWindow` close when opening the 3D Offshore Platform view from `WorldMapMineInspector` and automatic world map restoration (`OpenAndCenterOnLocation`) on exit (`Close 3D`, `Esc`, `F8`).
- Synchronized reservoir depletion strictly with completed `WorldMapMine` production cycles (`GrossExtracted == NetCrudeOil + ProducedWater`) with realistic `5%`–`80%` progressive Water Cut curve.
- Locked 3D view access before initial Oil Rig construction finishes, scaled up the 3D offshore platform with animated flare flame/light/smoke (`FlareFlameRoot`, `FlareSmokePool`), slewing pedestal crane (`CraneBoom`), radar (`RadarDish`), and reciprocating `TravelingBlock`.
- Corrected visiting `CargoShipV2` and `BattleShip` bow-first (`+Z`) approach/berthing/departure orientation with persistent pose across 3D view toggles, floating offloading hose catenary (`OffloadingHose`), and 100% animation freeze when simulation is paused (`OffshoreAnimationClock`).

## 0.1.7 - Research Tree Progression, Difficulty Modes & Real Material Upgrade Costs
- Added 3 difficulty modes (`EasyVisualOnly`, `MediumOperational`, `HardRealistic`) persisted in `config.json` (`ModJsonConfig`) and 4-tier Offshore Engineering progression (`OffshoreTechUnlocks` `T1`–`T4`).
- Added real material cost calculation and `IAssetTransactionManager` deduction (`Steel`, `MechanicalParts`, `Electronics`, `ConcreteSlab`) for adding wells/risers, production separator skids, and structural tier upgrades (`OffshoreEconomicsCalculator.CalculateModuleActionCost`).
- Enforced depth and tech tier gates on unconstructed World Map Oil Rigs (`CanConstructOrRepairAtDepth`) and added return-ship dispatch (`ReturnVisitingShipToHome` via `GoToLocationCmd` and `CargoShipDepartNowCmd`).

## 0.1.6 - Visiting Ship Sync, Berthing Controller & Offloading Hose Catenary
- Added `OffshoreVisitingShipController` and `InspectVisitingShipForMine` tracking live `TravelingFleetManager` (`BattleShip`) and `CargoShipV2` visits to offshore Oil Rig locations.
- Added 3D visiting tanker and exploration ship instantiation (`OffshoreAssetResolver.InstantiateVisitingShip`) with procedural catenary offloading hose and floating buoy collars (`OffshorePlatformAnimatorMb`).

## 0.1.5 - 3D Orbital Camera Model & Isolated Deep-Ocean Scene
- Added custom 360° orbital camera (`OffshoreOrbitalCameraModel`) with right/middle mouse drag orbit, scroll wheel zoom (`22m`–`240m`), and `Esc` / `F8` quick exit restoring the saved island camera pose.
- Isolated the 3D offshore platform scene (`OffshoreOceanVisualizer` at `(-6000, oceanSurfaceY, -6000)`) so viewing an offshore rig never collides with island terrain or buildings.

## 0.1.4 - Native COI UI Toolkit Integration (`WorldMapMineInspector` & Top HUD)
- Added `OffshoreNativeUiController` using COI's native `Mafi.Unity.UiToolkit` (`Window`, `PanelWithHeader`, `ProgressBarWithLabel`, `ButtonIconText`, `ButtonIcon`).
- Embedded an offshore status panel and "Open 3D Platform" action button directly into `WorldMapMineInspector` for Crude Oil rigs, plus a top-bar quick toggle button in `CalendarControlsHud` (`F8`).

## 0.1.3 - World Map Oil Rig Telemetry & Multi-Rig Focus Cycling
- Enhanced `OffshoreOilRigSyncCoordinator` and `WorldOilRigDescriptor` to bind multiple World Map Crude Oil mines (`WorldMapManager.Mines`, `EntitiesUnderConstruction`, `WorldMap.Locations`), syncing real buffer storage (`StoredOil / StorageCapacity`), upgrade levels, and pathfinder world distances (`IWorldMapPathFinder`).
- Added multi-platform focus cycling (`CycleFocusedPlatform`) when multiple offshore Oil Rigs are active on the World Map.

## 0.1.2 - Late-Session Oil Rig Binding & Construction Gate Enforcement
- Fixed late-session discovery of newly repaired/constructed World Map Oil Rigs and prevented untouched broken rigs from producing oil before player repair starts (`SetWorldRigOperationalGate`).
- Added monotonic simulation step delta tracking (`OffshoreModController.ComputeDeltaSimSteps`).

## 0.1.1 - Safe WorldMap Bootstrap & Mafi `VersionSlim` Packaging
- Fixed early-boot `WorldMapManager.Map` access before map generation completes (`OffshoreModController.TryReadWorldMapSafe` and `MapReplaced` event subscription).
- Updated `version.json` and `scripts/package-coihub.ps1` to validate `Mafi.VersionSlim`-compatible manifest versions and automate deployment to `%APPDATA%\Captain of Industry\Mods\OffshoreModularPlatforms`.

## 0.1.0 - Phase 1 Functional Mockup
- Added pure simulation core (`OffshoreModularPlatforms.Core`) decoupled from COI/Unity:
- Distance calculation from central island to offshore nodes and distance/depth-scaled mobilization quotes.
- Reservoir reserve & pressure decline modeling with Phase 2 `EnableWaterCut` hook.
- Well & riser installation lifecycle (`Drilling` -> `RiserInstalling` -> `Producing` -> `Depleted`).
- Modular production and capacity upgrades up to tier 3, plus `FixedPlatform` vs `Fpso` unit specs.
- Added COI v0.8.8 integration (`OffshoreModularPlatforms`) implementing `IMod`:
- `manifest.json` (`non_locking_dll_load: true`, `min_game_version: 0.8.8`).
- Non-saveable `SyncUpdate` cadence depositing produced `CrudeOil` via `IAssetTransactionManager` and resource deduction helpers for upgrades.
- 3D oceanic placement and modular visual controller (`OffshoreOceanVisualizer` + `OffshoreAssetResolver`) with custom AssetBundle support and native COI/primitive fallback.
- Generated 4 modular 3D assets (`base_fixed`, `well_riser`, `production_module`, `upgrade_module`) in Blender 5.3 with `(0,0,0)` pivots and Unity `BuildMafiAssetBundles.cs` editor script.
- Added xUnit unit test suite and COI Hub release packaging script (`scripts/package-coihub.ps1`).
This mod depends on

This mod has no dependencies.

Mods that depend on this

No other mods depend on this mod yet.

Loading statistics…