Getting jetSound to sound
by James · in Torque Game Engine · 05/06/2007 (4:02 am) · 7 replies
I've been working with the vehicle packs from Bravetree and run into the problem of getting the jetSound to actually work when accelerating (work at all to be honest).
Now be warned, I'm not a coder but I have looked at wheeledVehicle.cc and found what I think are the appropriate entries. It's not commented out and it at least looks like it should be working... so I'm not sure why it's not working.
Has anyone else run into this problem and solved it? If you have I'd appreciate any insight that will help me to get this working.
Thanks in advance :)
Now be warned, I'm not a coder but I have looked at wheeledVehicle.cc and found what I think are the appropriate entries. It's not commented out and it at least looks like it should be working... so I'm not sure why it's not working.
Has anyone else run into this problem and solved it? If you have I'd appreciate any insight that will help me to get this working.
Thanks in advance :)
#2
The control bindings:
05/06/2007 (4:15 am)
One thing I forgot...The control bindings:
function mouseJet(%val)
{
$mvTriggerCount3++;
}
vehicleDriverMap.bind( keyboard, lshift, mouseJet );
#3
I still can't get it to work. Not sure if it's the key binding or a Mac thing. Other sounds play fine so I'm thinking it has something to do with the key bindings.
I also misunderstood it's purpose - I thought it would play every time you hit the accelerator which doesn't make sense now that I think about it.
Any other suggestions? :)
05/06/2007 (6:43 am)
Thanks Tim.I still can't get it to work. Not sure if it's the key binding or a Mac thing. Other sounds play fine so I'm thinking it has something to do with the key bindings.
I also misunderstood it's purpose - I thought it would play every time you hit the accelerator which doesn't make sense now that I think about it.
Any other suggestions? :)
#4
05/06/2007 (7:08 am)
Check your sound file. Try using Ogg instead of Wave or vice versa. Make sure it's mono (though it should still play either way). Try playing the sound profile in the console - alxPlay("yourSoundProfile"); - Recheck your scripts, buy a less bug riddled engine :P
#5
Thanks again
05/06/2007 (7:34 am)
Lol - I'll give it a shot a little later on and let you know how I do.Thanks again
#6
05/06/2007 (2:12 pm)
Nope, no luck. I'll move it over to my PC and see if I can get it to work there.
#7
05/11/2007 (9:43 am)
Hey Tim, I got it working - Thank you so much for the help :)
Torque Owner Tim Heldna
The sound profile:
datablock AudioProfile(humveeTurboSound) { filename = "~/data/sound/vehicles/boost.wav"; description = AudioClose3d; preload = true; };In the datablock:In the onAdd method:
That's about it.