Files
cosmoteer-pressure-relief-r…/components/overclock_overflow_signal.rules
T
TotenKnopfandClaude Opus 5 831a628b53 feat: auto-gate radiators on heat network surplus
Radiators and Thermal Canister Missile launchers pull from the same heat
pool with identical NetworkResourceOutput settings, and priorities.rules
defines no ordering for heat. A constantly-running radiator therefore
spends missile ammunition to make steam.

Gate radiator dissipation on three network signals instead of the raw
PowerToggle: a 98%/94% hysteresis band on the thermal battery, whether
any launcher is actually set to thermal ammo, and an override driven by
the engine's own OverflowHeatStorage as a safety net.

Storage fullness causes no damage on its own -- only overflow does, and
only above 350 status per tile -- so the band sits high deliberately to
keep the network full as a missile reserve.

Signal polarity is "hold", not "vent", so any ship missing a broadcaster
falls back to vanilla behaviour.

Includes an offline validation suite that resolves every patch target,
component reference and component Type against the installed game data,
since all three otherwise fail only as a crash on game load.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oLWY1G6S8U35bi2FxVWni
2026-08-28 23:24:32 +02:00

35 lines
1.2 KiB
Plaintext

// ABOUT ME
// Components merged into base_part_overclock, the shared base for every
// overclockable part. They form the mod's safety net.
//
// Why it exists: the threshold band on the thermal battery is a prediction. It
// can be wrong -- if the ship generates heat faster than its radiators can
// clear it, or if heat pipe topology cannot deliver to the batteries quickly
// enough, heat overflows regardless of what percentage the band is set to.
//
// OverflowHeatStorage is the engine's own ground truth for that: heat only ever
// reaches it when the network has already refused the heat, which is the exact
// moment the part starts cooking itself. Any part in that state forces every
// radiator on the network to vent, ignoring the band entirely.
//
// The timer holds the signal for a few seconds so a stream of per-tick overflow
// events becomes one steady "vent now" rather than a flicker.
Overflow_VentTimer
{
Type = Timer
Duration = 3
StartExpired = true
StartTrigger = OverflowHeatStorage
ResetTrigger = OverflowHeatStorage
}
Overflow_NetworkedForceVent
{
Type = NetworkToggle
ToggleSource = Overflow_VentTimer
Categories = [ auto_radiator_force_vent ]
IncludeInPhysical = true
IncludeInBlueprints = false
}