2 posts
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 :)/>/>
378 posts
Location
In the TARDIS
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])
2 posts
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
2447 posts
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.
454 posts
Location
London
Posted 16 April 2012 - 10:47 PM