error : AudioButtonOver is not a member of AudioProfile datablock class
by Jeff Yaskus · in Torque Game Engine · 01/28/2010 (3:45 pm) · 3 replies
Came across this recently while trying to dig through the console log to troubleshoot other issues.
Can someone point me to where the datablock for this class is assigned/created -- so I can resolve this ?
AudioButtonOver is not a member of AudioProfile datablock class
client audioProfiles.cs
Can someone point me to where the datablock for this class is assigned/created -- so I can resolve this ?
AudioButtonOver is not a member of AudioProfile datablock class
client audioProfiles.cs
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
// Channel assignments (channel 0 is unused in-game).
$GuiAudioType = 1;
$SimAudioType = 2;
$MessageAudioType = 3;
new AudioDescription(AudioGui)
{
volume = 1.0;
isLooping= false;
is3D = false;
type = $GuiAudioType;
};
new AudioDescription(AudioMessage)
{
volume = 1.0;
isLooping= false;
is3D = false;
type = $MessageAudioType;
};
new AudioProfile(AudioButtonOver)
{
filename = "~/data/sound/buttonOver.wav";
description = "AudioGui";
preload = true;
};About the author
Long time gamer, hacker and programmer. With dreams of making video games -
#2
went back and checked a plain RTS Kit install and sure enough the error is there as well.
I'll assume its another of those "it doesnt matter so just ignore it" kind of things ... but I cant help but want to resolve it.
02/02/2010 (11:43 pm)
I noticed it in the console log from a fresh (1.5.2v) RTS Kit + Word Dom mod went back and checked a plain RTS Kit install and sure enough the error is there as well.
I'll assume its another of those "it doesnt matter so just ignore it" kind of things ... but I cant help but want to resolve it.
Compiling starter.RTS/client/ui/defaultGameProfiles.cs... Loading compiled script starter.RTS/client/ui/defaultGameProfiles.cs. Object 'AudioButtonOver' is not a member of the 'AudioProfile' data block class Compiling starter.RTS/client/scripts/audioProfiles.cs... Loading compiled script starter.RTS/client/scripts/audioProfiles.cs.
#3
And since the audioProfiles.cs hasn't been loaded yet (it's next) it gives you the message.
02/03/2010 (1:27 am)
The problem is most likely defaultGameProfiles.cs has a:soundButtonOver = "AudioButtonOver";
And since the audioProfiles.cs hasn't been loaded yet (it's next) it gives you the message.
Michael Ruben Lugo