Jump to content


skypop's Content

There have been 3 items by skypop (Search limited from 04-December 20)


By content type

See this member's

Sort by                Order  

#260740 [1.8.9][SSP] disk.getID() on pocket and computer return nil

Posted by skypop on 16 October 2016 - 10:46 PM in Bugs

That may not be a bug, but in my humble opinion this is a mistake.
In the present state multiple items return the same value (nil), it confusing computers, turtles and pocket computers...
I think this feature has been forgotten during the1.6 and 1.77 updates.



#260710 [1.8.9][SSP] disk.getID() on pocket and computer return nil

Posted by skypop on 16 October 2016 - 08:24 AM in Bugs

View PostKingofGamesYami, on 16 October 2016 - 01:52 AM, said:

This is not a bug, this is intended behavior. The wiki page even states:

The wiki detail the same thing about labels while disk.getLabel() and getDiskLabel() works.

Quote

string disk label, or nil if the item in the drive is neither a floppy disk nor a music record or if it is a floppy disk with no label



#260697 [1.8.9][SSP] disk.getID() on pocket and computer return nil

Posted by skypop on 16 October 2016 - 12:01 AM in Bugs

VERSION:
minecraft 1.8.9
computercraft 1.79

DESCRIPTION:
When a computer or pocket-computer is inserted in disk drive, disk.getID(string side) return nil.
Same thing, when wrapping disk drive, function getDiskID() return nil.

By way of comparison disk.getLabel(string side) and getDiskLabel() works perfectly.

EXPECTED RESULT:
Gets the unique ID number.

REPRODUCTION STEPS:
Place a computer and disk drive. Insert a pocket computer (with or whitout label, files...)
Run lua :
testID = disk.getID("right")
print(tostring(testID)) -- nil
print(type(testID)) -- nil

_drive = peripheral.wrap("right")
testID = _drive.getDiskID("right")
print(tostring(testID)) -- nil
print(type(testID)) -- nil