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

Resource Pack API Usage

Started by ZephyrWolf_, 02 November 2015 - 08:23 AM
ZephyrWolf_ #1
Posted 02 November 2015 - 09:23 AM
Hi,

Im making a couple APIs to help with my use in computercraft and they work great. So I have put them into a resource pack to put them onto my friends server. They pack works fine, programs run, help works… however, I cant't seem to get it to work when using

os.loadAPI()

say the fileis called "MYAPI". How do I reference it within os.loadAPI().

I want to be able to access this API from files both written within the resource pack and from any computer.
Lupus590 #2
Posted 02 November 2015 - 09:27 AM
files in rom/api will automatically be loaded

http://www.computercraft.info/wiki/Lua_Resource_Pack_Making_%28Tutorial%29
Edited on 02 November 2015 - 08:28 AM
ZephyrWolf_ #3
Posted 02 November 2015 - 10:04 AM
Thankyou, ill definatly do that!