I was wondering how I could get the ID of the Pocket Computer in the disk drive. I tried disk,getID() but that just returns nil
1
7 replies to this topic
#1
Posted 01 June 2016 - 08:01 PM
#2
Posted 01 June 2016 - 08:16 PM
I don't think you can.
I tried that in game.
incinirate, on 01 June 2016 - 08:25 PM, said:
The CC wiki has this page which shows all the exposed methods for disk drive peripherals. One of them is this:
disk.getID(string side)So I assume that might work. I think you have to specify the side the disk drive is on for it to work. Or the network ID if it is connected via a wired network.
I tried that in game.
Edited by KingofGamesYami, 01 June 2016 - 08:28 PM.
#3
Posted 01 June 2016 - 08:25 PM
The CC wiki has this page which shows all the exposed methods for disk drive peripherals. One of them is this:
disk.getID(string side)So I assume that might work. I think you have to specify the side the disk drive is on for it to work. Or the network ID if it is connected via a wired network.
Edited by incinirate, 01 June 2016 - 08:26 PM.
#4
Posted 01 June 2016 - 08:32 PM
Like I said it returns nil
#5
Posted 01 June 2016 - 08:38 PM
gril002, on 01 June 2016 - 08:32 PM, said:
Like I said it returns nil
Ah, just read closer in the wiki and it says:
Returns: the disk ID, or nil if the drive does not contain a Floppy Disk
Which in this case, it is not a floppy disk, so it returns nil. I guess there is no way to get the ID.
Sorry.
Edited by incinirate, 01 June 2016 - 08:38 PM.
#6
Posted 02 June 2016 - 01:37 AM
It strikes me that this might be worth adding to the mod, so I've shunted the thread over from AaP to Suggestions.
#7
Posted 02 June 2016 - 06:53 PM
Thanks really apreciate it. How soon can I expect if it gets aproved?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users