Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 10/05/2005 09:30:24

Title: After intro movie (playvideo) game switches to desktop
Post by: on Tue 10/05/2005 09:30:24
I am a newbie here, so please be gentle if this issue has been risen (and solved) before - forum search did not yield any similiar problem.

So, I have this intro animation I've done several months ago and I want it to be the intro movie to the game.

I've put PlayVideo command in the start_game section of the global script and this problem occured: after movie played (it's an avi, first it was divx, then I tried mpeg4), AGS switched back to desktop.

Funny thing is, after that the game seems to be running - there is an icon of its window on the task bar. It looks like it is minimized or something. Only when I click on it, the game resumes as it should. Why does this switch to desktop happens and how to get rid of it?

I also tried by moving the PlayVideo command to the first room, in the event Player enters room before fade in. Same thing happened.

Interestingly though, this only happens in full screen mode. In windowed mode everything works fine.

Any help already deeply appreciated.

EDIT: I forgot to mention that I am using WinXP SP1. I have the possibility of testing this on Win2k which I will do as soon as possible.
Title: Re: After intro movie (playvideo) game switches to desktop
Post by: Ishmael on Tue 10/05/2005 10:09:31
I've heard of similiar matters, as in games minimizing randomly, occuring on WinXP... Have you updated your display drivers? It's always worth the try...
Title: Re: After intro movie (playvideo) game switches to desktop
Post by: on Tue 10/05/2005 19:39:50
I refreshed video drivers, but it still doesn't work. However, I tried on Win2k computer and it works flawlessly.

Uhm, I will have to try some other WinXP systems and see how it works there. I hope this doesn't happen on every XP computer...

Meanwhile if anyone has any ideas about this, don't be shy...

Since it is turning out this is not about me being clueless newbie (which I am anyway :P) but a technical problem, perhaps this should be moved to more appropriate part of the forum...
Title: Re: After intro movie (playvideo) game switches to desktop
Post by: Scummbuddy on Tue 10/05/2005 20:04:29
something is stealing the focus in windows, and that seems to be called before where the return to AGS is being called.

Also, why aren't you running with XP SP2? Want to try and upgrade that, and then tell us what happens?
Title: Re: After intro movie (playvideo) game switches to desktop
Post by: on Tue 10/05/2005 20:57:01
It's the company's computer and due to all the problems SP2 turned out to cause, admins decided not to upgrade forbade us to do the same.

However upgrading to SP2 or not is not the issue, I suppose there still many an XP user who haven't upgraded.

However I will try to find SP2 machine and test the game there. If that will solve the problem, I'll just put it in the System Requirements - if my game ever gets finished, that is..... ;D ;D