2 posts
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!!!.
3057 posts
Location
United States of America
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.
7083 posts
Location
Tasmania (AU)
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.
2 posts
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