This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Karver's profile picture

Detect XyCraft Tank Levels

Started by Karver, 17 April 2013 - 07:28 PM
Karver #1
Posted 17 April 2013 - 09:28 PM
In FTB Ultimate pack with computers is there a way to detect tank levels?
Spongy141 #2
Posted 18 April 2013 - 06:04 PM
Try to find that here
PS Your Welcome!
Bubba #3
Posted 18 April 2013 - 06:22 PM
Try to find that here
PS Your Welcome!

That was pretty damn unhelpful. I know little to nothing about XyCraft tanks, but I'm fairly certain that there is no way in regular ComputerCraft to detect their levels. It is possible that openCCSensors or misc. peripherals has a peripheral that will detect them though. Go ahead and check those out. Like I said though, I really don't know anything about XyCraft. I do know that you can detect the levels in buildcraft tanks with openCCSensors though, so maybe you can work out a system with those? Here's a link to the wiki page for that.
Sariaz #4
Posted 18 April 2013 - 06:40 PM
Unless someone comes out with a peripheral for it you cant detect their levels. The closest you can get is measuring water as it is added and storing that. I believe that xycraft has a liquid detector built in. I would go with bubba though and use build craft.

Edit: minor rambling stuck in spoiler
SpoilerBesides buildcraft railcraft and redpower also have tanks. Im don't know if there are sensors for them though so you should probably stick to buildcraft. Although if there is a sensor for redpower I would use redpower since it has a lot more features. Like micro blocks, frames gota love the frames, and pneumatic tubes, super all in one machines, and did i mention frames? I think I did sorry for the ramble i just really like redpower.
jag #5
Posted 19 April 2013 - 02:41 AM
So what I can see no-one have yet answered this.

Well then…

When it comes to XY-craft tanks there is a XY-craft block called "Liquid detector".
A Liquid detector will output a redstone signal once the liquid level reaches it.

Here's an example:
SpoilerI've placed a "Cage Lamp" (from RP2) on the detectors so that you can see the redstone signal visually.
On the left is just some "Valve"'s and "XYchorium water" that filles up the tank with water.

This one is about 20% full.


And this one is about 60% full.

If you haven't figured it out yet; you can just hook up some cables (for example some colored RP2 ones) to read the information.

Here I've just hooked up some wires with a computer and made it print the amount in percentage on the monitor:
Spoiler
Images on imgur.com: link (5 pictures)

I hope I helped you
Brandhout #6
Posted 19 April 2013 - 02:47 AM
OpenCCsensors also has a tank sensor card. It is not standard in the FTB pack though. (i think it should be, its a cool mod)

I've the tank sensor card in combination with the Xycraft tank once, it was a while ago, but back then it didn't work 100% flawless. I guess it is probably fixed now though.

jag_e's solution is also a nice one, but you will not know the exact amount of liquid in the tank. And all the parts there are already in FTB.
Spongy141 #7
Posted 19 April 2013 - 03:56 AM
If you need more help on how to help jags way to work do, just use this program I JUST made…. Don't know if I did the bundled cables thing right, please correct any of my errors.

function clear()
  term.clear()
  term.setCursorPos(1,1)
end
while true do
  if rs.getBundledInput("back", colors.red) then
    clear()
    print("Tank Level is: 20%")
  end
  if rs.getBundledInput("back", colors.orange) then
    clear()
    print("Tank Level is: 40%")
  end
  if rs.getBundledInput("back", colors.yellow) then
    clear()
    print("Tank Level is: 60%")
  end
  if rs.getBundledInput("back", colors.green) then
    clear()
    print("Tank Level is: 80%")
  end
  if rs.getBundledInput("back", colors.lime) then
    clear()
    print("WARNING! Tank Level is: 100%")
  end
  if not rs.getInput then
    clear()
    print("Tank is empty!")
  end
end
Sariaz #8
Posted 19 April 2013 - 05:23 AM
So what I can see no-one have yet answered this.

Well then…

When it comes to XY-craft tanks there is a XY-craft block called "Liquid detector".
A Liquid detector will output a redstone signal once the liquid level reaches it.

Here's an example:
SpoilerI've placed a "Cage Lamp" (from RP2) on the detectors so that you can see the redstone signal visually.
On the left is just some "Valve"'s and "XYchorium water" that filles up the tank with water.

This one is about 20% full.


And this one is about 60% full.

If you haven't figured it out yet; you can just hook up some cables (for example some colored RP2 ones) to read the information.

Here I've just hooked up some wires with a computer and made it print the amount in percentage on the monitor:
Spoiler
Images on imgur.com: link (5 pictures)

I hope I helped you

So thats what the liquid detector dose thought it detected when water was passed through it or something :P/>
Karver #9
Posted 20 April 2013 - 04:35 PM
So what I can see no-one have yet answered this.

Well then…

When it comes to XY-craft tanks there is a XY-craft block called "Liquid detector".
A Liquid detector will output a redstone signal once the liquid level reaches it.

Here's an example:
SpoilerI've placed a "Cage Lamp" (from RP2) on the detectors so that you can see the redstone signal visually.
On the left is just some "Valve"'s and "XYchorium water" that filles up the tank with water.

This one is about 20% full.


And this one is about 60% full.

If you haven't figured it out yet; you can just hook up some cables (for example some colored RP2 ones) to read the information.

Here I've just hooked up some wires with a computer and made it print the amount in percentage on the monitor:
Spoiler
Images on imgur.com: link (5 pictures)

I hope I helped you
If you need more help on how to help jags way to work do, just use this program I JUST made…. Don't know if I did the bundled cables thing right, please correct any of my errors.

function clear()
  term.clear()
  term.setCursorPos(1,1)
end
while true do
  if rs.getBundledInput("back", colors.red) then
	clear()
	print("Tank Level is: 20%")
  end
  if rs.getBundledInput("back", colors.orange) then
	clear()
	print("Tank Level is: 40%")
  end
  if rs.getBundledInput("back", colors.yellow) then
	clear()
	print("Tank Level is: 60%")
  end
  if rs.getBundledInput("back", colors.green) then
	clear()
	print("Tank Level is: 80%")
  end
  if rs.getBundledInput("back", colors.lime) then
	clear()
	print("WARNING! Tank Level is: 100%")
  end
  if not rs.getInput then
	clear()
	print("Tank is empty!")
  end
end

Thanks for the help!