.AVIs playing from CD-ROM

Posted By: Anonymous

.AVIs playing from CD-ROM - 04/17/02 23:15

Hi guys from conitec,

My game is ready and I have a lot of .AVI movies to play within the game.

I would like to let them on CD-ROM to avoid a lot of data on hard disk.

I'm using Install Shield to create the install CD.

I know how to do to install the game without the AVIs.

The problem is:
How can I say to the engine to seek these AVIs on cd rom, since every machine has a different letter to represent the drive?

When the player start the game, how can I do to verify if the CD is inserted into the drive?

Thanks,
Posted By: cbw

Re: .AVIs playing from CD-ROM - 04/18/02 04:37

This is useful topic. Could you tell me when you get some usefull replies? Thanks.
Posted By: Anonymous

Re: .AVIs playing from CD-ROM - 04/18/02 08:11

Although it's not automatic (less professional?) you could display a panel asking the user for their CDROM drive letter.
Then prepend their response to a string var that you use to play the AVIs.

Just a rough idea:

String AVImovie = " "; // 32 spaces.
String DriveLetter =" "; // A single space
String AVI01 = "://AviDir//Intro1.avi"
<Get user input to DriveLetter>
str_copy(AVImovie, ""); // set to null
str_cat(AVImovie,DriveLetter); // add the drive letter
str_cat(AVImovie, AVI01); add the path & filename.

play_moviefile(AVImovie);

I don't know if this will work....

But there has to be a better way...
Posted By: Anonymous

Re: .AVIs playing from CD-ROM - 04/18/02 09:33

Hi, A better way would be to use the new file I/O functions, to scan the drives for a dummy file in your AVI Directory structure, once you've found the file, you know where to play the AVI's from.
The handle to the file is 0, if it can't be openned.

Jethro.
Posted By: Anonymous

Re: .AVIs playing from CD-ROM - 04/20/02 01:45

quote:
Originally posted by rjhubner:
Hi guys from conitec,

Hi rjhubner,

even I'm not a employee of Conitec I think I have
something interesting to offer. Go to my site,

http://www.media.wegetitright.de

My GSCDAudio.DLL has a function that can help
you easily.

Have fun
Posted By: Cameron_Aycock

Re: .AVIs playing from CD-ROM - 04/20/02 02:46

I think Michael may already have this wrapped up for you, but, I believe most applications either write to the registry or an Ini file during the installation as to where it is being installed FROM .. this is how they get the path to these files.
© 2024 lite-C Forums