Jump to content




Does ccSensors actually work on tekkit?


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

#1 Zamithal

  • Members
  • 28 posts

Posted 27 December 2012 - 02:11 PM

os.unloadAPI("/rom/apis/sensorsAPI")
os.unloadAPI("/rom/apis/sensorsData")
os.unloadAPI("/rom/apis/sensorsUI")
os.loadAPI("/rom/apis/sensorsAPI")
os.loadAPI("/rom/apis/sensorsData")
os.loadAPI("/rom/apis/sensorsUI")

function printDict(data)
for i,v in pairs(data) do
  print(tostring(i).." - "..tostring(v))
end
end

ctrl = sensors.getController()
data = sensors.getSensors(ctrl)
printDict(data)
This code should return a list of all connected sensors from the adjacent Sensor Controller...problem is, it just returns 1 sensor named "Sensor" ( I have 6 named sensors)
I tested this in single player, works fine, not on SMP though, so is ccSensors-B017pr2 broken?

#2 Luanub

    Lua Nub

  • Members
  • 1,135 posts
  • LocationPortland OR

Posted 27 December 2012 - 04:06 PM

You should probably post this in the CC Sensors post in the peripheral section.

#3 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 27 December 2012 - 09:15 PM

It also use to only list 1 sensor for me on SMP when I use to play Tekkit. And even if I named it something like "MFSU Sensor", it comes up as "Sensor". Was quite annoying.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users