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

LoadAPI - The easiest way to load new APIs in ComputerCraft

Started by JohnSmith41Junk, 16 January 2016 - 07:18 AM
JohnSmith41Junk #1
Posted 16 January 2016 - 08:18 AM
Here is my new project, LoadAPI!

LoadAPI is a program that allows you to easily load a new API in, without using the LUA prompt.
Of course, if you actually want to use said API, you need either the LUA prompt or a program that makes use of it, but it can be useful for debugging purposes.

Usage:
loadapi <API file to load>

Download:
Type the following into a computer:

pastebin get u3yH9JNL loadapi
HPWebcamAble #2
Posted 16 January 2016 - 06:35 PM
Maybe I'm missing the point, but what would you use this for?

If a program needs an API, it'll load the API itself (It can't rely on the user to do it!)
If you want to use an API in the Lua prompt, you just use os.loadAPI in the prompt
JohnSmith41Junk #3
Posted 17 January 2016 - 03:19 AM
It is more of a user-friendly way to load APIs, in case a progran does need an API but doesn't load it for some reason. I was also using it to load my segdisplay API while testing it