Posted 12 October 2013 - 11:53 AM
Everything I've tried so far has been to no avail with tanks…I have attempted to go to the most basic thing I can, just printing the tank information so I can later manipulate the data. Unfortunately, not even the wizard of Google can seem to solve my issue. Perhaps I simply stink at looking? I'm using Open Peripherals and a Railcraft tank, with the computer directly in front of the valve. The error is an attempt to reference a nil value on the second line. Anyways, here's the code
local value = peripheral.wrap("back")
local tableInfo = valve.getTAnks("unknown")
for k, v in pairs(tableInfo) do
for x, y in pairs(v) do
print(x..":"..y)
end
end
Any help would be much appreciated! Thanks for your time, and "tanks" in advance for the help! :D/>
local value = peripheral.wrap("back")
local tableInfo = valve.getTAnks("unknown")
for k, v in pairs(tableInfo) do
for x, y in pairs(v) do
print(x..":"..y)
end
end
Any help would be much appreciated! Thanks for your time, and "tanks" in advance for the help! :D/>