Jump to content




How do you use pastebin?


19 replies to this topic

#1 Tristan

  • New Members
  • 10 posts

Posted 11 July 2012 - 01: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.

#2 Graypup

  • Members
  • 90 posts

Posted 11 July 2012 - 03:12 AM

You use

Quote

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

#3 Tristan

  • New Members
  • 10 posts

Posted 11 July 2012 - 03:33 AM

I get No such program. everytime. I put a txt called Pong into my programs folder, am I doing something wrong?

#4 Graypup

  • Members
  • 90 posts

Posted 11 July 2012 - 03: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() )

#5 Tristan

  • New Members
  • 10 posts

Posted 11 July 2012 - 05: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.

#6 Grim Reaper

  • Members
  • 503 posts
  • LocationSeattle, WA

Posted 11 July 2012 - 06: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!

#7 Tristan

  • New Members
  • 10 posts

Posted 11 July 2012 - 06:45 AM

What do you mean by <targetname>?

#8 Grim Reaper

  • Members
  • 503 posts
  • LocationSeattle, WA

Posted 11 July 2012 - 07:15 AM

Sorry, I mean the pastebin id of the file.

#9 Tristan

  • New Members
  • 10 posts

Posted 21 July 2012 - 04: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.

#10 Grim Reaper

  • Members
  • 503 posts
  • LocationSeattle, WA

Posted 21 July 2012 - 05: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.

#11 Tristan

  • New Members
  • 10 posts

Posted 21 July 2012 - 07: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.

#12 Graypup

  • Members
  • 90 posts

Posted 29 July 2012 - 05:55 PM

Forge config. ಠ_ಠ Try CC 1.4.

#13 BehrInMind

  • New Members
  • 3 posts
  • LocationMordor

Posted 01 October 2012 - 03: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.

#14 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,462 posts

Posted 01 October 2012 - 03:36 AM

This does not belong in this topic; please do not revive old topics like this.

#15 Geeknerd1337

  • New Members
  • 1 posts

Posted 07 October 2012 - 03:29 AM

Thank you

View PostGrim Reaper, on 21 July 2012 - 05:16 AM, said:

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

#16 Hoovkid

  • New Members
  • 2 posts

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?

#17 ChunLing

  • Members
  • 2,027 posts

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 by ChunLing, 04 December 2012 - 09:25 AM.


#18 Goof

  • Members
  • 751 posts

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

#19 LuaEclipser

  • Banned
  • 220 posts
  • LocationCleveland, Ohio

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

#20 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,462 posts

Posted 20 February 2013 - 04:05 PM

Why on earth did you revive this topic? Locked.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users