Pastebin in ComputerCraft

1,531 views
Skip to first unread message

Michele McColgan

unread,
Aug 31, 2013, 10:12:47 AM8/31/13
to minecraft...@googlegroups.com
Has anyone had any luck using pastebin in the ComputerCraft mod?

I've already tried changing the ComputerCraft config file on the client and server side to enable:  enableAPI_http=true

The pastebin program isn't in the rom/programs/ folder.

Thanks,
Michele


Rick M

unread,
Sep 1, 2013, 2:12:24 PM9/1/13
to minecraft...@googlegroups.com
Michele, I don't think I have ComputerCraft installed anywhere...wait, maybe I do, I'll check in a little bit if I get time...but I was wondering about the config file. When I google enableAPI_http=true, I found this thread which says the command could be "B:enableAPI_http=true"? You may already have the B: before the rest of the command, but I thought it was worth a mention.

If that's not it, let me know and I'll muck about with it in my Feed the Beast install. 

EduElfie

unread,
Sep 1, 2013, 4:52:45 PM9/1/13
to minecraft...@googlegroups.com
Are you behind a proxy? That may prevent CC from accessing external sites without authentication.

Elfie.

Michele McColgan

unread,
Sep 1, 2013, 9:47:37 PM9/1/13
to minecraft...@googlegroups.com
Hi Rick,

I have the B: before the enable...

I also found three conputercraft.cfg files (server and client) and set them all to true.  But, still no luck....

Michele

Michele McColgan

unread,
Sep 2, 2013, 12:20:33 PM9/2/13
to minecraft...@googlegroups.com
No proxy.  I'm not able to use http.get(url) either.

If anyone has this working, can you tell me where the computerCraft.cfg file should be located - in the client and server folders?

Thanks,
Michele

Rick M

unread,
Sep 2, 2013, 3:29:48 PM9/2/13
to minecraft...@googlegroups.com
Are you on Windows or Mac? If Windows, and if you have Minecraft client installed in the default location ( AppData/Roaming/.minecraft), you'll see a config folder. You should see a ComputerCraft.cfg file there.

Let me know if you're on a Mac and I'll figure that out too, but it should be similar once you get to your Minecraft folder.

On a Windows server, there should be a config folder at the top level of your Minecraft server install. The ComputerCraft.cfg file should be in there.

Where did you find the third ComputerCraft.cfg file?

Rick M

unread,
Sep 2, 2013, 3:37:33 PM9/2/13
to minecraft...@googlegroups.com
You said "The pastebin program isn't in the rom/programs/ folder." Did you determine that from in-game or out of game? And is there a rom/programs/http folder with pastebin in the http folder? I saw that path referenced online.

"To enable HTTP go to your mods folder and find ComputerCraft, find ComputerCraft.cfg file and change the HTTP = 0 to HTTP = 1. Same thing goes for servers. 
When you go into pastebin I had a crap ton of trouble on my previous server and couldn't figure out why pastebin get <pastebincode> <Name of file> to work, so the solution to that is
rom/programs/http/pastebin get <pastebincode> <Name of file> -- The code is the numbers and letters after the pastebin.com/ -- The name of the file is what you want to save it as."

That's from a year ago, not sure what version of CC they were using, so the path may have changed since then - but I'm just throwing out ideas hoping something clicks :)

Rick M

unread,
Sep 2, 2013, 4:11:14 PM9/2/13
to minecraft...@googlegroups.com
Sorry for the string of posts. I just logged into Feed The Beast to check out ComputerCraft. I have a couple possibly dumb questions. 

First, you're trying to use the pastebin command from inside Minecraft, correct? You're at the command prompt for a computer or turtle and typing in "> pastebin something something?" Is that where you're running into trouble?

Second, if you are indeed at a command prompt for a computer or turtle in-game, when you type "programs," do you see pastebin listed there along with all the other programs? 

If for some reason you're not at a command prompt inside of Minecraft, could you describe step by step what you're doing so I can get an idea where things are going wrong for you?


--
You received this message because you are subscribed to a topic in the Google Groups "Minecraft Teachers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/minecraft-teachers/HA2ZqwF5CEc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to minecraft-teach...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rick M

unread,
Sep 2, 2013, 8:29:22 PM9/2/13
to minecraft...@googlegroups.com
Sick of me yet? :) 

I get hyperfocused trying to figure things out sometimes. 

I can get the pastebin command working in Minecraft following these steps.

1. ComputerCraft mod installed on client and server
2. ComputerCraft.cfg file on both client and server has http enabled (set to true)
3. Log into Minecraft
4. Make (or CHEAT and get one from the Creative inventory :) ) a turtle and place it in the world. Or, just make a computer - I make turtles because I use them for mining. 
5. Right click on the computer/turtle and a command window opens.
6. At the prompt, type "rom/programs/http/pastebin get 3mkeUzby OreQuarry" without the quotes. That's going to download a program from pastebin.com/3mkeUzby

If everything is set up in steps 1-5, step 6 should work. 

Just tried issuing the command without the rom/programs/http path, and it also works - just > pastebin get 3mkeUzby Orequarry" will download the file referenced above.

If you write a program in-game and want to upload it to pastebin, save the file in-game and then use "pastebin put filename" and it will upload to pastebin.com for you and tell you the pastebin ID. 

I don't think you need to use "http.get(url)" unless that's part of a program you're writing?
To unsubscribe from this group and all its topics, send an email to minecraft-teachers+unsub...@googlegroups.com.

Michele McColgan

unread,
Sep 3, 2013, 9:46:25 PM9/3/13
to minecraft...@googlegroups.com
Hi Rick,

Definitely not sick of you!  I appreciate your help!

I'm on a Mac and I got pastebin working!  Thanks for your help.  I was missing the second filename.

I also got http.get working once I was at the lua command prompt!

Thanks again for your help.

Michele


Reply all
Reply to author
Forward
0 new messages