Jump to content




[Peripherals] New CC version and ICBM


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

#1 Wing

  • Members
  • 58 posts

Posted 26 October 2014 - 08:43 PM

Quick question for the folks that might know.

Has the ICBM compatibility with CC since stopped working? Come to try again today to find out this no longer worked:
radar = peripheral.wrap("which ever direction")
radar.getEntities()
If you try this, it'll give you: FILENAME:WHICHEVERLINE: attempt to index ? (a nil value)
This kinda blows. Any suggestions?

#2 johnnic

  • Members
  • 50 posts
  • LocationSomewhere in ****** County, *******

Posted 26 October 2014 - 09:29 PM

This code will tell you if there is a peripheral on the specified side and the methods it has.

local side="left" --change this to the side.
if peripheral.isPresent(side) then
print("There is a "..peripheral.getType(side).." peripheral on the "..side.." side.")
print("Its methods are:")
for t,y in pairs(peripheral.getMethods(side)) do
  print(t);
end
else
print("There is no peripheral on the "..side.." side.")
end


#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 26 October 2014 - 09:47 PM

Wing's code has already established that there's no valid peripheral on the specified side. Things aren't going to work with his current mod set up.

As to why: ComputerCraft doesn't accept ICBM blocks as peripherals unless some other mod rigs things otherwise. That other mod may be ICBM. That other mod may be OpenPeripheral. It'd be a matter of finding out which, then checking the version numbers of the two or three mods in concern.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users