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

How to download from pastebin?

Started by TigerAlen, 14 February 2016 - 03:53 AM
TigerAlen #1
Posted 14 February 2016 - 04:53 AM
How do you get files from pastebin?
Bomb Bloke #2
Posted 14 February 2016 - 07:08 AM
http://www.computercraft.info/wiki/Pastebin_%28program%29
TigerAlen #3
Posted 14 February 2016 - 07:33 AM
I tried it but at first it said success but when i check the program is completely empty
Bomb Bloke #4
Posted 14 February 2016 - 07:37 AM
Can't really comment on that without any details as to how you tried it.
TigerAlen #5
Posted 14 February 2016 - 08:06 AM
i entered pastebin get JtiSzjC2 connect 4
Blue #6
Posted 14 February 2016 - 09:26 AM
i entered pastebin get JtiSzjC2 connect 4
You can't add spaces in file names,try "connect_4".
Lignum #7
Posted 14 February 2016 - 09:39 AM
You can't add spaces in file names,try "connect_4".

You can do this:

pastebin get JtiSzjC2 "connect 4"

Though files with spaces are really inconvenient to deal with because you have to add quotation marks everywhere.
TigerAlen #8
Posted 14 February 2016 - 09:56 AM
just fixed folder's name but results were still the same
Edited on 14 February 2016 - 10:08 AM
HPWebcamAble #9
Posted 14 February 2016 - 05:22 PM
just fixed folder's name but results were still the same

So you're running this:

pastebin get JtiSzjC2 connect4

Then this:

edit connect4

And its empty?
TigerAlen #10
Posted 15 February 2016 - 02:18 AM
yes
KingofGamesYami #11
Posted 15 February 2016 - 02:29 AM
Can you provide a screenshot of what happens when you run the pastebin program?
TigerAlen #12
Posted 15 February 2016 - 03:09 AM
[attachment=2494:2016-02-16_11.04.35.png]
Edited on 15 February 2016 - 02:12 AM
HPWebcamAble #13
Posted 15 February 2016 - 03:21 AM
Very strange. Works fine for me in CCEmuRedux.

Unfortunately it's in german so I don't really feel like digging through the code.
Bomb Bloke #14
Posted 15 February 2016 - 03:22 AM
Hmm, I wonder if this is related to that pastebin API change. Last I knew it didn't actually cause me any problems even before Dan patched his code for the new path system, but exactly which version of ComputerCraft are you using?
TigerAlen #15
Posted 15 February 2016 - 03:29 AM
CC version1.74 for minecraft 1.7.10

Fun fact: Did you know i can actuaclly upload to pastebin but can't download from it :huh:/>
Bomb Bloke #16
Posted 15 February 2016 - 03:46 AM
The change was made about the time of 1.76, so give this a go:

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 see if it works any better. Remember the script won't save over scripts that already exist on the drive, though (empty or otherwise); you can remove unwanted files with rm:

rm connect4

Also, "run <scriptName>" isn't a thing. Don't bother trying it.
TigerAlen #17
Posted 15 February 2016 - 03:55 AM
IT WORKS thank you so much
Bomb Bloke #18
Posted 16 February 2016 - 02:37 AM
Weird thing is that the old line still works for me. I suppose there might be multiple pastebin servers or something, and the one closest to Australia is a bit more tolerant.
KingofGamesYami #19
Posted 16 February 2016 - 02:43 AM
For what it's worth, the default one works for me too. If I visit the old raw page, it redirects to the new one.
Bomb Bloke #20
Posted 16 February 2016 - 04:07 AM
The issue does also seem to be affecting Mimic.