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

Disk ID function.

Started by Turtle, 20 July 2012 - 05:06 PM
Turtle #1
Posted 20 July 2012 - 07:06 PM
-TOPIC CLOSED-



Original post:
SpoilerI've found myself requiring an ID function for floppy disks, thus, here's a suggestion.
A function that returns the unique ID of a disk, pretty much the same as os.computerID()
Can be used to confirm if a disk is the same disk, or merely a copy.

EDIT:
I mean the ID of the save directory (That's the one os.computerID() returns )

TL;DR (Seriusly, WHAT?)
disk.ID( string Side )
Pinkishu #2
Posted 20 July 2012 - 07:56 PM
I don't like ID functions unless its properly explained on how the ID becomes unique
Sxw #3
Posted 22 July 2012 - 04:42 AM
Yeah, this is a good idea, i disagree with pinkishu.
DarkNinja2462 #4
Posted 22 July 2012 - 06:12 AM
You should only need to read the metadata of the item
Like how wool has [Wool ID]:[Metadata]
Every edited disk has a custom metadata.
You can see it if u have item ids enabled on NEI
Pinkishu #5
Posted 22 July 2012 - 01:08 PM
Yeah, this is a good idea, i disagree with pinkishu.

I just prefer integrated security over artificial security :)/>/>
Turtle #6
Posted 22 July 2012 - 03:34 PM
EDIT: (Same as OP)
I ment the ID of the save directory (That's the one os.computerID() returns )
This is unique per disk, and DarkNinja, for users that's fine, but computers can't read metadate (yet)
Cloudy #7
Posted 22 July 2012 - 08:39 PM
This is in the next version.
Turtle #8
Posted 22 July 2012 - 08:51 PM
This is in the next version.

Thank you for responding,

-TOPIC CLOSED-