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:
#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:
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