Integrated Tunnels

Integrated Tunnels

53M Downloads

[Suggestion] Read Transfer Rate for Energy Interfaces

AgentA1cr opened this issue · 11 comments

commented

Issue type:

  • ➕ Feature request

It would be useful if the rf/t flowing through an energy interface could be written to a variable.

commented

You can already easily get this with a Delayer. IMO, we already have too many "sugar" operators.

commented

Thanks for the quick reply. I'll look into that method.

commented

This can indeed be done with the delayer already.

commented

Looking at the delayer, I can see how one could measure the net change in the energy level of a block over time, but not how one could measure raw energy throughput from one interface to another when the block the energy is coming from is also receiving energy. I want to be able to connect the integrated dynamics system inline in my power network and measure the rf/t flowing through it. Is there a way to do this with the current implementation?

commented

That's true, you can't currently do that at all. The problem is that in general, blocks don't keep track of that, so it's not something we can just add a reader for.

commented

I don't want to measure it in an external block. I want to measure it in an Integrated Tunnels energy interface. I want to know how much power an interface is receiving or outputting.

commented

This could be done by implementing a new type of energy interface, which tracks the energy that was moved per tick.

I'll reopen this issue, just in case anyone would be interested in implementing this in an addon mod. But this most likely won't be implemented in IT.

commented

Here's an idea I have for something like this: a Flow Gauge Reader. It would have two sides that each implement IItemHandler, IFluidHandler, and IEnergyStorage. Whenever anything was pulled/pushed from one of those sides, it would proxy it to the other side, then take note of whatever it was. The other 4 sides would connect to ID networks and act like an aspect reader that shows whatever was transferred each way in the last tick.

commented

@josephcsible That's also a possibility (perhaps even with 6 sides instead of only two).
But I still think this shouldn't be part of IT. This would make a nice addon though.

commented

I actually thought it would fit well in ID, since it seems to be all about reading stuff.

commented

Not sure, it feels a bit too use-case-specific. I might change my mind in the future though.