Long Sound Filenames

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!

Long Sound Filenames

Postby boblishman » Fri Feb 29, 2008 1:29 am

OK... having established that we can use Cyan's .ogg files in the sfx folder as sound effects ... another problem has occurred ... :cry:

Blender´s Audio Plugin has a maximum file name length... so, when you import the (converted) .wav file it truncates the filename.

However, the filename needs to be the complete filename in the Alcscript ... so, when you try and export the Age, the Blender Console complains that it can't find the .wav file (because the name is truncated in Blender ... :roll: )

Is there a way for the plugin to "ignore" the .wav files in Blender (there is no real need for them to be in Blender anyway is there?) and simply take the filename from the Alcscript when exporting?
That way it would be possible to use the pre-existing sound effects with long filenames ...
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: Long Sound Filenames

Postby Aloys » Fri Feb 29, 2008 6:07 am

I have noticed that too. That's exactly the kind of inconsistency that annoys me about blender.. :evil:
I have taken an habit to make file names as short as possible. (not only for sound files, but all assets) That's annoying, but that's just safer in the end. :(
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: Long Sound Filenames

Postby Chacal » Fri Feb 29, 2008 11:41 am

There are two solutions right now and both are unsavory.
1- PrpExplorer. If v0.7 has been fixed and doesn't shred the prp files anymore.
2- If not, it gets ugly: manual edit using a hex editor.

I've done both when modifying the Cyan city files.

When writing and testing your Age, you should do this:
- copy the ogg file to a short-name one
- use the short-name one until your final version is ready
- use the above tricks to switch to the regular ogg file.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: Long Sound Filenames

Postby boblishman » Fri Feb 29, 2008 11:48 am

what I don't understand is the need to import the wav file into Blender in the first place ... The plugin doesn't encode or re-write the sound file ... so why does it need it? ... surely we would actually be better off if the plugin just used the Alcscript file ( and then add the .ogg extention) ... ? ? ?
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: Long Sound Filenames

Postby Paradox » Fri Feb 29, 2008 4:22 pm

boblishman wrote:what I don't understand is the need to import the wav file into Blender in the first place ... The plugin doesn't encode or re-write the sound file ... so why does it need it? ... surely we would actually be better off if the plugin just used the Alcscript file ( and then add the .ogg extention) ... ? ? ?


PyPRP needs to read the .wav header information because of the way that Cyan handles plSoundBuffers. The plSoundBuffer contains detailed header information from the .wav file including byte-sizes and encoding.
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada


Return to Building

Who is online

Users browsing this forum: No registered users and 7 guests