Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Video Probleme  (Read 4100 times)

0 Members and 1 Guest are viewing this topic.

ChrisWiki

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
    • View Profile
Video Probleme
« on: October 30, 2005, 09:51:23 AM »


Hi, I'm a newbie in wintermute, and i'll wish know how to insert video at the startup of a game

I read some posts about this topic, but it didn't work for me . Is there any scriptsor tutorials available about this topic ?

Thanks for advance    :)


Logged

Rocco

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • View Profile
    • Virtual-Illusion
Re: Video Probleme
« Reply #1 on: October 30, 2005, 10:27:37 AM »

Hi Chris,

this example have one videofile on startup, you can download it in this thread:

http://forum.dead-code.org/index.php?topic=1021.0

i hope it helps,

videofiles are not compilied in wintermute, so you must insert the videofile in the packages folder manually, after compiling
Logged

ChrisWiki

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
    • View Profile
Re: Video Probleme
« Reply #2 on: October 30, 2005, 04:35:02 PM »


Hi Rocco,

Thank you for your help, but nevertheless it didn't work. When the game start i have a black screen ( ~3 secunds) and i acces directly to the main menu without the video  :(

I have in the data folder the subfolder videos with two files (first_klein.avi and first.avi). In the packages folder after the compiling, i have 4 files (data / speech / game.exe / settings.exe) and 1 subfolder (videos) that contain 2 files (first.avi and first_klein.avi).

 Can you help me again, please  :)

I'm using a PIV 3.2 GHZ with WXP SP2 / ATI RADEON 9800 128 MO /

 
Logged

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: Video Probleme
« Reply #3 on: October 30, 2005, 05:08:04 PM »

Is there an error message in the logs after you run the game? (They will be created in the games' dir after you run it in debug mode.)
Logged
fl*p

Rocco

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • View Profile
    • Virtual-Illusion
Re: Video Probleme
« Reply #4 on: October 30, 2005, 06:10:15 PM »

look in the game.script, there is one line
-> Game.PlayVideo("videos/first.avi", 1, 0, 0, false);

i have noticed that in the data/videos folder theres only a first_klein.avi

so you can either rename the file into first.avi or edit the code in the game.script
-> Game.PlayVideo("videos/first_klein.avi", 1, 0, 0, false);

if nothing helps, its maybe because of the wrong codec from this .avi.
try an *.avi which works with your normal windows media player or similar.
it must be in the videos folder and you must edit the code from the Game.PlayVideo("videos/yourfilename.avi",1,0,0,false);
this should work.
Logged

ChrisWiki

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
    • View Profile
Re: Video Probleme
« Reply #5 on: December 23, 2005, 10:46:51 PM »

Thank you very much for your replies rocco and Ednorf !

Sorry for my very late reply, but i was very busy at the moment. I have succeed to play a video file at the start of my game project, thanks to a new video file that i created by blender. (The original file "first.avi", don't work for me. I think it might be a video codec probleme inside my computer)

I wish you the best wishes for Christmas and a happy new year !  ::beer

Regards chris :)

Logged
 

Page created in 0.043 seconds with 20 queries.