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

Copy: 13 error

Started by thedriver87, 11 June 2013 - 06:44 PM
thedriver87 #1
Posted 11 June 2013 - 08:44 PM
hello everyone, this is a head scratcher.. I have a program that was put on a server by the admin into a disk and we have confirmed the filesize setting for both computers, turtles, and disks is high enough (and not 0 which i heard causes a copy error) we have even done the exact same operation with another program of similar size. when i goto copy this one though http://pastebin.com/BSjEQnu0 using
copy disk/2 blackjack (all those being the correct file names) it returns copy:13 i am able to open the program on the disk and view the code and even run the program from this disk, but not copy it.. any idea why?
theoriginalbit #2
Posted 11 June 2013 - 09:02 PM
Well looking at line 13 of the `copy` program, and noticing it is this
fs.copy( sSource, sDest )
I would take a stab and say that someone has been messing with the fs API. Get the server admin to reinstall the ComputerCraft zip with a fresh copy and see if that fixes the problem. If it was a real problem then there should be an error message.

Also as a side thing, I remember a discussion I had with KaoS a little while ago and it might be worth checking if computer with id #1 is in use and if it is, replace it with a computer with a different id…

Where have you heard that giving unlimited space to a computer causes an error in copy?
thedriver87 #3
Posted 11 June 2013 - 10:29 PM
http://www.computercraft.info/forums2/index.php?/topic/4495-142ssp-fscopy-and-fsmove-fail-while-disk-size-limits-are-0/ is where i heard that.
and the CC is downloading in a mod pack and unedited for sure so that couldnt be the issue. and no error returned either. one thing i did notice. when he moved the programs over he named them 1 and 2 but on the disk is says 1 and 1~ and it says 2 and 2~ could that have something to do with when the programs were put on the file size on the server was not properly set and too low? because the server had a very small file size set before i started working on this. the admin changed that value to be higher after the disk was created and after the program was placed on the disk. should i try it with a new disk? or is that even an issue?
theoriginalbit #4
Posted 11 June 2013 - 10:43 PM
I've never experienced that issue, and it was one rare case report, so not sure of the validity.
Well the 1~ and 2~ makes me inclined to think that the files are open on the server computer in some way shape or form, and if that particular program locks the files that would be stopping ComputerCraft from opening the files. Changing those values wouldn't have caused any problems, I do it all the time. You can try a new disk if you wish, but I don't see it helping.
thedriver87 #5
Posted 11 June 2013 - 11:09 PM
im inclined to believe your assumption about the server computer having them open
he is noob and i asked him how he moved them to the disk he actually created a next text file and manually copy pasted it in … which im guessing he never closed =P
thedriver87 #6
Posted 11 June 2013 - 11:12 PM
copy failed is the message returned now on the error 13: not sure why that changed… EDIT you will be happy to know its not some magical problem. in his infinite wisdom the server owner input 1000 as the file size… thinking of course that 1000mb would be sufficient. obviously 1000k was not lol