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

How do you use pastebin?

Started by Tristan, 11 July 2012 - 12:42 AM
Tristan #1
Posted 11 July 2012 - 02:42 AM
So the owner of the server enabled Http, how do I use pastebin on my computer? Please be very specific, Im a dummie.
Graypup #2
Posted 11 July 2012 - 04:12 AM
You use
pastebin put FIILENAME (to upload)
pastebin get CODE FILE (code being the code for pastebin, file being where to save it to)
You enter that after the ">" if you want me to be super-specific
This information was obtained by reading the source code
Tristan #3
Posted 11 July 2012 - 04:33 AM
I get No such program. everytime. I put a txt called Pong into my programs folder, am I doing something wrong?
Graypup #4
Posted 11 July 2012 - 04:40 AM
hmm, the code in the startup says if there's http, then enable pastebin, so you might have messed up (turn on http in the client, too). Also, the place to put data created in programs is the root folder (which is stored on the computer) which is in .minecraft/saves/WORLDNAME/computer/COMPUTERID (you get that from os.getComputerID() )
Tristan #5
Posted 11 July 2012 - 06:55 AM
As I stated I'm not the owner, but even if you aren't the owner you should be able to use pastebin.
Grim Reaper #6
Posted 11 July 2012 - 07:35 AM
The owner of the server may not have the HTTP API enabled, however if he doesn't then try calling the program with it's full directory.

Try this:

rom/programs/http/pastebin get <filename> <targetname>

or

rom/http/pastebin get <filename> <targetname>

I forget where exactly that program is located :)/>/>

Hope I helped!
Tristan #7
Posted 11 July 2012 - 07:45 AM
What do you mean by <targetname>?
Grim Reaper #8
Posted 11 July 2012 - 08:15 AM
Sorry, I mean the pastebin id of the file.
Tristan #9
Posted 21 July 2012 - 05:59 AM
I'm getting super pissed off. NONE of this is helpful. This is SMP, Http is enabled, I just don't know the command! Do I go to lua and type shit in? What the hell do I DO?!?!?! There's NO tutorials anywhere, and the pastebin help says to type pastebin get and then the other stuff, and I do it and get no such program. Or if I type pastebin get (other info) into lua, I get
lua:27: [string "lua"]:1: '=' expected. When I said be specific, I meant BE SPECIFIC.
Grim Reaper #10
Posted 21 July 2012 - 06:16 AM
Type this into the terminal:


rom/programs/http/pastebin get pastebinID newFileName

Replace pastebinID with the id of the link for the file you want.
For example this link: http://pastebin.com/6a92bGGZ
The pastebinID for the link above is

6a92bGGZ

Replace newFileName with the name you want the file to have when it is downloaded.


rom/programs/http/pastebin get 6a92bGGZ CannonOS
The code above would download my OS from pastebin and save it as CannonOS on my ComputerCraft PC.
Tristan #11
Posted 21 July 2012 - 08:04 AM
Tyvm, I typed this into Lua and although it didn't work, it's just because http keeps automatically resetting back to 0, I think it's a forge problem.
Graypup #12
Posted 29 July 2012 - 06:55 PM
Forge config. ಠ_ಠ Try CC 1.4.
BehrInMind #13
Posted 01 October 2012 - 04:15 AM
I have computercraft 1.4 installed, I use a launcher called Tekkit and I understand that I have to change the HTTP_API to 1 but the problem is I can't find the file that it's under which is mod_Computercraft.cfg. Do I need Forge to change it, and if so will it in anyway mess with Tekkit. I realize this post is really old but I can't find anything else, but I'll keep searching, perhaps even start a new thread.
Lyqyd #14
Posted 01 October 2012 - 04:36 AM
This does not belong in this topic; please do not revive old topics like this.
Geeknerd1337 #15
Posted 07 October 2012 - 04:29 AM
Thank you
Type this into the terminal:


rom/programs/http/pastebin get pastebinID newFileName

Replace pastebinID with the id of the link for the file you want.
For example this link: http://pastebin.com/6a92bGGZ
The pastebinID for the link above is

6a92bGGZ

Replace newFileName with the name you want the file to have when it is downloaded.


rom/programs/http/pastebin get 6a92bGGZ CannonOS
The code above would download my OS from pastebin and save it as CannonOS on my ComputerCraft PC.
Thsnk you this was actually really helpful
Hoovkid #16
Posted 03 December 2012 - 01:31 PM
Here is what I type and get as a result.

> rom/programs/http/pastebin get 6a92bGGZ CannonOS
Connecting to pastebin.com... pastebin:75:
attempt to index ? (a nil value)

What should I do?
ChunLing #17
Posted 04 December 2012 - 09:23 AM
What version of CC are you on and have you or anyone else altered pastebin?

Actually, here's what to do, edit rom/programs/http/pastebin and go to line 75 and just post what that is. But also answer the other questions.
Edited on 04 December 2012 - 08:25 AM
Goof #18
Posted 04 December 2012 - 10:16 PM
First of all: if nothing works when entering

"pastebin get <pastebin id> <output folder / file>"

Then if your cc is up to date, try REINSTALLING the mod :D/>/>

Elseif cc is not up to date, try installing a new or updated cc.

remember to make "enableAPI.HTTP = false" to "true" instead

Dont kill us, if you feel like im stupid, but in my opinion, this topic, is not for cutting anyone down, or say something like "THAT SHIT DOES NOT WORK!!!!!!!!"

Dont blame me, if anyone does not mean the same.


thanks
LuaEclipser #19
Posted 20 February 2013 - 02:09 PM
omg, type in this


pastebin get code name


replace code with the pastebin code find the paste bin page you want, look at the URL nad it should say pastebin.com/code
copy that code and paste it as code

the name is anything you want
Lyqyd #20
Posted 20 February 2013 - 04:05 PM
Why on earth did you revive this topic? Locked.