Game Development Community

Door example make the engine crash

by Mdk_4_ever Na · in Torque Game Engine · 05/27/2007 (7:04 am) · 1 replies

I get a crash in this line

%whichdoor.openSnd = %whichdoor.playAudio(0, doorStartOpenSwingSnd);

which call this block

datablock AudioProfile(doorStartOpenSwingSnd)
{
fileName = "~/data/sound/door1_move.wav";
description = AudioOpen3d;
preload = true;
};

#1
08/12/2007 (10:29 pm)
"AudioOpen3d" as an audio file type is what makes the engine pooch. It's trying to load the AudioProfile and it's getting an invalid description. Change the description to AudioClose3d and it should be fine.

I realize you've probably fixed the issue by now. Best of luck!