Sound Error

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Sound Error

Postby Valdez » Wed Mar 12, 2008 4:56 pm

Well that's just great! Now I have a problem with my sound. :( I cannot export ages with added SFX. So far I only have one for now and I positioned it right and triple-checked the AlcScript. Can anyone tell me what is wrong?
Here is what the console said after 1 export.

Code: Select all
Compiled with Python version 2.5.
Checking for installed Python... got it!
WARNING: Python Crypto Toolkit not found!, support for Myst 5 files is disabled!
!
WARNING: Python Crypto Toolkit not found!, support for Myst 5 files is disabled!
!
WARNING: Python Crypto Toolkit not found!,    You need to install it to be able
to generate valid manifest files for Alcugs Dataservers
Psyco not available to PyPRP...
Exporting c:\Program Files\Ubi Soft\Uru\dat\swimming_pool.age ...
Args are e_age_final
['e', 'age', 'final']
Exporting age swimming_pool
[AlcScript Parser]
{'DayLength': 24.0, 'LingerTime': 180, 'MaxCapacity': 10, 'StartDateTime': 0, 'S
equencePrefix': 6589}
{'AgeSDLHook': True}
{'DayLength': 24.0, 'LingerTime': 180, 'MaxCapacity': 10, 'StartDateTime': 0, 'S
equencePrefix': 6589}
#########################################
##
## => Exporting page Textures -1 <=
##
#########################################
#########################################
##
## => Exporting page BuiltIn -2 <=
##
#########################################
>>> Added AgeSDLHook scene object and python file mod
#########################################
##
## => Exporting page mainRoom 0 <=
##
#########################################
  [QuickScript - Footstep]
Quickscripted FootStepRgnMain
To: {'logic': {'modifiers': [{'flags': ['multitrigger'], 'activators': [{'type':
 'objectinvolume'}], 'tag': 'Enter_Ft', 'conditions': [{'direction': 'enter', 't
ype': 'volumesensor', 'satisfied': True}], 'actions': [{'type': 'responder', 're
f': '$FootSnd'}]}, {'flags': ['multitrigger'], 'activators': [{'type': 'objectin
volume'}], 'tag': 'Exit_Ft', 'conditions': [{'direction': 'exit', 'type': 'volum
esensor', 'satisfied': True}], 'actions': [{'type': 'responder', 'ref': '$FootSn
d'}]}], 'actions': [{'tag': 'FootSnd', 'type': 'responder', 'responder': {'state
s': [{'waittocmd': 0, 'cmds': [{'type': 'armatureeffectmsg', 'waiton': -1, 'para
ms': {'surface': 'rug', 'append': False}}], 'nextstate': 0}], 'flags': ['detect_
trigger'], 'curstate': 0}}]}}

  [QuickScript - Footstep]
Quickscripted Plane.003
To: {'logic': {'modifiers': [{'flags': ['multitrigger'], 'activators': [{'type':
 'objectinvolume'}], 'tag': 'Enter_Ft', 'conditions': [{'direction': 'enter', 't
ype': 'volumesensor', 'satisfied': True}], 'actions': [{'type': 'responder', 're
f': '$FootSnd'}]}, {'flags': ['multitrigger'], 'activators': [{'type': 'objectin
volume'}], 'tag': 'Exit_Ft', 'conditions': [{'direction': 'exit', 'type': 'volum
esensor', 'satisfied': True}], 'actions': [{'type': 'responder', 'ref': '$FootSn
d'}]}], 'actions': [{'tag': 'FootSnd', 'type': 'responder', 'responder': {'state
s': [{'waittocmd': 0, 'cmds': [{'type': 'armatureeffectmsg', 'waiton': -1, 'para
ms': {'surface': 'metal', 'append': False}}], 'nextstate': 0}], 'flags': ['detec
t_trigger'], 'curstate': 0}}]}}

  [QuickScript - Footstep]
Quickscripted rgnfootstepladder
To: {'logic': {'modifiers': [{'flags': ['multitrigger'], 'activators': [{'type':
 'objectinvolume'}], 'tag': 'Enter_Ft', 'conditions': [{'direction': 'enter', 't
ype': 'volumesensor', 'satisfied': True}], 'actions': [{'type': 'responder', 're
f': '$FootSnd'}]}, {'flags': ['multitrigger'], 'activators': [{'type': 'objectin
volume'}], 'tag': 'Exit_Ft', 'conditions': [{'direction': 'exit', 'type': 'volum
esensor', 'satisfied': True}], 'actions': [{'type': 'responder', 'ref': '$FootSn
d'}]}], 'actions': [{'tag': 'FootSnd', 'type': 'responder', 'responder': {'state
s': [{'waittocmd': 0, 'cmds': [{'type': 'armatureeffectmsg', 'waiton': -1, 'para
ms': {'surface': 'metalladder', 'append': False}}], 'nextstate': 0}], 'flags': [
'detect_trigger'], 'curstate': 0}}]}}

  [QuickScript - Footstep]
Quickscripted FootStepRgntiles
To: {'logic': {'modifiers': [{'flags': ['multitrigger'], 'activators': [{'type':
 'objectinvolume'}], 'tag': 'Enter_Ft', 'conditions': [{'direction': 'enter', 't
ype': 'volumesensor', 'satisfied': True}], 'actions': [{'type': 'responder', 're
f': '$FootSnd'}]}, {'flags': ['multitrigger'], 'activators': [{'type': 'objectin
volume'}], 'tag': 'Exit_Ft', 'conditions': [{'direction': 'exit', 'type': 'volum
esensor', 'satisfied': True}], 'actions': [{'type': 'responder', 'ref': '$FootSn
d'}]}], 'actions': [{'tag': 'FootSnd', 'type': 'responder', 'responder': {'state
s': [{'waittocmd': 0, 'cmds': [{'type': 'armatureeffectmsg', 'waiton': -1, 'para
ms': {'surface': 'tile', 'append': False}}], 'nextstate': 0}], 'flags': ['detect
_trigger'], 'curstate': 0}}]}}

  [QuickScript - Footstep]
Quickscripted FootStepRgnSplash
To: {'logic': {'modifiers': [{'flags': ['multitrigger'], 'activators': [{'type':
 'objectinvolume'}], 'tag': 'Enter_Ft', 'conditions': [{'direction': 'enter', 't
ype': 'volumesensor', 'satisfied': True}], 'actions': [{'type': 'responder', 're
f': '$FootSnd'}]}, {'flags': ['multitrigger'], 'activators': [{'type': 'objectin
volume'}], 'tag': 'Exit_Ft', 'conditions': [{'direction': 'exit', 'type': 'volum
esensor', 'satisfied': True}], 'actions': [{'type': 'responder', 'ref': '$FootSn
d'}]}], 'actions': [{'tag': 'FootSnd', 'type': 'responder', 'responder': {'state
s': [{'waittocmd': 0, 'cmds': [{'type': 'armatureeffectmsg', 'waiton': -1, 'para
ms': {'surface': 'swimming', 'append': False}}], 'nextstate': 0}], 'flags': ['de
tect_trigger'], 'curstate': 0}}]}}


[Sound Emitter KateRecordEmit]
 [Coordinate Interface KateRecordEmit]
Traceback (most recent call last):
  File "<string>", line 175, in open_file
  File "<string>", line 88, in export_age
  File "E:\Program Files\Blender Foundation\Blender\.blender\scripts\alcresmanag
er.py", line 427, in export_all
    plAudioInterface.Export(self,obj,scnobj,name,SceneNodeRef,softVolumeParser)
  File "E:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_SndClas
ses.py", line 103, in _Export
    win32snd.data.exportObj(obj, softVolumeParser) #We need to pass the parser

  File "E:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_SndClas
ses.py", line 731, in exportObj
    plWin32Sound.exportObj(self, obj, softVolumeParser)
  File "E:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_SndClas
ses.py", line 643, in exportObj
    sbuff.data.makeFromInput(wavobj)
  File "E:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_SndClas
ses.py", line 290, in makeFromInput
    self.fHeader.makeFromInput(wav) #Make the header
  File "E:\Program Files\Blender Foundation\Blender\.blender\scripts\alc_SndClas
ses.py", line 189, in makeFromInput
    assert wavfile.read(4) == 'WAVE'
AssertionError


There is that.

This is what I have set for my AlcScript for the SFX.

Code: Select all
KateRecordEmit:
   type: soundemit
     sound:
       flags:
         -localonly
         -autostart
       file: KateRecording
       volume: 1.0
       type: voice


There is my AlcScript. I had to estimate on the indents with the spacebar since tab won't work on pages like this but I know the indents are correct. Now I do not know if 'voice' is an existing type, but if not tell me but I know it is not the problem here because if I use one that does sure-fire exist I get the same error. Does anyone know what is going wrong or if I am doing something wrong? :|
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Re: Sound Error

Postby Paradox » Wed Mar 12, 2008 5:28 pm

Make sure that your sound file is a .wav file. The WAVE Header information if used to create a Plasma object, so the sound must be a valid .wav file, loaded in Blender.
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Sound Error

Postby Valdez » Wed Mar 12, 2008 5:38 pm

It is loaded in blender and is a working .wav file. I even made a second copy of it (not a copy of the file itself) and tried that and it still doesn't work.
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Re: Sound Error

Postby Grogyan » Wed Mar 12, 2008 6:32 pm

I was just browsing your AlcScript and saw a possible error with it

There needs to be a space between the hyphen "-" and the parameter
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Sound Error

Postby Valdez » Wed Mar 12, 2008 7:14 pm

I deleted the space and they gave me an unknown attribute error so I just deleted the hyphens and it went away but I still get the sound error.
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Re: Sound Error

Postby Grogyan » Wed Mar 12, 2008 7:50 pm

Which version of the plugin are you using?

The sound flags are different from 1.2.1 to 1.3.0
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Sound Error

Postby andylegate » Thu Mar 13, 2008 3:20 am

Valdez, this might be your problem here:

Do you have a good sound program to look at the wav file with? Audacity is a good one and it's free.

I don't know if it's Blender or the plugin's but what I DO know is that it has issues with wav files that are stereo instead of mono.

At first I thought it was having issues since I was making my own, so I went to a web site and downloaded some free sound files, that were also in stereo. But again, I got the same error that you're getting.

Using Audacity, I loaded up the wav file, and split the stereo tracks, and then told each one (left and right) to be Mono. I then mixed them together to have one mono track and saved the wave file (and also had it export as an ogg file too).

Once I did that, I no longer had an export problem, and ever since thing I make sure that any sound files I use are NOT stereo.

EDIT: I know what I said above might not make sense as many of the wav files in Uru are stereo, but the only one I've used from them was the engine_loop and it's mono.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Sound Error

Postby boblishman » Thu Mar 13, 2008 3:42 am

all my sound files are stereo ... Blender complains if they are not 16 Bit ... so I have to mess around with some of them ... once they are 16 bit stereo they work fine ... :roll:

check it's not a 32bit stereo file...
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Sound Error

Postby Valdez » Thu Mar 13, 2008 3:17 pm

Thank you so much boblishman for giving me that very helpful suggestion! It works now and i believe I have version 1.3.0. Thanks again! :D
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm


Return to Building

Who is online

Users browsing this forum: No registered users and 2 guests

cron