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

How to install a new API or program

Started by ironsmith123, 14 March 2012 - 08:17 PM
ironsmith123 #1
Posted 14 March 2012 - 09:17 PM
I just want to know how to install an API and/or a program. I want to use the magicTurtle code and the doublelock program but I don't know how to install them or where to install it. Do I install it on my server or client or both? Please help…..Thanks.

Sincerely,
ironsmith123
Liraal #2
Posted 14 March 2012 - 09:20 PM
simplest way: insert the API to server/mods/computercraft/rom/apis/turtle and programs to server/mods/computercraft/rom/apis/programs. That way everybody on the server can use them, and you can still copy them to your local terminal.
ironsmith123 #3
Posted 14 March 2012 - 09:49 PM
But HOW do i copy them? How do I know if the code should be an API or a program? I want to go get a program that allows you to control the pening of doors via a password put into the computer. But I dont know how lol. I am so confused its not even funny…..
Liraal #4
Posted 14 March 2012 - 09:53 PM
okay, lets sort this out:
-most codes are programs (unless specified otherwise)
-if you have correctly inserted the files to /rom folder, you can find them in-game by typing 'list rom/apis' or 'list /rom/programs'
-if you have found them, you can copy them to your local computer's root, like this: 'copy rom/apis/rednet rednet' (first param is the origin, second destination)
That's about it.
ironsmith123 #5
Posted 14 March 2012 - 10:18 PM
Okay, so I put your program in the turtle folder of my mods/ComputerCraft/lua/rom/apis/turtle or whatever and it doesnt show up on the list….Thanks for all your help btw
nateracecar5 #6
Posted 07 January 2013 - 03:31 AM
I am confused. Everytime I put my api into ANY folder in the rom it breaks ALL computers. They aren't even usable anymore. I need to know why?
coaster3000 #7
Posted 14 January 2013 - 11:11 AM
That is the same exact problem I am currently having… Any fixes?
ChunLing #8
Posted 14 January 2013 - 12:53 PM
Does the api work when loaded from the root directory of a particular computer? What is the name? What do the broken computers actually do?

It's very easy to install something in the rom and make all your computers not work. So that's not enough information to know what is wrong.
remiX #9
Posted 14 January 2013 - 06:08 PM
If it breaks the computers, then there's errors in the API?

Post the code in the api and we can see if there are any problems
coaster3000 #10
Posted 15 January 2013 - 04:01 AM
The problem should not be a bad API because i can load it manually if i installit on a single computer.

I will get you code when I get home. I am on my phone.
remiX #11
Posted 15 January 2013 - 05:33 AM
So it works on a single computer when you use os.loadAPI("apiname")
Does it not error when you load it?

Hmm.. that makes no sense :P/>

Are you putting just the file in the apis folder you within a subfolder?
coaster3000 #12
Posted 15 January 2013 - 01:13 PM
You guys are the experts not me.. I have tried dropping the api file in the zip folder of mod with it in the apis folder.
I tried recreating file structure..

I tried extracting archive Making sure to rename the folder to ComputerCraft. I even tried renaming to computercraft.

I will try searching for more solutions. I will try installing one api at a time too. Instead of all of them.
ChunLing #13
Posted 15 January 2013 - 05:39 PM
api names and the paths your using might be helpful to know. Also, the exact behavior of the broken computers could tell us something.