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

Skipping os.loadAPI()

Started by CaptainStandard, 29 June 2017 - 08:05 AM
CaptainStandard #1
Posted 29 June 2017 - 10:05 AM
The APIs that are packaged with computercraft don't need loading. It does make sense a custom API needs loading. Is there a way to load it on startup and then have it ready?
Lupus590 #2
Posted 29 June 2017 - 10:50 AM
you could load it in the startup file
CaptainStandard #3
Posted 29 June 2017 - 11:25 AM
you could load it in the startup file
Thanks!
Do I have to unload it later i.e. on shutdown?
Lupus590 #4
Posted 29 June 2017 - 12:50 PM
I wouldn't bother, no one else does.
CaptainStandard #5
Posted 29 June 2017 - 03:51 PM
I wouldn't bother, no one else does.

Ok thanks.
Lupus590 #6
Posted 29 June 2017 - 05:21 PM
I wouldn't bother, no one else does.

Ok thanks.
To clarify, everything resets when the computer shutsdown,so shutting down effectively unloads it for you.

Also, if you have acess to the server files, or are playing single player, then you could put your API in a resource pack and it will be auto loaded with every computer.
Edited on 29 June 2017 - 03:28 PM
CaptainStandard #7
Posted 30 June 2017 - 12:05 AM
I wouldn't bother, no one else does.

Ok thanks.
To clarify, everything resets when the computer shutsdown,so shutting down effectively unloads it for you.

Also, if you have acess to the server files, or are playing single player, then you could put your API in a resource pack and it will be auto loaded with every computer.

Thanks a lot for your help!