Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
media doesn't play #101639
12/09/06 16:34
12/09/06 16:34
Joined: Nov 2006
Posts: 47
V
viva Offline OP
Newbie
viva  Offline OP
Newbie
V

Joined: Nov 2006
Posts: 47
i add this script

String Intro_vid = <start1.avi>;
String Intro = <Urinary_bladder.wmb>;

function main()
{
wait(1);
media_play("start1.avi",null,100);
while(media_playing(media_handle))
{ if(key_space) { media_stop(media_handle); } wait(1); }
wait(1);
level_load(Intro);
wait(1);

when i run it. the movie doesn't play, the screen is black but when i push space bar. movie's stop and game load normally. what's wrong with my code or movie??

My movie is .avi and i use 3dgs a6 pro

Re: media doesn't play [Re: viva] #101640
12/10/06 00:17
12/10/06 00:17
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
Can't imagine what's going on.
Did you made this video (what codec, 16/24bit colour, etc.)?
Are the sound present while screen is black?
Are your video played ok in the ordinary Windows media player?

Re: media doesn't play [Re: Lion_Ts] #101641
12/10/06 09:06
12/10/06 09:06
Joined: Nov 2006
Posts: 47
V
viva Offline OP
Newbie
viva  Offline OP
Newbie
V

Joined: Nov 2006
Posts: 47
i made this movie by using 3ds max and my movie run well on every media player program. i think it must be something wrong with my code not my movie.

Re: media doesn't play [Re: viva] #101642
12/10/06 09:46
12/10/06 09:46
Joined: Nov 2006
Posts: 47
V
viva Offline OP
Newbie
viva  Offline OP
Newbie
V

Joined: Nov 2006
Posts: 47
when i run the game. I heard the sound but didn't see any movie. That means my screen is black but movie's sound still play.

Re: media doesn't play [Re: viva] #101643
12/10/06 13:04
12/10/06 13:04
Joined: Dec 2005
Posts: 252
MyOwnKingdom
nipx Offline
Member
nipx  Offline
Member

Joined: Dec 2005
Posts: 252
MyOwnKingdom
Maybe its because of that:

Quote:

Manual: Full multimedia support is only available in the commercial edition and above; the lower editions only support .wav and .mid files.




Im not really familiar with videos, so I'm probably wrong.


nipx

Re: media doesn't play [Re: nipx] #101644
12/10/06 21:46
12/10/06 21:46
Joined: Nov 2006
Posts: 47
V
viva Offline OP
Newbie
viva  Offline OP
Newbie
V

Joined: Nov 2006
Posts: 47
my version is pro so i think it can support .avi.

Re: media doesn't play [Re: viva] #101645
12/12/06 00:22
12/12/06 00:22
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
i ask about sound while screen is black because i had same error once. it disappear after i made new media with other codec. yes, my first ("bad") media played in MS mediaplayer well, but crashes winamp and sound only played in GS engine.

Re: media doesn't play [Re: Lion_Ts] #101646
12/12/06 05:41
12/12/06 05:41
Joined: Apr 2005
Posts: 14
T
Tren_Loco Offline
Newbie
Tren_Loco  Offline
Newbie
T

Joined: Apr 2005
Posts: 14

have you try using the variable name where the media is?
like this:
.
.
media_play(Intro_vid,null,100);
.
.

Re: media doesn't play [Re: Tren_Loco] #101647
12/12/06 16:01
12/12/06 16:01
Joined: Nov 2006
Posts: 47
V
viva Offline OP
Newbie
viva  Offline OP
Newbie
V

Joined: Nov 2006
Posts: 47
media_play(Intro_vid,null,100);

I already used this. it doesn't work either. Maybe I have to change codec.


Lion_Ts which codec is work?? and what is your file name extension .wmv or else? I already used with .wmv and it doesn't work either. This drive me crazy ahhhh....

but this is very strange, when i use template cutscene it work very well, but when i use this code it doesn't work.

If u have the code that work in the same way, please post it.. THANKS for your help.. *-*

Re: media doesn't play [Re: viva] #101648
12/13/06 01:06
12/13/06 01:06
Joined: Aug 2005
Posts: 1,185
Ukraine
Lion_Ts Offline
Serious User
Lion_Ts  Offline
Serious User

Joined: Aug 2005
Posts: 1,185
Ukraine
i just typed your code and test it - it's working well, plays fullscreen video before actual level loading (as desired, your code isn't complicated.).
Code:

function main()
{
media_play("clock.avi",null,100);
while(media_playing(media_handle)) {
if(key_space) {
media_stop(media_handle);
}
wait(1);
}
...


It's strange that your video plays in the cutscene template.
Make a simple empty project and try just to display the video (without all your rest code). I mean, you have to debug a little. Hope, your 3dgs isn't A6.22pro if so, update to the a6.314 at least.
I had troubles once, when my friend made small video from 3dmax with unusual codec (can't remember, somethink like SinePack...).
with any other codec i haven't any problem.
By the way, do you know about license fee if you're using DivX, mp3, etc.?

Page 1 of 2 1 2

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