Problems with adding music. [Solved]
Moderator: Moderators
-
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 :)
Problems with adding music. [Solved]
Hey all,
I thought it would be nice adding custom music to my map. So I have read Mav's tut. about adding custom music. I think I understood it as well but my problem is my efx.lvl is just 5kb size. I munged with the munge.bat in Bfbuilder/ DataEFX/ _BUILD_PC and with the munge.bat in Sound (same directory).
I never changed any files I had to download in this tut (EFX folder by Mav). I just added my music1.wav-music4.wav to DataEFX/ Sound/ Worlds/ EFX/ Streams.
Anywone know what I may did wrong? Because in Mav's tut I had not to change any files. Just my lua file.
I thought it would be nice adding custom music to my map. So I have read Mav's tut. about adding custom music. I think I understood it as well but my problem is my efx.lvl is just 5kb size. I munged with the munge.bat in Bfbuilder/ DataEFX/ _BUILD_PC and with the munge.bat in Sound (same directory).
I never changed any files I had to download in this tut (EFX folder by Mav). I just added my music1.wav-music4.wav to DataEFX/ Sound/ Worlds/ EFX/ Streams.
Anywone know what I may did wrong? Because in Mav's tut I had not to change any files. Just my lua file.
-
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 music.
Please post REQ, STM, SND, MUS, and LUA files.
-
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 music.
Ah Ok..sry... Here are my:
EFX.req:
EFXcw.req:
efxcw_music.stm:
efxcw_music.mus:
efxcw_music_config.snd:
And my map lua file:
EFX.req:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
-
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 music.
Hmm. Everything appears to be in order... Did you remember to normalize your music tracks in Audacity before exporting 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 music.
Hm..what do you mean with normalize? I am sorry I am not an expert with music and sounds.
Note: Should they be in mono or stereo because you said music/ custom ambient sounds can be in stereo and in mav's tut he said in mono.
Note: Should they be in mono or stereo because you said music/ custom ambient sounds can be in stereo and in mav's tut he said in mono.
-
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 music.
They should be stereo @ 44100 Hz (44kHz) or 48000 Hz (48kHz).
To normalize a track in Audacity, select the track, go to Effect, Normalize, and click OK. Then re-export.[color=#FFFFFF][url=http://www.secretsociety.com/forum/downloads/Sound%20Engine%20Guide.txt]Sound Engine Guide.txt[/url][/color] wrote:VO Wav Format - typically 22Khz 16 bit mono.
Music Wav Format - as high quality as possible, 48khz 16 bit stereo
Sound Effects Wav Format - as high quality as possible, 44 Khz 16 bit mono.
Stereo samples are needed for stereo surround sounds such as ambience (which are actually split into multiple channels/samples for front and back) and music which is 2D, otherwise samples are typically 3D and in the world so they need to be mono (positional).
-
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 music.
Ah ok. Thank you. I am going to normalize and stereo them.
Edit: Ok. Nothing happened. I have them in stereo and have normalizen them. But if I munge (with both munge.bat's) the efx.lvl file is still 5kb size. But it should be a few Mb's because the .wav files are longer than 3 minutes and so on.
Edit: Ok. Nothing happened. I have them in stereo and have normalizen them. But if I munge (with both munge.bat's) the efx.lvl file is still 5kb size. But it should be a few Mb's because the .wav files are longer than 3 minutes and so on.
-
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 music.
Hmm. What are the contents of your munged folder?
-
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 music.
If do you mean in DataEFX/ _BUILD_PC/ sound/ worlds/ EFX/ munged:
There are 2 lvl and 2 config files:
-efxcw.lvl 5Kb
-efxgcw.lvl 1Kb
-efxcw_music.config 2Kb
-efxcw_music_config.config 3Kb
There are 2 lvl and 2 config files:
-efxcw.lvl 5Kb
-efxgcw.lvl 1Kb
-efxcw_music.config 2Kb
-efxcw_music_config.config 3Kb
-
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 music.
So it appears that the STM file isn't being munged into a STR file. Open up your STM file in Notepad++ and select the Encoding menu. What is the encoding set to? (e.g., Encode in ANSI)
-
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 music.
It encodes in UTF-8 without BOM.
If I want to encode in ANSi how I can save that?
If I want to encode in ANSi how I can save that?
-
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 music.
Hmm. My STM files also use UTF-8 without BOM, so I guess that isn't the issue. Regardless, try overwriting your STM file with this one: https://www.dropbox.com/s/rtd4gjg4dcjms ... _music.stm
- 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 music.
What munge.bat Files have you used? Take the once I gave you for the sounds
-
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 music.
I am soory but nothing happens. I replaced my file with your file, munge but my .lvl file is still 5kb size. And there isn't a new file in my munged folder.
Edit: anakin: Or I will test that.
Edit: anakin: Or I will test that.
Last edited by thelegend on Tue Aug 05, 2014 12:43 pm, edited 2 times in total.
-
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 music.
Dumb question, but do music1.wav, music2.wav, music3.wav, and victory.wav all exist in your Streams folder? Also, are you getting any munge errors or warnings whatsoever?
-
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 music.
victory.wav? Ah I have named it music4.wav because in mav's tut it had to be...but in my stm file there is victory.wav read. Ok I renamed the last wav and now my file is larger. I am going to test it in game.
Edit: YEAH. it works. I just had the wav file written wrong. Now the music is in game. thanks Marth and Anakin for help.
Edit: YEAH. it works. I just had the wav file written wrong. Now the music is in game. thanks Marth and Anakin for help.
- 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 music.
Glad to hear.
Music never worked for me. Now you can make that for me
Music never worked for me. Now you can make that for me
-
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 music.
Sure. You helped me with my weapon sounds and I think I can try helping you with your music lvl. Just pm me where your issues are 
- 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 music.
First i need to finish my Unit's. Than i'll give the music a try.
-
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 music.
hm ok.
@Anakin: Off-Topic: I know I am a beginner in xsi but If you need any more help for your mod just let me know. I'd be interested in making some models for you. But not unit models or animations. Just a few props or objects.
@Anakin: Off-Topic: I know I am a beginner in xsi but If you need any more help for your mod just let me know. I'd be interested in making some models for you. But not unit models or animations. Just a few props or objects.
