7 replies to this topic
#1
Posted 01 October 2015 - 02:16 PM
I made a program to backup all your files and folders to a single pastebin file! Simply run this program, type save to save all your data to pastebin, and type load to load all files from a pastebin code. To download:
pastebin get NHkyjCTr market
market
Search Market: pastebin
Choose "Pastebin Backup"
Specify a file name to download to
pastebin get NHkyjCTr market
market
Search Market: pastebin
Choose "Pastebin Backup"
Specify a file name to download to
#2
Posted 02 October 2015 - 12:08 AM
After selecting pastebin backup in market search (1), I get an error immediately.
I am running on ComputerCraft 1.74 and the error is:
Line 50
Attempt to index ? (A nil value)
The error line seems to be grabbing something from pastebin, and then trying to read it. However you have not protected your program from a nil value. If the 'pb' variable returns nil, your program will crash.
Maybe change it to something like this:
This will always error 'Failed to fetch... yadada'. Maybe double check the pastebin address it is using?
I might be at fault here, but it is more probable that the pastebin ID doesn't exist and you perhaps didn't test it...
I am running on ComputerCraft 1.74 and the error is:
Line 50
Attempt to index ? (A nil value)
The error line seems to be grabbing something from pastebin, and then trying to read it. However you have not protected your program from a nil value. If the 'pb' variable returns nil, your program will crash.
Maybe change it to something like this:
write("Filename: ")
pb=http.get("http://www.pastebin.com/raw.php?i="..marketitems[n].pastebinaddress)
if pb then
contents=pb.readAll()
pb.close()
f=fs.open(read(),"w")
f.write(contents)
f.flush()
f.close()
else error("Failed to fetch program from pastebin") end
This will always error 'Failed to fetch... yadada'. Maybe double check the pastebin address it is using?
I might be at fault here, but it is more probable that the pastebin ID doesn't exist and you perhaps didn't test it...
Edited by Hbomb_79, 02 October 2015 - 12:08 AM.
#3
Posted 02 October 2015 - 10:17 AM
Hbomb_79, on 02 October 2015 - 12:08 AM, said:
I might be at fault here, but it is more probable that the pastebin ID doesn't exist and you perhaps didn't test it...
No, you're right, the paste has apparently been removed.
#4
Posted 03 October 2015 - 03:17 PM
IDK why it's removed, I didn't remove it. I used pastebin put to upload it. Should I have used my pb account?
#5
Posted 03 October 2015 - 03:57 PM
KittyCrafter156, on 03 October 2015 - 03:17 PM, said:
IDK why it's removed, I didn't remove it. I used pastebin put to upload it. Should I have used my pb account?
#6
Posted 03 October 2015 - 10:56 PM
Glass Systems, on 03 October 2015 - 03:57 PM, said:
*should*
Even if you do use your account to upload something, if Pastebin's system decides it's spam, you won't get notified in any way when they remove it.
But yes, I'll certainly agree that you "should" be notified.
#8
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











