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

Luza's Apiloader

Started by luza, 18 February 2012 - 09:34 AM
luza #1
Posted 18 February 2012 - 10:34 AM
Apiloader


I wanted to be able to install user-created APIs ingame, so i wrote this little program.
If you want to use it in your code simply write

shell.run("apiloader")
at the beggining of your code and all the installed APIs will be loaded.

To install an API use

apiloader install APIname APIpath

To uninstall an API use

apiloader uninstall APIname

In the moment it's just an early version but it's working so I hope it'll be used by you ^_^/>/>

Download:
Version 1.0.1


Installation:
Simply unpack the ZIP into the root folder or your CC-Computer.

To Do:
  • add custom help support

Changelog:

1.0.1: forgot do delete some debug features in 1.0
1.0: first release.
dan200 #2
Posted 18 February 2012 - 11:32 AM
What does this do that os.loadAPI() doesn't?
luza #3
Posted 18 February 2012 - 11:42 AM
*cough* I didn't knew that os.loadAPI() allready exists… ^_^/>/>
but well, it loads all APIs at once.
FuzzyPurp #4
Posted 18 February 2012 - 12:32 PM
Yep pretty much CC has an api loader. You can also add your apis to the roms/apis folder and they would get auto loaded with craftOS apis. You'd just call them with luza.function() for example
luza #5
Posted 18 February 2012 - 12:57 PM
I knew that it was possible to add them to the rom/apis folder but I wanted to be able to install APIs ingame.