|
|
|
4 registered members (PeWi, vince, Quad, 1 invisible),
4,489
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
.AVIs playing from CD-ROM
#8795
04/17/02 23:15
04/17/02 23:15
|
Anonymous
OP
Unregistered
|
Anonymous
OP
Unregistered
|
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,
|
|
|
Re: .AVIs playing from CD-ROM
#8797
04/18/02 08:11
04/18/02 08:11
|
Anonymous
OP
Unregistered
|
Anonymous
OP
Unregistered
|
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...
|
|
|
Re: .AVIs playing from CD-ROM
#8798
04/18/02 09:33
04/18/02 09:33
|
Anonymous
OP
Unregistered
|
Anonymous
OP
Unregistered
|
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.
|
|
|
Re: .AVIs playing from CD-ROM
#8799
04/20/02 01:45
04/20/02 01:45
|
Anonymous
OP
Unregistered
|
Anonymous
OP
Unregistered
|
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
|
|
|
Re: .AVIs playing from CD-ROM
#8800
04/20/02 02:46
04/20/02 02:46
|
Joined: Oct 2001
Posts: 678 Alabama
Cameron_Aycock
Developer
|
Developer
Joined: Oct 2001
Posts: 678
Alabama
|
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.
Popular media is the opiate of the masses.
Think for yourself.
|
|
|
|
|
|
|