Skip to content

Display Cable Overload warning in Jade#4899

Open
DilithiumThoride wants to merge 6 commits into
1.20.1from
dt/cableburn
Open

Display Cable Overload warning in Jade#4899
DilithiumThoride wants to merge 6 commits into
1.20.1from
dt/cableburn

Conversation

@DilithiumThoride
Copy link
Copy Markdown
Contributor

@DilithiumThoride DilithiumThoride commented Jun 2, 2026

What

When cables are fed excessive voltage or amperage they don't fail instantly, they build up heat for a few moments before catching fire.

This accumulation is not displayed or warned; cables simply either fail or don't, making intermittently or accidentally overloaded cables unclear to diagnose.

This PR adds a line to the Jade provider for cables to show when a cable is about to overload and burn.

Implementation Details

The overheat progress is calculated internally as a temperature from 293K (initial) to 3000K (failure). Cable fails instantly upon reaching 3000K; or at above 1500K it has a chance per tick to first lose its Insulation.
However, this temperature does not interact with any other parts of the world (thermal damage, cable material, etc.) so displaying it directly as a temperature is not really helpful to a player, and can be misleading as they may think the temperature is connected to other things.

As such I opted to display it as an integer calculated percentage where at 0% the Jade text is hidden, and at 100% the cable burns up.

AI Usage

  • [ X ] No AI driven tools were used for this pull request.

Outcome

Cable is being fed power at 33V. Voltage drop is bringing it down to visibly 32V but because the connection is being overvolted the cable is heating up.
image

How Was This Tested

Jade visual readouts

Additional Information

Cable initial and melt temperatures are both now public static rather than private or local.

Potential Compatibility Issues

Uncertain if readout will work correctly if another mod tries to modify the initial or failure temperatures of a cable. Not that to my knowledge anyone does at present.

@DilithiumThoride DilithiumThoride added the type: feature New feature or request bundled for a 0.X.0 Update label Jun 2, 2026
@DilithiumThoride DilithiumThoride requested a review from a team as a code owner June 2, 2026 01:08
@DilithiumThoride DilithiumThoride added 1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Jun 2, 2026
@github-actions github-actions Bot added the Tests: Passed Game Tests have passed on this PR label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. Tests: Passed Game Tests have passed on this PR type: feature New feature or request bundled for a 0.X.0 Update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant