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

Attempt to index...

Started by Billboule, 13 November 2016 - 01:09 PM
Billboule #1
Posted 13 November 2016 - 02:09 PM
(Before starting I wanna say sorry if my english isn't very good to understand…)

Hi, I was trying to create a program in a simple computer to modify the radius of the Digital Miner from mekanism. I tried to understand how does it work, so I wrote :

edit radiusDM

then in the program i wrote :

p = peripheral.wrap("bottom")
p.setRadius(128)

I saved then exit, and when i try to launch the program (writing radiusDM), it says me :

radiusDM:2: attempt to index ? (a nil value)

I tried to watch how to fix it in forums, but as i dont know the program code at all, I wanna ask from myself.

Thanks :)/>
Bomb Bloke #2
Posted 13 November 2016 - 09:30 PM
ComputerCraft doesn't directly support using third-party blocks as peripherals - other mods either have to add that support themselves, or rely upon third mods (usually OpenPeripheral) to add it for them.

In your current mod setup, it sounds like the Digital Miner isn't recognised as a peripheral at all.