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.
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.
In the computer's command line prompt, enter:
Goto line 24:
… and change it to:
Save and exit, and the pastebin script should work on that system when executed from the root of the drive.
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 Fix
http://www.mediafire.com/download/1g4d4oon6zaf6po/CC+Pastebin+Fix.zipTo 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 Fix
If 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