Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Help with data

Author
Message
El_Milonga
21
Years of Service
User Offline
Joined: 13th Jan 2003
Location: Spain
Posted: 20th Jan 2003 13:53
I want to read data from my CD drive for the games that I do.

How can I recognize my CD drive unit??

How can I read data from there??.

Thank you in advance.
El_Milonga
21
Years of Service
User Offline
Joined: 13th Jan 2003
Location: Spain
Posted: 21st Jan 2003 14:42
Does anybody know something about this??

Milongas al poder y rubias a sus lados!!
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Jan 2003 15:55
what drive letters are your devices.

u can find the paths and drive letters but not sure about the cdrom drive or DVD drive.

u may have to find them all then look for file to verify on the top level its indeed the place u need.

El_Milonga
21
Years of Service
User Offline
Joined: 13th Jan 2003
Location: Spain
Posted: 21st Jan 2003 16:29
That's the main problem.

In my Pc the CD-rom drive letters are E and F but in another PC they will be another different letters.

If I create a game which reads data from a CD, I must get the CD-rom drive letter before it starts to work.

Milongas al poder y rubias a sus lados!!
btecbuddies
21
Years of Service
User Offline
Joined: 21st Oct 2002
Location: United Kingdom
Posted: 21st Jan 2003 16:49
Is there no way of getting the possible CD-ROM drives and then make the program search for the path it self.

Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 21st Jan 2003 16:58
You can use the "drivelist" command to get a list of all drives on the machine then search each drive in turn (except A of course!) for a file you know exists and is part of your game. When you find it, you've got their CD drive. Then save that value into a text file which you load the next time your game is run - if the file has gone the 2nd time around, repeat the first procedure and create the text file again (if, say, they've changed their drive letter). Not wonderfully "pretty" way of doing it - but it will work.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
El_Milonga
21
Years of Service
User Offline
Joined: 13th Jan 2003
Location: Spain
Posted: 21st Jan 2003 17:19
Thank you very much.

I've got DB, not DBPro.

Will "drivelist" work with DB??

Milongas al poder y rubias a sus lados!!
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 21st Jan 2003 17:24
Type it in and see?

Heh.. yes of course it'll work.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 21st Jan 2003 18:57
we have the same idea there rich, looking for a file to verify.

maybe this could be a noted component to adress in some later patches about cdrom support.

freak
21
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 22nd Jan 2003 01:11
interesting method, I'll keep that in mind when I'll ever have to use it...

you might first check 'popular' cdrom drive letters like 'D:' or 'E:', in most cases you won't have to check another drive after that

indi
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 22nd Jan 2003 02:00
nice freak, a logical start point.

El_Milonga
21
Years of Service
User Offline
Joined: 13th Jan 2003
Location: Spain
Posted: 10th Feb 2003 13:41
Thank you very much. That's what I've though. I'll use an empty file to recognize what CD is inside.

Milongas al poder y rubias a sus lados!!

Login to post a reply

Server time is: 2024-05-18 15:10:42
Your offset time is: 2024-05-18 15:10:42