The Daily Click ::. Forums ::. Klik Coding Help ::. avi's not playing when not local
 

Post Reply  Post Oekaki 
 

Posted By Message

Danto



Registered
  17/11/2003
Points
  353
30th December, 2003 at 22:32:06 -

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.



 
www.thenatflap.co.uk

Danto



Registered
  17/11/2003
Points
  353
31st December, 2003 at 12:09:44 -

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.

 
www.thenatflap.co.uk

Danto



Registered
  17/11/2003
Points
  353
31st December, 2003 at 14:51:37 -

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.

Image Edited by the Author.

 
n/a

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
31st December, 2003 at 16:36:21 -

Remove the \ at the start

 
gone fishin'

Danto



Registered
  17/11/2003
Points
  353
1st January, 2004 at 15:55:28 -

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.

 
www.thenatflap.co.uk

The New SnS



Registered
  10/12/2002
Points
  768
4th January, 2004 at 00:14:06 -

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.

 
Visit the home of Mari007 and Gold's Not Enough:

The New SnS

http://sunnynook.cjb.net

Danto



Registered
  17/11/2003
Points
  353
7th January, 2004 at 23:38:55 -

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.

 
n/a

Ashman

Possibly Insane

Registered
  12/06/2002
Points
  3974
8th January, 2004 at 00:57:30 -

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.


"Outshined" - SoundGarden
   

Post Reply



 



Advertisement

Worth A Click