feat: v2.0.0 -- confirmed working, scaffolding removed

Confirmed in game. The radiator's thermal-ammo and hold signals both
arrive, VentAllowed goes false, and the radiator idles with its manual
switch still on -- heat banked for the launchers instead of vented.

The self-test probes did their job: ThresholdToggle was fine, and a
mod-defined category carries a value perfectly well. The EMP probe was
simply a bad probe -- it read thermal_load_dissipation, which an idled
radiator broadcasts as zero, so it was correctly reporting a real zero.
Routing in v1.3.0 was the actual cure.

Remove the probes and the diagnostic indicators. The repointed power
indicator is the one cue a player needs: it now shows on a radiator the
mod has idled.

Add test_override_values_name_real_components, which catches an Overrides
value naming a component that does not exist -- a fourth way to produce a
mod that loads clean and does nothing, and one this very commit
introduced while stripping the scaffolding.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oLWY1G6S8U35bi2FxVWni
This commit is contained in:
2026-08-29 00:27:25 +02:00
co-authored by Claude Opus 5
parent 323ee90f3d
commit d82b7e43a4
5 changed files with 99 additions and 212 deletions
+1 -78
View File
@@ -16,7 +16,7 @@
ID = ganter.auto_radiator
Name = "Auto Radiator"
Version = 1.4.0
Version = 2.0.0
CompatibleGameVersions = ["0.30.4c", "0.30.4"]
ModifiesGameplay = true
Author = "Tobias Ganter"
@@ -85,9 +85,6 @@ Actions
[NetworkedHeatBuffer, AutoRad_HoldSignal, 0]
[NetworkedHeatBuffer, AutoRad_ThermalAmmoSignal, 0]
[NetworkedHeatBuffer, AutoRad_ForceVentSignal, 0]
[NetworkedHeatBuffer, AutoRad_ProbeBroadcast, 0]
[NetworkedHeatBuffer, AutoRad_ProbeReceive, 0]
[NetworkedHeatBuffer, AutoRad_ProbeVanillaCat, 0]
]
}
@@ -140,78 +137,4 @@ Actions
Toggle = AutoPowerToggle
}
}
// --- Diagnostic indicators -------------------------------------------
//
// An indicator icon is drawn while its toggle is OFF. These three make the
// radiator report its own internal state, so a radiator that is not
// behaving can be read directly instead of guessed at:
//
// wrench icon always visible -> these components merged onto the part
// absent -> the AddBase did not take effect
// thermal missile visible -> no thermal-ammo signal is arriving
// resource icon visible -> no hold signal is arriving from a battery
//
// A working setup on a ship with a thermal launcher and a battery below the
// vent ceiling shows the wrench alone.
{
Action = AddMany
AddTo = "<ships/terran/radiator/radiator.rules>/Part/Components/Indicators/Indicators"
ManyToAdd
[
{
Toggle = AutoRad_AlwaysOff
AtlasSprite
{
File = &/INDICATORS/MissingComponent
Size = [1, 1]
}
}
{
Toggle = AutoRad_ThermalAmmoInUse
AtlasSprite
{
File = &/INDICATORS/NoThermalMissiles
Size = [1, 1]
}
}
{
Toggle = AutoRad_IsHolding
AtlasSprite
{
File = &/INDICATORS/NoResource
Size = [1, 1]
}
}
// Probe A: mine icon visible -> ThresholdToggle itself misbehaves.
{
Toggle = AutoRad_ProbeThresholdOK
AtlasSprite
{
File = &/INDICATORS/NoMines
Size = [1, 1]
}
}
// Probe B: crew icon visible -> a mod-defined category carries
// nothing, even broadcast and received on the same part.
{
Toggle = AutoRad_ProbeSelfLoopOK
AtlasSprite
{
File = &/INDICATORS/NoCrew
Size = [1, 1]
}
}
// Probe C: EMP icon visible -> receiving fails even for a category
// vanilla already broadcasts on this very part.
{
Toggle = AutoRad_ProbeVanillaCatOK
AtlasSprite
{
File = &/INDICATORS/NoEmp
Size = [1, 1]
}
}
]
}
]