This is a read-only snapshot of the ComputerCraft forums,
taken in April 2020.
How to download from pastebin?
Started by TigerAlen, 14 February 2016 - 03:53 AMPosted 14 February 2016 - 04:53 AM
How do you get files from pastebin?
Posted 14 February 2016 - 07:08 AM
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
Posted 14 February 2016 - 07:37 AM
Can't really comment on that without any details as to how you tried it.
Posted 14 February 2016 - 08:06 AM
i entered pastebin get JtiSzjC2 connect 4
Posted 14 February 2016 - 09:26 AM
You can't add spaces in file names,try "connect_4".i entered pastebin get JtiSzjC2 connect 4
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.
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
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?
Posted 15 February 2016 - 02:18 AM
yes
Posted 15 February 2016 - 02:29 AM
Can you provide a screenshot of what happens when you run the pastebin program?
Posted 15 February 2016 - 03:09 AM
[attachment=2494:2016-02-16_11.04.35.png]
Edited on 15 February 2016 - 02:12 AM
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.
Unfortunately it's in german so I don't really feel like digging through the code.
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?
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:/>
Fun fact: Did you know i can actuaclly upload to pastebin but can't download from it :huh:/>
Posted 15 February 2016 - 03:46 AM
The change was made about the time of 1.76, so give this a go:
Goto line 24:
… and change it to:
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:
Also, "run <scriptName>" isn't a thing. Don't bother trying it.
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.
Posted 15 February 2016 - 03:55 AM
IT WORKS thank you so much
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.
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.