CH20 Footsteps Sound problem
by Bhood · in Torque Game Engine · 08/02/2005 (10:10 am) · 6 replies
Hello,
I'm again having problems with sound, now at CH20, in the footsteps section pg 560 - 563. I've added all the script to the relevant files but have no sound playing. In console I can see that when I hit the forward key the commandToServer bringing up 'startFootsteps' and 'stopFootsteps' when I release but no sound is playing.
Anyone else had trouble with this?
Thanks,
bev
I'm again having problems with sound, now at CH20, in the footsteps section pg 560 - 563. I've added all the script to the relevant files but have no sound playing. In console I can see that when I hit the forward key the commandToServer bringing up 'startFootsteps' and 'stopFootsteps' when I release but no sound is playing.
Anyone else had trouble with this?
Thanks,
bev
#2
08/02/2005 (12:59 pm)
Yup, definitely in the sound folder and plays fine just as a wav file in Winamp.
#3
08/02/2005 (3:02 pm)
Does your console log show that the sound was actually loaded?
#4
I realised there was a typo in my script for the footsteps in CH20, corrected it and now Koob crashes when I go forward! It's getting worse! Did manage to find that StartFootsteps is coming up with "Unknown Command" in the console log. Am trying to pick this mess apart at the moment but any more suggestions would be very welcome.
thanks
08/03/2005 (3:12 am)
No, can't find anything in log saying sound was loaded but I've just be looking back at the storm sound that I eventually got to work in CH18 and I can't see them in the console log either, but they do definitely work. Is there something is should be typing in to the console check that they're loaded?I realised there was a typo in my script for the footsteps in CH20, corrected it and now Koob crashes when I go forward! It's getting worse! Did manage to find that StartFootsteps is coming up with "Unknown Command" in the console log. Am trying to pick this mess apart at the moment but any more suggestions would be very welcome.
thanks
#5
In case it's useful to anyone else I had to move the script on page 561 (starting "datablock AudioProfile(FootStep1)") out of the control/server/players/player.cs into a file of it's own, which I called footsteps.cs and saved to control/server/misc. Also, there seems to be a typo i.e. description = "AudioClosest3d"; should be as here, in inverted comma's.
Then had to add:
Exec("./misc/footsteps.cs");
to the bottom of function onServerCreated in control/server/server.cs
Also added an Exec command in the same place, for the end of the previous chapter as follows:
Exec("./misc/sndprofiles.cs");
I didn't actually make the file specified on page 555 of chapter 19 as it's already in control/client/initialize.cs
Hope this helps someone else, I'm very happy now to have nice crunchie footsteps!
08/03/2005 (4:27 am)
Ok have got it to work but still crashing if I do it by the book. In case it's useful to anyone else I had to move the script on page 561 (starting "datablock AudioProfile(FootStep1)") out of the control/server/players/player.cs into a file of it's own, which I called footsteps.cs and saved to control/server/misc. Also, there seems to be a typo i.e. description = "AudioClosest3d"; should be as here, in inverted comma's.
Then had to add:
Exec("./misc/footsteps.cs");
to the bottom of function onServerCreated in control/server/server.cs
Also added an Exec command in the same place, for the end of the previous chapter as follows:
Exec("./misc/sndprofiles.cs");
I didn't actually make the file specified on page 555 of chapter 19 as it's already in control/client/initialize.cs
Hope this helps someone else, I'm very happy now to have nice crunchie footsteps!
#6
10/23/2005 (7:35 pm)
Thanks for posting that, ran into the same problems and that fixed it.
Torque 3D Owner Sean H.