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

how to enable the function api http on a tekkit server?

Started by Mars, 09 January 2013 - 01:55 AM
Mars #1
Posted 09 January 2013 - 02:55 AM
can some explain to me how to activate the function api http on a server step by step to be able to use the command pastebin plz?
ty
remiX #2
Posted 09 January 2013 - 03:08 AM
Single player:
[indent=1]Windows:[/indent]
[indent=1]1. Windows Key + R (run) and type '%appdata%' and hit enter.[/indent]
[indent=1]2. Locate and open the folder called ".techniclauncher"[/indent]
[indent=1]3. Open the tekkit folder (in my case it's tekkitlite because that's the one I have)[/indent]
[indent=1]e.g. C:\Users\name\AppData\Roaming\.techniclauncher\tekkitlite[/indent]
[indent=1]4. In there, open the config folder and open ComputerCraft.cfg[/indent]
[indent=1]Look for this:[/indent]
[indent=1]
####################
# enableapi_http
####################

enableapi_http {
    B:general=false
}
[/indent]
[indent=1]Change false to true[/indent]

I don't know about macs if you're using a mac.

Server:
[indent=1]1. Locate the Tekkit server folder - Example: (C:\Users\name\Documents\Game Stuff\Minecraft\Tekkit\Tekkit_Lite_Server_0.5.1\)[/indent]
[indent=1]2. Open the 'config' folder.[/indent]
[indent=1]3. Open ComputerCraft.cfg[/indent]
[indent=1]4. Look for this:[/indent]
[indent=1]
####################
# enableapi_http
####################

enableapi_http {
    B:general=false
}
[/indent]

[indent=1]Change false to true.[/indent]
Mars #3
Posted 09 January 2013 - 03:11 AM
ty so much :)/>
Dlcruz129 #4
Posted 09 January 2013 - 04:15 AM
That will NOT enable the API on the server. There should be a config folder in the server folder, open it up and open mod_computercraft.cfg. Then enable the API.
remiX #5
Posted 09 January 2013 - 04:32 AM
That will NOT enable the API on the server.

YES it will.
PixelToast #6
Posted 09 January 2013 - 04:36 AM
i think he meant if you only do it client side
in wich case it will not be enabled on the server you go to
remiX #7
Posted 09 January 2013 - 04:50 AM
That's why I told him how to do it for both client and server. Only people access to the server can enable it, obviously…
theoriginalbit #8
Posted 09 January 2013 - 04:55 AM
I don't know about macs if you're using a mac.
For future reference
1. Open a Finder window
2. Press Cmd + Shift + G, type "~/Library/Application Support" and hit enter

The rest is the same…