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

Problems with Pastebin CC 1.75

Started by Immy2k, 04 October 2017 - 08:18 PM
Immy2k #1
Posted 04 October 2017 - 10:18 PM
Hi i have a really strange problem with my ComputerCraft version 1.75…

I am playing Minecraft v. 1.7.10 for a long time now and i never had problems with the "Pastebin get" command…

Then i started to play "Project Ozone 2 reloaded" and i run into the problem that when i use this command with any type of code from the website i got a blank file. (sry if this is the wrong type of name i am not a programmer^^)

I search this forum and ended here: http://www.computercraft.info/forums2/index.php?/topic/25963-how-to-download-from-pastebin/page__p__245660#entry245660
This helped me alot in my first world i was playing :)/> there everything worked fine. The only thing was i had to edit it with every Computer/Turtle i want to use the Command….

But then i start a second world and now i can't even edit this pastebin file ingame in the Computer/Turtle….
Now i have this problem over and over again in the Infinity Evolved modpack i never had this kind of problem and it is using the same version!?!?

I tryed to coppy the ComputerCraft1.75.Jar from the Infinity Evolved modpack it didn't work…
I also tried to open the ComputerCraft1.75.jar and edit the pastebin file like in the link above but nothing helped me this far i am really confused…

I hope someone could help me :)/>

Greetings from Immy2k
(and please dont mind if my grammar is to bad ;)/>)
KingofGamesYami #2
Posted 05 October 2017 - 02:24 AM
Here are a series of tests to determine what (if any) the issue is:

1) visit https://pastebin.com/raw/ii02ZH2g in your browser. What does it show?
2) open a computer and enter the lua prompt, then use http.get on the url above

> lua
lua> http.get( "https://pastebin.com/raw/ii02ZH2g" )
What does this show?
3) Now create an run a new program, with the following contents:

local h = http.get( "https://pastebin.com/raw/ii02ZH2g" )
if h then
  print( "HTTP SUCCESS" )
  local file = fs.open( "temp", "w" )
  if file then
    print( "FILE OPENED" )
    file.write( h.readAll() )
    file.close()
  end
  h.close()
else
  print( "HTTP FAILURE" )
end

If the new file (temp) does not contain the same content you saw in step 1, then please note what was printed. That will help me find the issue.

Once this is complete, I should know if the pastebin program is the issue, or if your computer has some problem writing files or connecting to the internet.
Bomb Bloke #3
Posted 05 October 2017 - 01:50 PM
I ended up putting together a resource pack for this issue.

http://www.computercraft.info/forums2/index.php?/topic/26882-resource-pack-pastebin-fix-for-pre-mc18x-users
Immy2k #4
Posted 06 October 2017 - 09:44 PM
I ended up putting together a resource pack for this issue.

http://www.computerc...pre-mc18x-users

Thank you very much :)/> to both of you! The Resource Pack Fix worked for me.

Greetings from Immy2k