Jump to content




Getting a Pocket C ID from a disk drive



7 replies to this topic

#1 gril002

  • Members
  • 38 posts

Posted 01 June 2016 - 08:01 PM

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

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 01 June 2016 - 08:16 PM

I don't think you can.

View Postincinirate, 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 Emma

  • Members
  • 216 posts
  • Locationtmpim

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 gril002

  • Members
  • 38 posts

Posted 01 June 2016 - 08:32 PM

Like I said it returns nil

#5 Emma

  • Members
  • 216 posts
  • Locationtmpim

Posted 01 June 2016 - 08:38 PM

View Postgril002, 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 Bomb Bloke

    Hobbyist Coder

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

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 gril002

  • Members
  • 38 posts

Posted 02 June 2016 - 06:53 PM

Thanks really apreciate it. How soon can I expect if it gets aproved?

#8 apemanzilla

  • Members
  • 1,421 posts

Posted 02 June 2016 - 07:58 PM

View Postgril002, on 02 June 2016 - 06:53 PM, said:

Thanks really apreciate it. How soon can I expect if it gets aproved?

Within the next version. We don't know how soon a new release is going to be out, so you'll just have to wait and see.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users