Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,089 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
AVI problem #35474
10/29/04 05:23
10/29/04 05:23
Joined: Apr 2003
Posts: 49
Mikasthusa Offline OP
Newbie
Mikasthusa  Offline OP
Newbie

Joined: Apr 2003
Posts: 49
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?

Re: AVI problem [Re: Mikasthusa] #35475
11/23/04 10:27
11/23/04 10:27
Joined: Dec 2003
Posts: 114
Pompano Beach,Florida USA
I
I_AM_DEFIANT Offline
Member
I_AM_DEFIANT  Offline
Member
I

Joined: Dec 2003
Posts: 114
Pompano Beach,Florida USA
try playing the cd on another computer...


defiant@zovera.com A_6 commercial 6.4.2 DirectX 9.0c p4 3.4 geforce 6800 ultra 256 mb 470 mhz forceware version 81.95
Re: AVI problem [Re: I_AM_DEFIANT] #35476
11/23/04 10:37
11/23/04 10:37
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
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.


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: AVI problem [Re: Mikasthusa] #35477
11/23/04 11:38
11/23/04 11:38
Joined: Jan 2002
Posts: 321
Littleton, CO. USA
D
dleuen Offline
Senior Member
dleuen  Offline
Senior Member
D

Joined: Jan 2002
Posts: 321
Littleton, CO. USA
I believe that if you use media_play to play the avi, it must be outside the resource file. Check the documentation.

Don

Re: AVI problem [Re: dleuen] #35478
11/23/04 11:59
11/23/04 11:59
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
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...


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: AVI problem [Re: ISG] #35479
11/24/04 00:14
11/24/04 00:14
Joined: Apr 2003
Posts: 49
Mikasthusa Offline OP
Newbie
Mikasthusa  Offline OP
Newbie

Joined: Apr 2003
Posts: 49
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?

Re: AVI problem [Re: Mikasthusa] #35480
11/27/04 11:55
11/27/04 11:55
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
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...


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: AVI problem [Re: ISG] #35481
12/02/04 08:22
12/02/04 08:22
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
I don't know if this helped you or not because I have got no reply back as of yet. Hope it did,


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1