Hey all,
I have a problem detecting a full redstone energy cell when using a logic gate on an adjacent buildcraft pipe. The problem is that I have a constant energy sink from the cell, meaning that even if the input power is higher than the output power, the cell will never register as being full.
In case this isn't clear enough, I'll give some details of my setup. I have an array of combustion engines powering a few refineries, via redstone conduits with an energy cell in between. I estimate that the engines together provide roughly 70 MJ/t, and I have throttled the output from the cell to 45 MJ/t. So, my energy cell powers up at a rate of about 25 MJ/t. This might suggest the cell will become full eventually. However, it never gets above 599955 MJ, and thus the connected logic gate doesn't detect it as full. I assume this is because the energy of the cell is calculated each tick by first looking at input, then output, and then evaluating the energy stored. So it goes up to 600000 MJ and then back down to 599955 MJ before the condition is evaluated.
My aim is to use the redstone signal that the cell is full in order to turn off the engines for a few minutes using a state cell from Redpower, in order to not waste fuel. The problem I just described makes this difficult though.
My current workaround is to use a timer and state cell to de-activate the output from the energy cell for 0.4s every 20s. This gives time for the cell to build up to full if it has been hovering at 599955 MJ, thus activating the redstone signal and my state cell. This is not an ideal solution however; I don't like having to temporarily disable the output regularly to make this check.
Hopefully that made some sort of sense! Can anyone think of a better workaround or more intelligent solution to this problem?
I have a problem detecting a full redstone energy cell when using a logic gate on an adjacent buildcraft pipe. The problem is that I have a constant energy sink from the cell, meaning that even if the input power is higher than the output power, the cell will never register as being full.
In case this isn't clear enough, I'll give some details of my setup. I have an array of combustion engines powering a few refineries, via redstone conduits with an energy cell in between. I estimate that the engines together provide roughly 70 MJ/t, and I have throttled the output from the cell to 45 MJ/t. So, my energy cell powers up at a rate of about 25 MJ/t. This might suggest the cell will become full eventually. However, it never gets above 599955 MJ, and thus the connected logic gate doesn't detect it as full. I assume this is because the energy of the cell is calculated each tick by first looking at input, then output, and then evaluating the energy stored. So it goes up to 600000 MJ and then back down to 599955 MJ before the condition is evaluated.
My aim is to use the redstone signal that the cell is full in order to turn off the engines for a few minutes using a state cell from Redpower, in order to not waste fuel. The problem I just described makes this difficult though.
My current workaround is to use a timer and state cell to de-activate the output from the energy cell for 0.4s every 20s. This gives time for the cell to build up to full if it has been hovering at 599955 MJ, thus activating the redstone signal and my state cell. This is not an ideal solution however; I don't like having to temporarily disable the output regularly to make this check.
Hopefully that made some sort of sense! Can anyone think of a better workaround or more intelligent solution to this problem?