Custom sounds seem to preclude the stock sounds [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Eaol
Major
Major
Posts: 510
Joined: Fri Jul 31, 2009 5:49 pm
Games I'm Playing :: SWBF2 and Warframe
Location: Everywhere.

Custom sounds seem to preclude the stock sounds [Solved]

Post by Eaol »

Hey!

I'm having issues with adding new sounds. I've finally gotten my new sounds in-game and somewhat functional. The other night they were 22050Hz and I had no problem - the stock sounds played alongside them. When I replaced my new sounds with higher-bitrate versions (44100Hz), while they still play and sound even better, the stock sound effects no longer play in my map. I don't recall touching the .lua in between these changes; all of my changes were in either the .SND file, the .asfx file (for changing the resampling to 44100Hz), and, of course, the .wav files (just replacing them with higher-definition versions).

Any tips/ideas on why this occurred? If there's anything I need to share, let me know! :D
BF2-Master
Captain
Captain
Posts: 469
Joined: Thu Mar 02, 2006 7:08 pm

Re: Custom sounds seem to preclude the stock sounds

Post by BF2-Master »

I'm literally the worst person on GT to comment - I've only attempted sound once, two days ago, and didn't quite succeed in adding unit VO - but I believe I've heard all sounds have to be 22050Hz with no exception.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Custom sounds seem to preclude the stock sounds

Post by Anakin »

There are a lot of tutorials for custom sounds here: viewtopic.php?f=27&t=13806

And i'm sure that the sounds need to be 22050 Hz. But you should check it in the tutorials.
Eaol
Major
Major
Posts: 510
Joined: Fri Jul 31, 2009 5:49 pm
Games I'm Playing :: SWBF2 and Warframe
Location: Everywhere.

Re: Custom sounds seem to preclude the stock sounds

Post by Eaol »

Ok, but then what's with Marth being able to do 44100Hz and 8000Hz sound effects?
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Custom sounds seem to preclude the stock sounds

Post by jedimoose32 »

I'm pretty sure sounds can be 44KHz. That's never caused any problems for me. :| Eaol, can you post your sound folder's main .req, era .req, .asfx, and .snd files? And your map's lua.
Eaol
Major
Major
Posts: 510
Joined: Fri Jul 31, 2009 5:49 pm
Games I'm Playing :: SWBF2 and Warframe
Location: Everywhere.

Re: Custom sounds seem to preclude the stock sounds

Post by Eaol »

I already got it all working just by switching them with 22050Hz sounds, but that's really strange. There ought to be a way to make it work.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Custom sounds seem to preclude the stock sounds

Post by jedimoose32 »

Glad you got it working at least, but yeah that is strange that it wasn't working for you at 44KHz.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Custom sounds seem to preclude the stock sounds

Post by Marth8880 »

BF2-Master wrote:all sounds have to be 22050Hz with no exception.
Nope. Doesn't matter what their sample rate is. However, the higher the sample rate, the more sound memory is used, so with that said, you shouldn't abuse it. I like 32 kHz, it's a great middle ground.
Eaol
Major
Major
Posts: 510
Joined: Fri Jul 31, 2009 5:49 pm
Games I'm Playing :: SWBF2 and Warframe
Location: Everywhere.

Re: Custom sounds seem to preclude the stock sounds

Post by Eaol »

I figured it was something like that, thanks for clearing it up Marth8880!

It's like the particle limit. Gotta budget effects, I guess.
Post Reply