AVI problem

Posted By: Mikasthusa

AVI problem - 10/29/04 05:23

I have an avi problem. Runing my game in wed works fine. But after I resource the game, the avi won't run and it is in the same folder as the exe. It just skip it. What can be the problem?
Posted By: I_AM_DEFIANT

Re: AVI problem - 11/23/04 10:27

try playing the cd on another computer...
Posted By: ISG

Re: AVI problem - 11/23/04 10:37

Often times I get off track and open the game in WED and resource it then without checking if there is a Main Script attached. Whe there isnt one attached then that will/may happen like it has to me in the past.

This may or may not be the problem but its worth checking to make sure you have a Main Script attached.
Posted By: dleuen

Re: AVI problem - 11/23/04 11:38

I believe that if you use media_play to play the avi, it must be outside the resource file. Check the documentation.

Don
Posted By: ISG

Re: AVI problem - 11/23/04 11:59

No thats not the case, because I have put it in my resource file and it works fine. Its just when you put it outside the resource folder the script totally ignores it with no errors...
Posted By: Mikasthusa

Re: AVI problem - 11/24/04 00:14

Well, the problem is that I put this code in the function main():

function main()
{
var a;
media_play("movie.avi",null,100);
a = media_handle;
while(1)
{
if ((media_playing(a)==0) || (key_space == 1))
{
media_stop(a);
break;
}
wait(1);
}
Intialise();
GameLoop();
}

The game just skip the movie. And if I have similar code playing so other movie later, it either don't play or play but no visual appear, only sound is play. After that the next movies play as normal.

I did a workaround by playing a blank avi at the beginning and put the avi code in another function rather than the function main().

Strange, isn't it?
Posted By: ISG

Re: AVI problem - 11/27/04 11:55

Hey,

Try this out....Hope it helps...

//////////////////////////////////////
Function Main()
{
Warn_Level = 2;
Tex_Share = on;
Level_Load(Level_Str);
wait(1);
Freeze_Mode = 1;
media_play("Dexsoft.avi",null,100);
while(media_handle == 1) { wait(1); }
media_play("Dexsoft.avi",null,100);
sleep(13);
media_play("IceStorm.avi",null,100);
while(media_handle == 2) { wait(1); }
media_play("IceStorm.avi",null,100);
Load_Status();
Move_View_Cap = 1;
Freeze_Mode = 0;
}

/////////////////////////////////////////////////////////////////
Function Stop_Media() {
media_stop(media_handle);
}
On_Anykey Stop_Media;



Tell me if it helps...
Posted By: ISG

Re: AVI problem - 12/02/04 08:22

I don't know if this helped you or not because I have got no reply back as of yet. Hope it did,
© 2024 lite-C Forums