Firstly I searched around the forums quite a bit and tried some solutions I found. None seem to work. I am running tgf and when I slap down an avi object it asks me for an avi. The file is in a subdirectory from the main game file. I have tried giving it ".\directoryname\filename" with and without quotes to no avail. I also tried the appdrive$ + appdir$ .\directory\filename. That didn't work either. When I try either of these it just tells me to enter a valid avi file.
Now the file plays fine if I give it an absolute directory, but I can't do that and distribute it. I'm not sure exactly what to do. Thanks.
n/a
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
31st December, 2003 at 08:13:54 -
you need
appdrive$ + appdir$ + "\directory\filename.avi"
exactly like that in the expression editor. there's no reason why that wont work.
Ok...I tried that, but I must be doing something wrong. Now when run setup on the avi object in the level editor and type that it doesn't like it at all. So I tried it in the event editor...play new file on level start and then used the expression editor and tried what you put. I know the path is right but when I try the level it just says that the specified device is not open something something something and doesn't play. All I get is that error.
n/a
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
31st December, 2003 at 13:27:05 -
sounds like an error on your computer. i've tried it and it works fine for me.
Hmm. In the level editor how do you have your avi object configured? Do you not have anything in the file to play section of the setup window? I have tried different configurations in the event editor to no avail. I got it so it didn't give me an error, but it also didn't play the video. It's and MCI error that keeps coming up. Is there any chance you could send me a working tgf file that plays a video? or know one I could download. I've been working on this project for over a month and have done things far more complex then this, but this just refuses to work right for me.
That doesn't seem to work either. Everyone in while if I put .\directory\filename.avi in the setup of the avi object from the level editor it takes it. The moment I try to save a stand alone game it adds the whole path to it, which doesn't work not local of course. I have tried it in so many ways...I'm running tgf pro and this is driving me crazy.
n/a
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
2nd January, 2004 at 05:15:34 -
you don't want .\, your hardisk isn't the internet. get rid of that.
If any of the mentioned above doesn't work, you could make an edit box which is set at the start of the frame to say: appdrive$ + appdir$ + "directory\filename.avi" . Also make sure the edit box is off screen. Then at 0min 0.01sec tell it the AVI object to play the contents of the edit box. Also, make sure that in the setup of the AVI you leave the directory of the AVI blank.
P.S. Not sure if all of the terminology of this because the hard drive that had my MMF and MMFE on it died a little while ago and I haven't gotten it fixed yet.
Thanks for all the suggestions. I have not had any luck with either. Everyonce in a while though it will let me put .\directory\filename.avi in the setup for the object in the level editor. It's weird though...sometimes it let's me and other times it won't. It also doesn't always stay as I typed it. It does however work if I get it to accept it and compile a version it does work. So I'm not sure what the issue is. Thanks again for all the help.
That happens with me and the MCI midi player thing so I give them absolute directories... as anyone who has played Baddie Burning Bonanza will know.
Show me the power child,
I'd like to say,
That I'm down on my knees today,
Gives me the butterflies,
Gives me away,
'Til I'm up on my feet again,
I'm feeling outshined.