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

How can I make a floppy disk that can't be edited without altering the computer's edit program?

Started by icantcodeYET, 03 March 2013 - 01:38 AM
icantcodeYET #1
Posted 03 March 2013 - 02:38 AM
I want to know for a server I'm working on with a friend. I was thinking there would be different levels of security so that only players with the right access card could enter. While I'm here, is this compatible with Galacticraft? I want that on the server as well.
theoriginalbit #2
Posted 03 March 2013 - 02:43 AM
Well…. no. there is the Mag Card Reader thing in Immibis peripherals which is a little more secure. but idk, maybe if you have access to the server files you could make the files read-only on your local file system. or just hide the computer in some non-breakable blocks.

What is Galacticraft? I assume they are compatible, maybe just some config id changes. but idk. never heard of Galacticraft.
JokerRH #3
Posted 03 March 2013 - 03:26 AM
You could manipulate the fs table. Shouldn't be that hard if you are not a beginner.
theoriginalbit #4
Posted 03 March 2013 - 03:29 AM
You could manipulate the fs table. Shouldn't be that hard if you are not a beginner.
could cause problems with other computers needing to edit the attached disks though.
JokerRH #5
Posted 03 March 2013 - 03:34 AM
could cause problems with other computers needing to edit the attached disks though.

If you have certain files you could attatch a metatable to the fs table (like in the Display user input on a monitor thread) that simly calls the native fs.open function with the given parameters as long as the second parameter isn't "w" and the first one doesn't match a blacklist.