Jump to content

Recommended Posts

Posted

function pt(t) -- print table

  for k,v in pairs(t) do print(tostring(k).." = "..tostring(v)) end

end

 

sensors.setSensorRange("right", "Sensor", "16") -- short range so only I am detected

 

tTable = sensors.getAvailableTargetsforProbe("right", "Sensor", "LivingEntities")

pt(tTable) -- prints a living entity (me) and my coordinates

 

ent = tostring(tTable[1]) -- my name & coords are displayed, as expected

 

tTable = sensors.getSensorReadingAsDict("right", "Sensor", ent, "LivingEntities")

pt(tTable) -- EMPTY! NOTHING DISPLAYED!

It didn't work so I grabbed the ccSensors/console program, copied it to my computer, found the call to getSensorReadingAsDict() and made it display exactly what parameters were being passed to the function and then crash the program. Turns out the official ccSensors program is passing THE EXACT SAME PARAMETERS as my program passes to the same function, yet mine doesn't work. This is bizarre. I dun get. Has someone successfully coded for the ccSensors API? There's barely any information for it out there.

(I want to hook up a player name detector to my base so it can execute item evac and self destruct in the case someone ever finds it.)

  • 4 weeks later...
Posted

I can't get the LivingEntities or Players probe to work at all even in the ccSensors/console app!

The only probe that seems to work with the proximity sensor is the TargetInfo

They don't work at all, actually. The computer interface at least. Confirmed in both Tekkit 3.1.2 and 3.1.3.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...