feat: v4.0.0 -- radiator switch picks the mode, ammo gate removed
ON vents constantly (vanilla). OFF banks heat and vents only when the network is nearly full. The gate is now PowerToggle OR MustVent. The launcher's thermal-ammo broadcast is gone: it did not follow the ammo selection live, and the switch states the player's intent directly. Only the radiator is patched now. New test_gate_is_power_or_must_vent pins the semantics. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oLWY1G6S8U35bi2FxVWni
This commit is contained in:
@@ -7,49 +7,39 @@
|
||||
// pull from the same pool, with the same Mode, in the same category, and
|
||||
// Data/ships/priorities.rules defines no ordering between them.
|
||||
//
|
||||
// The patches below add components to two vanilla parts -- the radiator, which
|
||||
// decides and acts, and the missile launcher, which reports whether thermal
|
||||
// ammunition is in use -- and then repoint the radiator's heat dissipation,
|
||||
// steam plume, dissipation readout and power indicator from the raw PowerToggle
|
||||
// to the AutoPowerToggle gate defined in components/radiator_auto.rules.
|
||||
// The patches below add components to one vanilla part, the radiator, and
|
||||
// repoint its heat dissipation, steam plume, dissipation readout and power
|
||||
// indicator from the raw PowerToggle to the AutoPowerToggle gate defined in
|
||||
// components/radiator_auto.rules. The radiator's own on/off switch picks the
|
||||
// mode: ON vents constantly (vanilla), OFF banks heat and vents only when the
|
||||
// network is nearly full.
|
||||
//
|
||||
// The radiator measures the heat network's remaining room itself, so nothing
|
||||
// patches the thermal battery or the overclock base. Holding requires positive
|
||||
// evidence of headroom; anything missing or unmeasurable results in venting.
|
||||
// The radiator measures the heat network's remaining room itself, so no other
|
||||
// part is patched. Idling requires positive evidence of headroom; anything
|
||||
// missing or unmeasurable results in venting.
|
||||
//
|
||||
// Nothing here changes a stat or a number. It only changes when radiators run.
|
||||
|
||||
ID = ganter.auto_radiator
|
||||
Name = "Auto Radiator"
|
||||
Version = 3.0.0
|
||||
Version = 4.0.0
|
||||
CompatibleGameVersions = ["0.30.4c", "0.30.4"]
|
||||
ModifiesGameplay = true
|
||||
Author = "Tobias Ganter"
|
||||
|
||||
Description = "Radiators only vent surplus heat instead of running constantly.\n\n"\
|
||||
Description = "Radiators switched OFF bank heat and vent only when the ship's heat storage is nearly full.\n\n"\
|
||||
"Thermal Canister Missiles are built from your ship's own heat, and in vanilla "\
|
||||
"your radiators compete with your launchers for it -- the heat network is drained "\
|
||||
"to keep radiators busy, and your missiles reload at whatever rate your reactors "\
|
||||
"happen to produce.\n\n"\
|
||||
"With this mod, radiators hold off while the heat network still has room, keeping "\
|
||||
"your thermal batteries topped up as a deep missile reserve, and vent as the "\
|
||||
"network runs out of room.\n\n"\
|
||||
"- Only applies when a launcher is actually set to Thermal Canister Missiles. "\
|
||||
"Otherwise radiators behave exactly as in vanilla.\n\n"\
|
||||
"- Your manual radiator on/off switch still overrides everything.\n\n"\
|
||||
"- Fail-safe: holding heat requires measured headroom on the network. If that "\
|
||||
"headroom runs low, or cannot be measured at all, radiators vent."
|
||||
"your radiators compete with your launchers for it. With this mod the radiator's "\
|
||||
"on/off switch picks a mode:\n\n"\
|
||||
"- ON: vanilla. Vents constantly, the heat is gone.\n\n"\
|
||||
"- OFF: banks heat as a deep missile reserve. The radiator idles while the heat "\
|
||||
"network has room and vents as it approaches full, so the ship never overflows "\
|
||||
"heat onto its own parts. An OFF radiator also frees its crew.\n\n"\
|
||||
"- Fail-safe: idling requires measured headroom on the network. If that runs low, "\
|
||||
"or cannot be measured at all, radiators vent."
|
||||
|
||||
Actions
|
||||
[
|
||||
// The missile launcher reports whether it is set to thermal ammunition.
|
||||
{
|
||||
Action = AddBase
|
||||
AddBaseTo = "<ships/terran/missile_launcher/missile_launcher.rules>/Part/Components"
|
||||
BaseToAdd = &<components/launcher_ammo_signal.rules>
|
||||
}
|
||||
|
||||
|
||||
// --- Receiver ---------------------------------------------------------
|
||||
|
||||
{
|
||||
@@ -58,21 +48,20 @@ Actions
|
||||
BaseToAdd = &<components/radiator_auto.rules>
|
||||
}
|
||||
|
||||
// --- Attach the radiator's receivers to the network -------------------
|
||||
// --- Attach the radiator's network reader ----------------------------
|
||||
//
|
||||
// A network component only reaches the network if a route leads to it. The
|
||||
// radiator's ports anchor on NetworkedHeatBuffer, and its existing Router
|
||||
// bridges that anchor to the other network components -- which is how
|
||||
// vanilla's own NetworkedThermalDissipationLoadValue gets connected.
|
||||
// Without these three entries the receivers are inert and read nothing,
|
||||
// which makes the vent gate permanently open.
|
||||
// Without this entry the reader is inert, reads 0, and the radiator vents
|
||||
// permanently.
|
||||
{
|
||||
Action = AddMany
|
||||
AddTo = "<ships/terran/radiator/radiator.rules>/Part/Components/Router/RouteGenerators/0/Routes"
|
||||
ManyToAdd
|
||||
[
|
||||
[NetworkedHeatBuffer, AutoRad_NetworkSpace, 0]
|
||||
[NetworkedHeatBuffer, AutoRad_ThermalAmmoSignal, 0]
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user