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

Auto Spawner

Started by WoWGamergirl, 01 May 2015 - 08:31 AM
WoWGamergirl #1
Posted 01 May 2015 - 10:31 AM
I am new to coding in Lua so bare with me. I am trying to get an auto spawner going on Direwolf20.
Things I am using:
CC Wireless Turtle
MFR Auto-Spawner
CC Advanced Computer
CC Advanced 3X5 Monitors
V Chest
MFR Reuseable Nets


The pastebins I am using are:
http://pastebin.com/HPuFLZtf in the Turtle's GUI
http://pastebin.com/dZ65MXB6 in the Computer's GUI


I keep getting the error on line 61 of the Computer's GUI but I don't Understand because i have the table in the Turtle.

Anyhelp would be greatly helpful.
Thank you in advance.


:D/> smiles and happiness from Gamers_Paradise :D/>
HPWebcamAble #2
Posted 01 May 2015 - 11:32 PM
What is the exact error?
Bomb Bloke #3
Posted 02 May 2015 - 01:03 AM
Line 61 would error if "mobs" isn't a table. mobs wouldn't be a table if command("getAllMobs",nil) returned nil. command("getAllMobs",nil) would return nil if the rednet.receive(5) on line 23 timed out, instead of receiving a message.

Looking at the turtle code, it seems like it should respond - are you seeing the "Executing getAllMobs command with args " message appearing there? Are both compId and turtleId set correctly?

Which version of ComputerCraft are we talking about? If it's old enough, it may lack the ability to send tables via rednet.