14 posts
Posted 06 June 2015 - 10:44 AM
Hello
I have a problem with this DW20 Mystcraft Portal CC Program.
in line 16 are i become of the turtle "atemt cal nill"
can you pleace help me??
turtle book Program:
http://pastebin.com/B0hM26AHCC. Portal Program :
http://pastebin.com/VMbXYRgw button Program:
http://pastebin.com/18pB7QM9CC stat with portal program but after the turtle ar become in line 16 "a call nill."
1426 posts
Location
Does anyone put something serious here?
Posted 06 June 2015 - 10:55 AM
If you look at line 16 you have:
local slots = p.getAllStacks()
The "attempt to call nil" error means the function you are trying to use doesn't exist. In this case it is getAllStacks. I'd check that the peripheral below the turtle is a chest. If it is run the "lua" program and check the output of:
peripheral.getMethods("bottom")
Also, this should be in Ask a Pro.
14 posts
Posted 08 June 2015 - 09:05 PM
getAllStacks is in the Methods
but not working. pleae help
14 posts
Posted 12 June 2015 - 04:38 PM
hello. ??????
3057 posts
Location
United States of America
Posted 12 June 2015 - 06:54 PM
What version of CC, OpenPeripherals, etc. do you have? I believe there was a build of OpenP that had no functionality, but looked like it did.
14 posts
Posted 12 June 2015 - 09:07 PM
version OPAddons 1.7.10-0.3.1
OPCore 1.7.10-1.1.1
OP Integration 1.7.10-0.2.2
CC. 1.73
direwolf20 pack version. 1.7.10 - 1.4.1
Edited on 12 June 2015 - 07:09 PM
7083 posts
Location
Tasmania (AU)
Posted 13 June 2015 - 03:14 AM
In the Lua console, enter:
p = peripheral.wrap("bottom")
p.getAllStacks -- What's this say?
p.getAllStacks() -- ... and what's this say?
14 posts
Posted 13 June 2015 - 07:36 PM
p = peripheral.wrap("bottom")
p.getAllStacks – What's this say? 2b140d79
p.getAllStacks() – … and what's this say? {}
7083 posts
Location
Tasmania (AU)
Posted 14 June 2015 - 02:11 AM
Well, if running that stuff on the turtle gives you that output, then running the turtle book script on the turtle should not throw an "attempt to call nil" on line 16. I can't see any way that can happen within the code you've provided.
Double check the error, and double check that the contents of the specific script file you're running matches the contents of the paste link you've provided.