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

custom API loading problems

Started by dcleondc, 01 September 2012 - 08:13 PM
dcleondc #1
Posted 01 September 2012 - 10:13 PM
i'm starting to make a OS and i cant get my program to load the the API, here is my code

os.loadAPI("Dc/api/api")
Dc/api/api.MenuTurtle()
MenuTurtle() is a function i made in Dc/api/api
MysticT #2
Posted 01 September 2012 - 10:21 PM
The name of the api is the name of the file, not the whole path. In your case it would be api, so you have to use it like:

api.MenuTurlte()
You might want to change it's name.
Matrixmage #3
Posted 01 September 2012 - 10:22 PM
I really don't know anything about loading api's, But I think there is something you need to call on your line 2 to use the function. But I really don't know, its just a feeling I have.

EDIT: ninja'd