Jump to content




How to download from pastebin?


  • You cannot reply to this topic
19 replies to this topic

#1 TigerAlen

  • Members
  • 12 posts

Posted 14 February 2016 - 04:53 AM

How do you get files from pastebin?

#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 14 February 2016 - 07:08 AM

http://www.computerc...n_%28program%29

#3 TigerAlen

  • Members
  • 12 posts

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

#4 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 14 February 2016 - 07:37 AM

Can't really comment on that without any details as to how you tried it.

#5 TigerAlen

  • Members
  • 12 posts

Posted 14 February 2016 - 08:06 AM

i entered pastebin get JtiSzjC2 connect 4

#6 Blue

  • Members
  • 309 posts
  • LocationGlass/UX/main.lua

Posted 14 February 2016 - 09:26 AM

View PostTigerAlen, on 14 February 2016 - 08:06 AM, said:

i entered pastebin get JtiSzjC2 connect 4
You can't add spaces in file names,try "connect_4".

#7 Lignum

  • Members
  • 558 posts

Posted 14 February 2016 - 09:39 AM

View PostBlue, on 14 February 2016 - 09:26 AM, said:

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.

#8 TigerAlen

  • Members
  • 12 posts

Posted 14 February 2016 - 09:56 AM

just fixed folder's name but results were still the same

Edited by TigerAlen, 14 February 2016 - 11:08 AM.


#9 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 14 February 2016 - 05:22 PM

View PostTigerAlen, on 14 February 2016 - 09:56 AM, said:

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?

#10 TigerAlen

  • Members
  • 12 posts

Posted 15 February 2016 - 02:18 AM

yes

#11 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 15 February 2016 - 02:29 AM

Can you provide a screenshot of what happens when you run the pastebin program?

#12 TigerAlen

  • Members
  • 12 posts

Posted 15 February 2016 - 03:09 AM

Attached Image: 2016-02-16_11.04.35.png

Edited by TigerAlen, 15 February 2016 - 03:12 AM.


#13 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

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.

#14 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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?

#15 TigerAlen

  • Members
  • 12 posts

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:

#16 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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.

#17 TigerAlen

  • Members
  • 12 posts

Posted 15 February 2016 - 03:55 AM

IT WORKS thank you so much

#18 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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.

#19 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

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.

#20 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 16 February 2016 - 04:07 AM

The issue does also seem to be affecting Mimic.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users