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

RaidPro

Started by KidBrine, 15 April 2017 - 04:55 PM
KidBrine #1
Posted 15 April 2017 - 06:55 PM
So i know some of you have heard of Raid 0 right? well i made something similar (Not complete yet) that will split files or combine files.

You might have a file that says ThisIsMyFile in it.
If you have 2 set directories then you will get 2 files that say
TiIMFl
and
hssyie

And they will combine to make the original.

This could be useful for making secret programs that you can only install if you have this!

Bugs.
  • if the file isn't big enough it thinks a piece is missing (if it doesn't reach all directories) ✔
  • Table missing in Send ✔
  • Files added to the raid can't be deleted before rebooting ✔
Planned updates
  • Directory splitting (this is only compatible with regular files right now)
  • The directory lists are put into each file (they will all be in one soon though) ✔
  • Programs will be accessible from one program soon ✔
If there is anything else that you think needs changed or you find a bug please let me know!

Programs
  • RaidSend: Sends a file to the set directories
  • RaidPull: Extracts a file from the set directories (must be in the same order they were when it was sent to the directories)
  • RaidDel: Deletes a file from the set directories
  • RaidDir: Shows you what files you have in the directories (also shows if a piece is missing by changing the color to red)
  • UniRaid: All of the above are accessible for this using send, pull, del, or dir
  • Alias: Adds shell.run("alias Raid /RaidPro/UniRaid") to the end of the startup program
Pastebin installer link:
https://pastebin.com/XcPAShTP
Edited on 17 April 2017 - 09:34 PM
Dave-ee Jones #2
Posted 16 April 2017 - 08:52 AM
NOOO!

Beat me to it :(/>
I wanted to make a RAID 0 program…

Now I have to stick with boring RAID 1…
KidBrine #3
Posted 16 April 2017 - 10:51 PM
NOOO!

Beat me to it :(/>
I wanted to make a RAID 0 program…

Now I have to stick with boring RAID 1…
But if you code a good Raid 1 program then you could let me add it and give you credit.
Also I could possibly use that for making Raid 5.
If I use your code i will give you credit, I will modify the installer to do so.
Edited on 16 April 2017 - 09:12 PM
KidBrine #4
Posted 16 April 2017 - 11:38 PM
(was a dupe)
Edited on 17 April 2017 - 02:49 AM
Dave-ee Jones #5
Posted 17 April 2017 - 01:01 AM
NOOO!

Beat me to it :(/>
I wanted to make a RAID 0 program…

Now I have to stick with boring RAID 1…
If you make Raid 1 then maybe you could let me add it to this, I will give you credit for any bit of code i use.

Well, RAID 1 is pretty easy.

You would need 2 floppy drives on a computer, each copying the same stuff to one another during runtime, live.

RAID 10 would be interesting, as you would do this but as you were doing it stripe everything that gets written.

It would have to run the shell AND a the copier/striper in the background. Coroutines/Parallel…
KidBrine #6
Posted 17 April 2017 - 04:50 AM
NOOO!

Beat me to it :(/>
I wanted to make a RAID 0 program…

Now I have to stick with boring RAID 1…
If you make Raid 1 then maybe you could let me add it to this, I will give you credit for any bit of code i use.

Well, RAID 1 is pretty easy.

You would need 2 floppy drives on a computer, each copying the same stuff to one another during runtime, live.

RAID 10 would be interesting, as you would do this but as you were doing it stripe everything that gets written.

It would have to run the shell AND a the copier/striper in the background. Coroutines/Parallel…
If we have Raid 0 and Raid 1 all we need to do is put a Raid 0 inside a Raid, 1 no extra programs required!
Dave-ee Jones #7
Posted 10 May 2017 - 06:55 AM
NOOO!

Beat me to it :(/>
I wanted to make a RAID 0 program…

Now I have to stick with boring RAID 1…
If you make Raid 1 then maybe you could let me add it to this, I will give you credit for any bit of code i use.

Well, RAID 1 is pretty easy.

You would need 2 floppy drives on a computer, each copying the same stuff to one another during runtime, live.

RAID 10 would be interesting, as you would do this but as you were doing it stripe everything that gets written.

It would have to run the shell AND a the copier/striper in the background. Coroutines/Parallel…
If we have Raid 0 and Raid 1 all we need to do is put a Raid 0 inside a Raid, 1 no extra programs required!
Haha, cheater.

Make RAID 5/6 ;)/>