Video Playing Error

Started by Arjunaz78, Mon 03/10/2011 23:01:30

Previous topic - Next topic

Arjunaz78

I've make a games using AGS Editor v3.2.1 but it seems having a problem when run a video cutscenes that i include on the game when i try to play on other PC that run with WinXP SP2 platform..
I've been try to run my games (compile game,not debug mode) on my laptop & pc that currently run with WinXP SP2 too,but the game run softly without having problem when video cutscenes event trigger in that game.
Meanwhile,the video i use are converted from .flv to .wmv format..
Below is the link of cutscene screenshot that i having a problem..

http://i.imgur.com/RdNPt.jpg
http://i.imgur.com/3bwvG.jpg

and this is the script code (in GlobalScript.asc) that i've using to trigger that cutscenes event..

Code: ags
function NGButton_OnClick(GUIControl *control, MouseButton button)
{
   aNEW2.Play();
    QGButton.Visible = false;
      LGButton.Visible = false;
        NGButton.Visible = false;
     
    cMalek.SayAt(110, 180, 100,  "PLEASE WAIT!!    ");
   Wait(40);
 PlayVideo("KL_Gangster_S.wmv", eVideoSkipEscKey, 1);

 cMalek.ChangeRoom (2, -110, 100);
    cMalek2.ChangeRoom (2, 330, 120);
   gStartGame.Visible = false;
       LGButton.Enabled = false;
        NGButton.Enabled = false;
}


I've double check the script code,but i don't find any problem,besides when i try running my other games that create with AGS Editor v3.2.1,i got no problem with the video cutscenes that includes on that games..only this games have a problem...why?is it their conflict with the video codec?a scripting style or just the PC that i use not support the video that i include on that games?do i missing something or do something wrong?

Oh..one more thing,a background picture that i use is not a room,it's a custom GUI's that i created together with 'Load Game','X', & 'New Game' buttons.
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

Khris

Does the video play in Windows Media Player?

Also, what's with the weird random indentation?
Why not:
Code: ags
function NGButton_OnClick(GUIControl *control, MouseButton button)
{
  aNEW2.Play();
  QGButton.Visible = false;
  LGButton.Visible = false;
  NGButton.Visible = false;
  ...
}

Arjunaz78

Yes..it's work on WMP..i can play through it,it's works too on VLC player & Media Player Classic..

Code: ags
function NGButton_OnClick(GUIControl *control, MouseButton button)
{
  aNEW2.Play();
  QGButton.Visible = false;
  LGButton.Visible = false;
  NGButton.Visible = false;
  ...
}


refferring to the above code, 'NGButton' is a my custom GUIs buttons that stand for 'NEW GAMES' option,and what i need is,when i click the 'NGButton',the other game GUIs menu will disappear & invisible & cannot be click whatever when it's disappear,only the 'NGButton' will trigger to the next event that i set on and after i click the 'NGButton' i need the 'NGButton' disappear/invisible itself,that's mean before the room change delay time about in 0.5 & 1 second (not 'Wait' function) when i click 'NGButton'.
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

SMF spam blocked by CleanTalk