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

Direwolf20's let's play mob coding, NEED HELP

Started by reggie997, 28 September 2014 - 01:38 AM
reggie997 #1
Posted 28 September 2014 - 03:38 AM
hey i copying dire's code and its keeps saying
mob:97: attempt to index ? (a nill value)
plz help i want my spawner to work but i dont know HOW!!!.
KingofGamesYami #2
Posted 28 September 2014 - 05:10 AM
c.getStackInSlot( 1 ) is returning nil. This causes data to be nil, thus when you attempt to index it, you get "attempt to index ? (a nil value).

Post the entire code using code tags if you want more advice; we simply cannot say where exactly the problem lies yet. I'm going to blame openperipherals versioning & Direwolf20's code here.
Bomb Bloke #3
Posted 28 September 2014 - 05:41 AM
I'm going to blame openperipherals versioning & Direwolf20's code here.

I'd agree.

Due to his reliance on OpenPeripheral, if one wants to use Dire's code without assistance, one must either use the exact mod pack version he's using or be a proficient enough coder that they could've just written the whole script themselves.
reggie997 #4
Posted 28 September 2014 - 02:25 PM
i downloaded dire's s6 ep 120 world, and all the programes he wrote, have stopped working. so im guessing its both, the latest version of computercraft, or penpipherals

and does anyone ahve a code for the buttons, and for the, spawner, attractor, and grinders?? be much appreciated if some one could give me a code. im terrible a computercraft