Jump to content




Luza's Apiloader


  • You cannot reply to this topic
4 replies to this topic

#1 luza

  • New Members
  • 43 posts
  • LocationGermany

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.

#2 dan200

  • Administrators
  • 542 posts
  • LocationCambridge, England

Posted 18 February 2012 - 11:32 AM

What does this do that os.loadAPI() doesn't?

#3 luza

  • New Members
  • 43 posts
  • LocationGermany

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.

#4 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

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

#5 luza

  • New Members
  • 43 posts
  • LocationGermany

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users