Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Problems with AVIs in compiled project  (Read 3778 times)

0 Members and 1 Guest are viewing this topic.

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Problems with AVIs in compiled project
« on: February 14, 2005, 10:38:08 PM »

Hi there,

I got a problem with my videos. I have an avi intro video to play at the beginning of the game and in the project manager everything works fine. But when I compile my project and run it independently it doesn't find the avi anymore.

Here is something to look at:

The script that plays the video:
Code: [Select]
#include "scripts\base.inc"

var NeuesSpiel=Scene.GetNode("NeuesSpiel");
var SpielLaden=Scene.GetNode("SpielLaden");
var Einstellungen=Scene.GetNode("Einstellungen");
var Credits=Scene.GetNode("Credits");
var Quit=Scene.GetNode("Quit");


// Neues Spiel beginnen.

on "LeftClick"
{
  NeuesSpiel.SetSprite("scenes\startmenu\anims\neuesspiel_chosen.sprite");
  Sleep(250);

  GameChapter=0;
  MoorLoch_BaumGeschuettelt=0;
  Intro_Running = 1;
 
  Game.PlayVideo("intro\intro_sound.avi");
  Game.ChangeScene("scenes\vordemapfelhaus\vordemapfelhaus.scene");
}



////////////////////////////////////////////////////////////////////////////////
on "RightClick"
{
  // walk to the desk
  Game.Interactive=false;
  actor.Talk("Wenn Du hier draufklickst kannst Du ein neues Spiel beginnen.","hauptmenue\neuesspiel.ogg");
  Game.Interactive=true;
}

The wme.log file content:
Code: [Select]
22:07: ********** DEBUG LOG OPENED 14-02-2005 (Release Build) *****************
22:07: DEAD:CODE Games Framework ver 1.03 (Build 03), Compiled on Feb 13 2005, 11:29:54
22:07: Platform: Windows XP Service Pack 1 (Build 2600)
22:07: DirectX version: 9.0
22:07:
22:07: Scanning packages...
22:07:   Registered 2870 files in 9 package(s)
22:07: Initializing scripting engine...
22:07:   Script compiler is NOT available
22:07: Loading string table...
22:07:   321 strings loaded
22:07: Enumerating Direct3D devices...
22:07: Enumerating DirectSound devices...
22:07: Available video devices:
22:07:   NVIDIA GeForce4 Ti 4200 (accelerated)
22:07: Available audio devices:
22:07:   Primärer Soundtreiber
22:07:   SoundMAX Digital Audio
22:07:   EWX 24/96 Wave Analog
22:07:   EWX 24/96 Wave S/PDIF
22:07:   [kein Sound]
22:07:
22:07: User selected:
22:07:   Video: NVIDIA GeForce4 Ti 4200 (accelerated)
22:07:          Windowed:no  Colors:32bit  T&L:no  Multisample:0
22:07:   Audio: Primärer Soundtreiber
22:07: Maximum texture size: 4096x4096
22:07: Data initialized in 359 ms
22:07: Error opening AVI file '.\intro\intro_sound.avi'
22:07:
22:07: Shutting down...
22:07: Shutting down scripting engine
22:07: ********** DEBUG LOG CLOSED ********************************************

And here is a screenshot of my hierarchy in project manager:


Don't know what it could be.

Thanks
Mac
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Problems with AVIs in compiled project
« Reply #1 on: February 14, 2005, 10:42:50 PM »

You will need to put the video files separately, they must not be compiled inside wme packages. It's a known limitation, because wme is using the Windows AVI playback functions which cannot read files from within packages. You can change the extension of these files so that it's not that obvious they are videos.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: Problems with AVIs in compiled project
« Reply #2 on: February 14, 2005, 10:53:51 PM »

That's lightspeed man !

I see, so I will change it and get it to work now.

Thanks a lot
Mac
Logged

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Re: Problems with AVIs in compiled project
« Reply #3 on: February 14, 2005, 11:14:51 PM »

Another thing ...

Would it work if I gave them the '.dcp' extension too ?

Or does that conflict with the engine ?

Thanks
Mac
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Problems with AVIs in compiled project
« Reply #4 on: February 15, 2005, 08:30:45 AM »

Would it work if I gave them the '.dcp' extension too ?

Or does that conflict with the engine ?
It should work. Although the engine will scan them at startup, it recognizes packages by file header, so it should ignore the videos. But it's possible you'll get some warnings in the log file, I'm not sure at the moment.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.037 seconds with 21 queries.