Page 1 of 1

Error when exporting with sound

PostPosted: Mon Aug 04, 2008 9:52 am
by ametist
I'm very new with this and I have looked trough the threads, couldn't find answers to my questions. I hope I can get help here with this ;)
Two problems with sound:
I. I get an error in the console when trying to export. Looks like this:
Image

I take away the space between ':' and first letter ( and I've learned there should be a space there. But a similar thing happened with my 'sittingmod', I had to take away a space there and now the sittingmod works fine) from all the scripting regarding the sound and then I can export nicely, but I can't hear a thing!
What do do wrong here?

( I've followed Nadnerb's excellent tutorial)

II. I can only hear footstep sounds in first view, is that normal? And barely then, I'm wondering if my different footstep-regions interfer with each other? I have some, and I've tried not to let them go into each other but...
How important is it that they don't do that? Am I right in my assumption that the sounds can be heard within the region and not just on the surface of the region?

Re: Error when exporting with sound

PostPosted: Mon Aug 04, 2008 10:13 am
by D'Lanor
There should be nothing after "flags:" if you are using it for sounds. The notation you use has been outdated several PyPRP versions ago.

Look here for the proper sound flags. And here is the code for your flags:

Code: Select all
        flags:
          - is3dsound
          - looping
          - autostart
        minfdist: <minimum distance>
        maxfdist: <maximum distance>


Edit: also added minfdist and maxfdist because without them 3d sounds do not work.

Where did you find those outdated instructions?

Re: Error when exporting with sound

PostPosted: Mon Aug 04, 2008 10:16 am
by Kato
Could you paste your AlcScript in here? That'd help :)

-Kato

Re: Error when exporting with sound

PostPosted: Tue Aug 05, 2008 11:28 am
by ametist
Thanks for helping out! :) I'm sorry, but I took that tutorial from 'Writing tutorials' called 'Adding a sound to your age' http://guildofwriters.com/wiki/Adding_a_sound_to_your_age on wiki not long ago. Now I see there's another one more updated, http://guildofwriters.com/wiki/Adding_Sounds_I which describe things a little more detailed as you say D'Lanor. My apologies for not looking through the wiki properly.
I'll try what you said and read through that other tutorial as I go which I'm sure going to fix my problem. Also got the answer to how different footstep- regions 'interact' .
I'm trying to learn AlScript as I go but this tutorials is a great starter for noobs like me :)
I'll sure be back if it don't works out and I will post the script too that time Kato ;)
Thanks again!

Re: Error when exporting with sound

PostPosted: Tue Aug 05, 2008 12:45 pm
by D'Lanor
Don't be sorry. There should not be outdated info on the wiki. That is why I asked.

I have updated the sound flags on that page in case somebody else stumbles upon it.

Re: Error when exporting with sound

PostPosted: Mon Aug 11, 2008 5:39 am
by ametist
;) Thanks D'Lanor.

But now I've tried a couple of times and no sound in my age. Maybe it's a problem with my URU CC installation though, I can't hear any foot-step sounds in third view in any fan-age at all. In other fan-ages I can hear music or other sounds in both views. So therefor I can't check if my 'swimming'sound is there, because swimming is done in third person view. I can hear my other footstep-sounds when I go in first person-view. Any ideas about what causes this behavior?

Here's my AlScript for the 3DEmitter-sound :
Show Spoiler


I have the .ogg in the sfx folder and the .waw in the streaming folder. I can hear the sound in Blender.

I hope someone can help me with this, thanks!!

Re: Error when exporting with sound

PostPosted: Mon Aug 11, 2008 10:15 am
by D'Lanor
You have to replace ambient with ambience.

Re: Error when exporting with sound

PostPosted: Tue Aug 12, 2008 7:50 am
by ametist
Thanks again, D'Lanor :) ! I sure did, as I've changed it so many times before, but NADA sound, sigh. I've now used ELF and as far as I can see it shows me the that the .ogg file is there and sound is on, still can't hear it.

Show Spoiler



Oh well, I have to make this 'The Age of Silence' then :lol:

Re: Error when exporting with sound

PostPosted: Tue Aug 12, 2008 8:37 am
by D'Lanor
It is registering but the logfile does not show it playing.

Oh wait, the image is somewhat blurred but is the space missing between - and autostart?