Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Help ~~~Why I can't attach a AVI format video with my game???  (Read 3187 times)

0 Members and 1 Guest are viewing this topic.

ALLEN

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 3
    • View Profile

Here is the thing~~
   I'm a new user of WME,I want to attach a AVI video at the begining of the game,but I tried the code as below~~

Scene.InventoryVisible = false;
actor.Active = false;
//Game.Interactive = false;
Game.PlayVideo("scenes\intro\introvideo.avi");
//Sleep(5000);

Why the video doesn't play at all???    I wondering the correct format of the code is the same as I worte above???
Can you guys teach me some method to make this right???
Thanks a lot~~~~!!!
Logged

Azrael

  • Regular poster
  • ***
  • Karma: 9
  • Offline Offline
  • Gender: Male
  • Posts: 155
    • View Profile
    • Mad Orange
Re: Help ~~~Why I can't attach a AVI format video with my game???
« Reply #1 on: June 10, 2009, 07:21:24 AM »

The debug console don't show any errors?
You can also look in the wme.log file.
Logged

Birdline

  • Supporter
  • Occasional poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 57
    • View Profile
    • Birdline Web Site
Re: Help ~~~Why I can't attach a AVI format video with my game???
« Reply #2 on: June 10, 2009, 06:57:35 PM »

It must be theora video (.ogg), not avi
You have to convert the avi to ogg

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Help ~~~Why I can't attach a AVI format video with my game???
« Reply #3 on: June 10, 2009, 07:01:06 PM »

WME can play both avi & ogg theora videos (avi just are not as flexible - check the docs). In this case something must be wrong with the script. Log should have all the info of what's going on.
Logged
fl*p
 

Page created in 0.038 seconds with 21 queries.