Jump to content




Help!


  • This topic is locked This topic is locked
4 replies to this topic

#1 fairytal

  • New Members
  • 2 posts

Posted 16 April 2012 - 05: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 :)/>

#2 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 16 April 2012 - 05: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])


#3 fairytal

  • New Members
  • 2 posts

Posted 16 April 2012 - 05:59 PM

View PostWolvan, on 16 April 2012 - 05:54 PM, said:

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

#4 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 16 April 2012 - 08: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.

#5 Advert

    Custom Title

  • Moderators
  • 459 posts
  • LocationLondon

Posted 16 April 2012 - 09:47 PM

Closed: You are posting this in the wrong place.
Read: http://www.computerc...rum-guidelines/





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users