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

Help!

Started by fairytal, 16 April 2012 - 04:44 PM
fairytal #1
Posted 16 April 2012 - 06:44 PM
so i made a API in notepad++ lua, and it saves as tree.lua but when i go into minecraft and put tree.getTree() it says

"attempt to index ? (a nil value) that happens all the time i even try doing it without saving it as tree.lua but the same thing happens…

help :)/>/>
Wolvan #2
Posted 16 April 2012 - 06:54 PM
Did you put the file into mods/ComputerCraft/lua/rom/api? Or did you put it directly on the computer. If so you have to go type

lua
and in there type
os.loadAPI([API_NAME])
fairytal #3
Posted 16 April 2012 - 06:59 PM
Did you put the file into mods/ComputerCraft/lua/rom/api? Or did you put it directly on the computer. If so you have to go type

lua
and in there type
os.loadAPI([API_NAME])
it put it inside the ai folder for computer craft yet doesnt work :S
Cloudy #4
Posted 16 April 2012 - 09:24 PM
Have you restarted the computer since you added it to the API's folder? Can you post the code of your API? You have probably done something wrong somewhere, and we can't see what without looking at it.
Advert #5
Posted 16 April 2012 - 10:47 PM
Closed: You are posting this in the wrong place.
Read: http://www.computercraft.info/forums2/index.php?/forum-12/announcement-1-forum-guidelines/