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

[Resource Pack] Pastebin fix for pre-MC1.8.x users

Started by Bomb Bloke, 10 June 2016 - 12:37 AM
Bomb Bloke #1
Posted 10 June 2016 - 02:37 AM
A number of months back pastebin.com changed their link structure for fetching raw pastes, from "http://pastebin.com/raw.php?i=pasteID" to "http://pastebin.com/raw/pasteID". Attempting to use the old link structure may or may not work; this appears to depend on where you are in the real world.

ComputerCraft 1.76 updated the mod to use the new link structure, but was the first build to move away from Minecraft 1.7.10. So if you're using 1.7.10 or older, and "pastebin get" either fails or returns empty files, then this resource pack should sort it out. If you're using MC 1.8 or later, then the link structure isn't your problem and none of this applies.

Resource Pack Fixhttp://www.mediafire.com/download/1g4d4oon6zaf6po/CC+Pastebin+Fix.zip

To install it, place it in your Minecraft installation directory's "resourcepack" subfolder and restart the game. If playing on a server, then the owner will need to put it in place within the server's installation directory and restart that.

Non-Resource Pack FixIf installing the resource pack isn't possible for you (eg you play on a server and can't contact the owner), a workaround (which must be applied to each individual computer you use, if you're stuck with doing things this way) is to manually alter the pastebin script using the edit script.

In the computer's command line prompt, enter:

cp rom/programs/http/pastebin pastebin
edit pastebin

Goto line 24:

"http://pastebin.com/raw.php?i="..textutils.urlEncode( paste )

… and change it to:

"http://pastebin.com/raw/"..textutils.urlEncode( paste )

Save and exit, and the pastebin script should work on that system when executed from the root of the drive.
Edited on 30 August 2016 - 04:08 AM
Dog #2
Posted 10 June 2016 - 02:58 AM
Thanks for this! Much easier than editing each computer's pastebin script :)/>
TheRockettek #3
Posted 30 August 2016 - 08:59 AM
Erm pastebin redirects you to the new raw url ;)/>
If you try use the old one
Bomb Bloke #4
Posted 30 August 2016 - 10:10 AM
As mentioned, whether that redirect works seems to depend on your location within the real world. For some users it's automatic, for some users it isn't.
lifewcody #5
Posted 09 April 2017 - 01:13 AM
I don't know if anyone else has had this issue either, but I had to edit the rom's pastebin to fetch from HTTPS instead of HTTP