ComputerCraft liquiduct peripheral help!!!

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

wog890

New Member
Jul 29, 2019
2
0
0
As the title says I need help reading info from a liquiduct. I am attempting to get info of it's internal tanks using it's method getTanks, but it requires a string that from the documentation is supposed to represent side. I have attempted every combination I can think of, (using both numbers as strings and words), but I always get an empty table. Any idea why and how do I fix this?
 

casilleroatr

New Member
Jul 29, 2019
1,360
0
0
I might be wrong but try using the same string you used to wrap the peripheral in the first place. So if you did it like this

Code:
local duct = peripheral.wrap("left")

then you might do this like this

Code:
local tankData = duct.getTanks("left")

The same applies if you used a wired modem to attach the peripheral. So if you wrapped it on this "side" - "liquiduct_0" - then that will be the side for the getTanks method too. I am not completely sure about this as it has been awhile since I have used this feature.
 

wog890

New Member
Jul 29, 2019
2
0
0
I might be wrong but try using the same string you used to wrap the peripheral in the first place. So if you did it like this

Code:
local duct = peripheral.wrap("left")

then you might do this like this

Code:
local tankData = duct.getTanks("left")

The same applies if you used a wired modem to attach the peripheral. So if you wrapped it on this "side" - "liquiduct_0" - then that will be the side for the getTanks method too. I am not completely sure about this as it has been awhile since I have used this feature.

Unfortunately, I know this does not work because I tried every combination of side I could think of. The tank is on the back side of the computer and I did try:

Code:
local tank = peripheral.wrap("back")
local tankData = tank.getTanks("back")

Currently, I am switching to using the buildcraft tank, but I would prefer to use portable tanks. With the buildcraft tanks the same method works perfectly no matter what string you put in (although most seem to use "unknown"). Thank for the reply, but I would appreciate any more info on how to use this with portable tanks.
 

casilleroatr

New Member
Jul 29, 2019
1,360
0
0
I thought you were doing this with liquiducts.It makes more sense if you are using the portable tanks though.

The portable tank is sided. Try putting the tank either on top or bottom of the computer and put use the appropriate side then. Try the tank in both input and output mode and for each of those try these as the sides ("top") and ("bottom") because I don't know if the side is relative to the computer or the peripheral.

Actually, now that I am thinking about it try setting the tank to input at the top and output at the bottom and place the tank behind the computer as it was. Then try reading the "top" side and if that fails try the "bottom" side (or is it "down" I can never remember). Unless if you have already tried it.
 

Trunks9809

New Member
Jul 29, 2019
294
0
0
Its the side the cable (etc) is attached to, not the side relative to the position - so if your cable\modem\computer is at the front, the side = "front".

Also, depending on version, you may need to use getTankInfo("side") instead - I believe if you're running 1.5 you use getTanks, in 1.6 its getTankInfo