Game Development Community

Funny error

by Tasty Green Pees :-, · in Torque Game Engine · 02/19/2006 (2:09 pm) · 3 replies

Can anyone explain why i get this error:

Object 'AudioClosest3d' is not a member of the 'AudioDescription' data block class

thanks

#1
02/20/2006 (4:31 am)
Did you create an AudioDescription called AudioClosest3D before you attempted to use it in an AudioProfile?

And if you did, did you exec the script that contains it?
#2
02/20/2006 (10:23 am)
Chris, I'm using it in my player.cs file:

datablock AudioProfile(FootLightSoftSound)
{
   filename    = "~/data/sound/footfall.wav";
   description = AudioClosest3d;
   preload = true;
};
...
// Footstep Sounds
   FootSoftSound        = FootLightSoftSound;

Which suggests to me that created the AudioDescription right in the player.cs file which implements it. Therefore they are executed in the same script.

*scratching my head*
#3
02/20/2006 (10:26 am)
No. Chances are the AudioClosest3D was created somewhere in the common folder.

Don't assume anything... Search for it and figure out where it's being created.

The error's telling you that AudioClosest3D doesn't exist