GregTech CE Unofficial

GregTech CE Unofficial

412k Downloads

"Excess Fluid Voiding" in Super / Quantum Tanks not working correctly with automation and can void the wrong fluids

minghinshi opened this issue ยท 4 comments

commented

GregTech CEu Version

v2.6.2-beta

Modpack Used

No response

Addons Installed

  • AE2 Unofficial Extended Life rv6-stable-7-extended_life-v0.55.15
  • CodeChicken Lib 3.2.3.358
  • Forge 14.23.5.2859

Environment

Singleplayer

New Worlds

Yes

Cross-Mod Interaction

Yes

Expected Behavior

When a Super / Quantum Tank with Excess Fluid Voiding is enabled, and that it currently has a fluid inside, it should only accept the same fluid, voiding the extra fluid if the amount exceeds its capacity.

Actual Behavior

By connecting the aforementioned Super / Quantum Tank into an AE2 system with a fluid storage bus, through a fluid terminal, suddenly I was able to put a different fluid into the tank, but that different fluid will be voided.

Steps to Reproduce

bug_demonstration.mp4

Near the end of the video, I disabled Excess Fluid Voiding and tried to put lava into the AE2 system. The system correctly rejects it, confirming that the source of the bug is due to the Excess Fluid Voiding mode.

Additional Information

If a different fluid is put into the tank through its slots, then the tank correctly rejects the fluid.

image

I first found this bug in Nomifactory GTCEu 1.6.1-beta-3a, but I downloaded GTCEu and AE2 only for testing purposes and the bug persists, so I think it is a problem on GTCEu's side. If I were to guess, the Excess Fluid Voiding mode opens up a second slot for the excess fluid to go in, and it's supposed to accept the same fluid as the tank currently has. However, AE2 simply sees the extra slot and decides to put any fluid inside, and then the GT tank voids whatever is in the second slot immediately. When Excess Fluid Voiding is disabled, the second slot is closed and now the lava has nowhere to go in AE2, which is why the system rejects it.

There's an issue over in the Nomifactory GTCEu repo, not sure if it's mentioning the same issue: Nomi-CEu/Nomi-CEu#334

commented

Could you retry this with the latest version of CEu? Attempting to reproduce this on the latest version and it seems fixed.

commented
bug_demonstration_2.mp4

Sorry for the late reply. I just tested with GregTech 2.7.2-beta and AE2 v0.55.19. The bug still persists.

commented
bug_demonstration_4.mp4

In this video, I have 2 super tanks, one filled with lava, another with some water. I turned on excessive fluid voiding for the water tank, and then made the lava tank auto-output to a pipe connected to the water tank. Indeed, lava is being voided at a rate of 1,000 L/t (the throughput of the pipe), showing that the problem is native to GregTech. I changed the name of this issue to reflect that.

commented

confirmed, can reproduce