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

API Doesn't Load

Started by augustas656, 02 May 2014 - 04:05 PM
augustas656 #1
Posted 02 May 2014 - 06:05 PM
I am playing the pre-release 2 version of 1.7.2 computercraft, I have created an API that only has functions in it, nothing else. I've created a program that unloads the API and then loads it again, by looking at lua unloading an API that isn't loaded won't give an error, so I just unload my API just incase, before loading it for the program. Then the program calls a function, I'm using this test program to test wether my API has any malfunctions. The test program recieves an error, attempt to call nil on the line that calls the function. If I run the API using shell.run, it does work! But it works incorrectly.

How can I properly load my API, what am I doing wrong? If this is a bug of the pre-release 2 version I'll post it on the beta testing forums in the bug report section. But I'm not sure, and I don't believe it's a bug as the beta versions don't really change much of the actual lua content.

Regards
Augustas
apemanzilla #2
Posted 02 May 2014 - 06:07 PM
Can't do much without code.
augustas656 #3
Posted 02 May 2014 - 06:11 PM
ok, that was like, I was so stuck on this problem, but somehow couldn't solve it, uhh, I made this, xD, nvm, I didn't type my API's name before the function. xD