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

Help pleace- Mystcraft CC Control Program

Started by Blooddragon, 06 June 2015 - 08:44 AM
Blooddragon #1
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/B0hM26AH
CC. Portal Program : http://pastebin.com/VMbXYRgw
button Program: http://pastebin.com/18pB7QM9


CC stat with portal program but after the turtle ar become in line 16 "a call nill."
SquidDev #2
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.
Blooddragon #3
Posted 08 June 2015 - 09:05 PM
getAllStacks is in the Methods

but not working. pleae help
Blooddragon #4
Posted 12 June 2015 - 04:38 PM
hello. ??????
KingofGamesYami #5
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.
Blooddragon #6
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
Bomb Bloke #7
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?
Blooddragon #8
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? {}
Bomb Bloke #9
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.