Problems with adding custom sounds [Solved]
Moderator: Moderators
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Problems with adding custom sounds
Please post the aforementioned asfx file.
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Problems with adding custom sounds
ah ok. Here is the asfx file that always get the soundmunge bats to work:
Note: It is unimportant which wav file it reads. Every sound file has no problems or errors.
And if I add one more line, as here, I get the errors:
Edit: Ok. I just use the default sound munge bat files from Bf2_Modtools/ data and added the .asfx line to my soundmunge.bat. After that I replaced my munge.bat with the munge.bat by Anakin he sent me. Now if I munge the sounds with the munge.bat my .lvl file is only 3kb file size.
Code: Select all
effects\uzi.wav -resample xbox 22050 pc 22050And if I add one more line, as here, I get the errors:
Code: Select all
effects\uzi.wav -resample xbox 22050 pc 22050
effects\ak47.wav -resample xbox 22050 pc 22050
effects\9mm_shot.wav -resample xbox 22050 pc 22050- Anakin
- 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: Problems with adding custom sounds
Just got an idea. How to you edit the files?? And what os are you using??
It's may an formating (ASCI, ANSI, utf8,...) problem of the files. Most only differ in the öäü,... and the endline character.
It's may an formating (ASCI, ANSI, utf8,...) problem of the files. Most only differ in the öäü,... and the endline character.
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Problems with adding custom sounds
I open the soundmunge, soundmungedir and the munge.bat files with the texteditor. I edit the lines I had to edit* and save them all as bat files. I munge with the munge.bat in data_LC1/_BUILD/Sound. But my lc1.lvl (soundlvl.) is just 3kb in file size. But it should be larger than now.
*The lines I add in soundmunge.bat:
in soundmungedir.bat:
And in munge.bat:
Edit: I think the bat files are ok. I tried it and replaced one bat after one bat with the ones you sent me. I didn't get errors. But after I replaced the lc1 folder with your sorce folder you gave me I always get this errors. (the lc1 folder in data_LC/ Sound.)
*The lines I add in soundmunge.bat:
Code: Select all
@call soundmungedir _BUILD\sound\worlds\lc1\%MUNGE_DIR% sound\worlds\lc1 sound\worlds\lc1\%MUNGE_PLATFORM% %MUNGE_PLATFORM% _BUILD _LVL_%MUNGE_PLATFORM%\sound _BUILD\sound lc1Code: Select all
@for /R %%A in (*.asfx) do @echo Munging %%~nA%%~xA & @soundflmunge -platform %4 -banklistinput %%A -bankoutput %MUNGEDIR%\ %CHECKDATE% -resample %CHECKID% noabort %SOUNDOPT% %BANKOPT% 2>>%MUNGE_LOG% 1>>%SOUNDLOGOUT%Code: Select all
@for /R %%A in (*.asfx) do @set BANKLIST=!BANKLIST! %%A-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Problems with adding custom sounds
3kb sounds about right for three tiny 22kHz sound samples. Send me your sound folder, lemme see if I'm able to munge them.
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Problems with adding custom sounds
Actually there are 5 sound files/samples. Anakin was able to get them munged. But ok. I have sent you the sound files.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Problems with adding custom sounds
I think I see the problem: your sound effects are stereo; all sound effects *have* to be mono. To make a stereo sound mono, import it into Audacity, select the track, go to Tracks, Stereo Track to Mono, and re-export.
The only sounds that should *ever* be stereo are music tracks and ambient environmental stream tracks (such as the sound of rain or birds chirping).
The only sounds that should *ever* be stereo are music tracks and ambient environmental stream tracks (such as the sound of rain or birds chirping).
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Problems with adding custom sounds
Hm..I am going to re-stereo-to-mono them all. Did you get any error messages then you munged the sounds?
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Problems with adding custom sounds
I didn't even bother attempting to munge them. Stereo WAV files loaded in ASFX or SFX files shouldn't be able to be munged at all.
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Problems with adding custom sounds
YES. It works now. No errors. Larger lvl file. Everything works and the sounds sound now more better. Thank you marth. I made all sounds to mono and now it works. Again thank you so much.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Problems with adding custom sounds
Great.
I'd recommend using different sound effects for those weapons, though, just FYI. 
-
thelegend
- Sith

- Posts: 1433
- Joined: Thu Jan 23, 2014 6:01 am
- Projects :: Star Wars - Battlefront III Legacy
- xbox live or psn: El_Fabricio#
- Location: Right behind you :)
Re: Problems with adding custom sounds
Ok. I just have one little question. I added a sound to my vehicle. In game it works but only so long as the soudn wave file is. Example for a helicopter: It just plays the 5 seconds of my wav file. After that it stops till I do a trickroll, or land or whatever with my vehicle. It is possible to let the sound files repeat if they end?
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Problems with adding custom sounds
Sure. Just add Looping(1); to the sound property. However, you might want to set it up as a parameterized engine sound instead.
You'll need a low, mid, and high version (in terms of pitch) of your helicopter's engine sound.
Relevant notes:
Hidden/Spoiler:
Relevant notes:
Hidden/Spoiler:
