376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 08 May 2014 - 05:58 AM
A simple program that allows computers to directly download programs to a disk , and allows the disk to extract to program to another computer!
Install Instructions:
1. Type 'pastebin get xTQBPSie extract' doesn't work, fixing
2. Type 'pastebin get 57v8F1y4 copier' – V1, rewriting from scratch in V1.1
3. Place a disk in the disk drive
4. Run 'copier'
5. Run 'disk/extract'
6. Enjoy!
Edited on 08 May 2014 - 01:56 PM
1281 posts
Posted 08 May 2014 - 06:02 AM
Why not just use the built in copy and move programs?
376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 08 May 2014 - 06:06 AM
Why not just use the built in copy and move programs?
idk
because this is easier i guess
1281 posts
Posted 08 May 2014 - 07:33 AM
Downloading this from pastebin and running it is probably not easier than running "cp filename disk/filename" from the shell :P/>
1140 posts
Location
Kaunas, Lithuania
Posted 08 May 2014 - 11:01 AM
Your 'extract' program is so messed up. First it will try to copy a file if it doesn't exist. Then it will try to copy it to the rom (Read Only Memory) folder. Then it will try to delete itself from the computer's root folder, shouldn't it try to delete itself from the disk?
Also, you have to edit the 'cpry' program to change the disk drive side which is kind of annoying.
Your concept is interesting, but it just doesn't work correctly for now. You should make it into one program, maybe a GUI, that would be nice.
Also, why so many people post their code without even testing it?
Edited on 08 May 2014 - 09:02 AM
376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 08 May 2014 - 03:48 PM
Your 'extract' program is so messed up. First it will try to copy a file if it doesn't exist. Then it will try to copy it to the rom (Read Only Memory) folder. Then it will try to delete itself from the computer's root folder, shouldn't it try to delete itself from the disk?
Also, you have to edit the 'cpry' program to change the disk drive side which is kind of annoying.
Your concept is interesting, but it just doesn't work correctly for now. You should make it into one program, maybe a GUI, that would be nice.
Also, why so many people post their code without even testing it?
Thank you for your feedback, really appreciated!
I am quite a junior coder, and been having problems diagnosing the problem with 'extract'.
As for the other stuff, I am working on it now! :)/>
314 posts
Location
Glass/UX/main.lua
Posted 13 May 2014 - 06:50 PM
To avoid the user having to edit the code to change the side you could ask for the user's input.
Edited on 13 May 2014 - 04:52 PM
1610 posts
Posted 13 May 2014 - 07:53 PM
To avoid the user having to edit the code to change the side you could ask for the user's input.
Or even better automatically find a drive, and if there are more than one then ask for user input.
Especially in 1.6 with wildcards, this program is inferior to the built in "copy" program by a long stretch.