Jump to content




No Data In Table Using Openperipherals On Railcraft Tank


  • You cannot reply to this topic
2 replies to this topic

#1 Heavens

  • Members
  • 4 posts

Posted 04 August 2013 - 03:29 PM

Hello everyone :)
I'm having a little trouble getting tank data from a Railcraft Iron Tank filled with water.

The following code only gives me 1, 0 if I write the table to a monitor.

local ironTankValve = peripheral.wrap("back")
local monitor = peripheral.wrap("top")
local tableInfo = ironTankValve.getTanks("back")

for k, v in pairs(tableInfo) do
  monitor.write(k, v)
end

Am I doing something wrong? I've done some coding but I never really wrapped my head around the whole table thing but my code should print out all the data in the tanks table right?

Any help is appreciated :D

The documentation for an IronTankValve peripheral:
Spoiler


#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 04 August 2013 - 03:32 PM

Split into new topic.

You might try asking over on the OpenPeripheral topic in the Peripherals section.

#3 Heavens

  • Members
  • 4 posts

Posted 04 August 2013 - 09:49 PM

Thanks! I've already made one. I'll update this topic if I know something new :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users