Logistics Pipes

Logistics Pipes

13M Downloads

Free LP&AE energy!

NoX-programer opened this issue ยท 4 comments

commented

Idea of bug #158 made me to investigate further and this is what we got.
We need to build incomplete 5*5 rectangle of basic logistics pipes and attach ME interfaces and ME controllers between them as shown here:
2013-08-12_19 19 42
also attach logistics power junction for example to left side. Give then some power to it and stop. It is not necessary to fill it completely.
We can attach any logistics pipes to the right bottom corner basic pipe and also any AE devices to (for example) bottom AE segment and what we have? Unlimited power! Because power isn't drains from logistics power junction. Even ME controllers shows online status and zero energy consumption:
2013-08-12_19 20 04
Okay, enough fun, here is solution I suggest: do not accept power from ME interfaces, never! It's only logistics power junction function. But it just my opinion.
By the way, this bug on AE tracker: http://ae-mod.info/Tracker/0367/

commented

I tested this as well, from what i see the problem is, that for some reason canUseEnergy returns true on LP side while the useEnergy command returns false. I don't know if it is an LP or AE problem, , or both but a quickfiy from LP side would be to check the return of useEnergy as well.

commented

That should fix it for now, but it would still be interesting to know how canUseEnergy can return something else then useEnergy.

commented

Not sure, i'll implement my change as well. Seems like a good idea to use the same usage pattern on my side as well.

commented

@AartBluestoke

Tested this, it appears I can resolve this by call canProvidePower as well as usePower, this appears to be more in line with how LP works internally.

Since it seemed to work fine without this when testing it seemed like an unnecessary step.

Would you like me to implement this change? or would you like to look into why calling usePower can return phantom power?

Let me know, I'm cool either way.