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

Does ccSensors actually work on tekkit?

Started by Zamithal, 27 December 2012 - 01:11 PM
Zamithal #1
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?
Luanub #2
Posted 27 December 2012 - 04:06 PM
You should probably post this in the CC Sensors post in the peripheral section.
remiX #3
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.