Jump to content




disk.getColor()?


10 replies to this topic

#1 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

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.

#2 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

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).

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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:

View Postawsmazinggenius, on 26 March 2014 - 11:33 PM, said:

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.

#4 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 27 March 2014 - 02:10 AM

Oh, I see. I guess they could be useful, then.

#5 apemanzilla

  • Members
  • 1,421 posts

Posted 27 March 2014 - 12:48 PM

It may be possible via Open Peripheral.

#6 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 27 March 2014 - 11:40 PM

View PostApemanzilla, on 27 March 2014 - 12:48 PM, said:

It may be possible via Open Peripheral.
nope.

#7 Kingdaro

    The Doctor

  • Members
  • 1,636 posts
  • Location'MURICA

Posted 28 March 2014 - 01:00 PM

Disk colors are purely a cosmetic property of disks and should only be treated as such.

#8 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

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 by Cranium, 28 March 2014 - 03:32 PM.


#9 apemanzilla

  • Members
  • 1,421 posts

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.

#10 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

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.

#11 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 28 March 2014 - 11:14 PM

View PostApemanzilla, on 28 March 2014 - 08:47 PM, said:

Maybe Open Peripheral might have a feature for this in the future
Nope. I really don't see the point to having it.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users