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

disk.getColor()?

Started by Agoldfish, 26 March 2014 - 10:29 PM
Agoldfish #1
Posted 26 March 2014 - 11:29 PM
The title explains it; would there be anyway to get a command to get the color of a disk? I can see a use for this in many applications such as an advanced keycard door or a program to label disks based on they're color.
awsmazinggenius #2
Posted 26 March 2014 - 11:33 PM
I don't see much use for it, and there are other ways to get the damage value of a disk in. Minecraft (with other mods).
Bomb Bloke #3
Posted 26 March 2014 - 11:42 PM
Sounds like the sort of function that one might add to the disk drive, were it treated like a peripheral… How is a computer going to know what colour a disk is without some sort of optical sensor installed somewhere? :huh:/>

I don't see much use for it, and there are other ways to get the damage value of a disk in. Minecraft (with other mods).

It appears damage values aren't used to differentiate between "coloured" disks. They're all just assigned to the one ID and that's that.
awsmazinggenius #4
Posted 27 March 2014 - 02:10 AM
Oh, I see. I guess they could be useful, then.
apemanzilla #5
Posted 27 March 2014 - 12:48 PM
It may be possible via Open Peripheral.
theoriginalbit #6
Posted 27 March 2014 - 11:40 PM
It may be possible via Open Peripheral.
nope.
Kingdaro #7
Posted 28 March 2014 - 01:00 PM
Disk colors are purely a cosmetic property of disks and should only be treated as such.
Cranium #8
Posted 28 March 2014 - 03:31 PM
Besides, does your computer have the ability to diferentiate the color of the floppy disk you insert to it?
I don't think this would be enabled.
Edited on 28 March 2014 - 02:32 PM
apemanzilla #9
Posted 28 March 2014 - 08:47 PM
Maybe Open Peripheral might have a feature for this in the future, but I doubt it will be implemented in CC.
Cranium #10
Posted 28 March 2014 - 09:58 PM
I just don't see any reason you would need this that wouldn't be better as written code on the disk itself.
theoriginalbit #11
Posted 28 March 2014 - 11:14 PM
Maybe Open Peripheral might have a feature for this in the future
Nope. I really don't see the point to having it.