This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
Skipping os.loadAPI()
Started by CaptainStandard, 29 June 2017 - 08:05 AMPosted 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?
Posted 29 June 2017 - 10:50 AM
you could load it in the startup file
Posted 29 June 2017 - 11:25 AM
Thanks!you could load it in the startup file
Do I have to unload it later i.e. on shutdown?
Posted 29 June 2017 - 12:50 PM
I wouldn't bother, no one else does.
Posted 29 June 2017 - 03:51 PM
I wouldn't bother, no one else does.
Ok thanks.
Posted 29 June 2017 - 05:21 PM
To clarify, everything resets when the computer shutsdown,so shutting down effectively unloads it for you.I wouldn't bother, no one else does.
Ok thanks.
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
Posted 30 June 2017 - 12:05 AM
To clarify, everything resets when the computer shutsdown,so shutting down effectively unloads it for you.I wouldn't bother, no one else does.
Ok thanks.
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!