Gregtech++ [GT++] [GTplusplus]

Gregtech++ [GT++] [GTplusplus]

94.1k Downloads

power substation NC2 display needs maintenance status

richardhendricks opened this issue ยท 7 comments

commented

Current power station Nuclear Control 2 Information Panel information doesn't include maintenance status.

2018-04-13_23 57 37

commented

Basagna.
image

commented

it is GT problem

commented

GTNewHorizons/GT5-Unofficial@7971edd

Will post it to Bloody when it gets proper testing

commented

I'll just close this one then, lel.

commented

I don't understand how this is a "GT" problem. I am specifically talking about the power station maintenance state. It is a multiblock, it can need maintenance, and when it does, it wastes extra power.

image

When I did maintenance on the Power Station, its running costs dropped to 102 EU/t.

		return new String[]{
				"Ergon Energy - District Sub-Station",
				"Stored EU:" + storedEnergyText,
				"Capacity: " + EnumChatFormatting.YELLOW + GT_Utility.formatNumbers(this.maxEUStore()) + EnumChatFormatting.RESET,
				"Running Costs: " + EnumChatFormatting.RED + GT_Utility.formatNumbers(this.computeEnergyTax()) + EnumChatFormatting.RESET + " EU/t",
				"Controller Mode: " + mode,
				"Stats for Nerds",
				"Total Input: " + EnumChatFormatting.BLUE + GT_Utility.formatNumbers(this.mTotalEnergyAdded) + EnumChatFormatting.RESET + " EU",
				"Total Output: " + EnumChatFormatting.GOLD + GT_Utility.formatNumbers(this.mTotalEnergyConsumed) + EnumChatFormatting.RESET + " EU",
				"Total Costs: " + EnumChatFormatting.RED + GT_Utility.formatNumbers(this.mTotalEnergyLost) + EnumChatFormatting.RESET + " EU",

				"Total Time Since Built: ",
				""+weeks+" Weeks.",
				""+days+" Days.",
				""+hours+" Hours.",
				""+minutes+" Minutes.",
				""+second+" Seconds.",
				"Total Time in ticks: "+this.mTotalRunTime
		};

Energy tax calculation based on repair state

	private long computeEnergyTax() {
		float mTax = mAverageEuUsage * (ENERGY_TAX / 100f);

		// Increase tax up to 2x if machine is not fully repaired
		mTax = mTax * (1f + (10000f - mEfficiency) / 10000f);

		return MathUtils.roundToClosestInt(mTax);
	}
commented

Gregtech, specifically it's implementation for nuclear info, only looks at the first 8 strings returned from getInfo. The fix from tec will have it read all of them.

The debug scanner uses the same getinfo but uses all of the strings returned.

commented

Sure, I get that, but the problem is that the power station scan info doesn't return maintenance status. ๐Ÿ—ก