SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-16-07, 03:55 AM   #1
kakemann
Samurai Navy
 
Join Date: Feb 2007
Location: Pretty close to the big german cruiser Blücher in Norway
Posts: 568
Downloads: 29
Uploads: 0
Default [TEC] How to add new music files or change the music cfg

Here a little walkthrough on how to add music tracks, or changing them in the game.
I have also decribed the whole music.cfg file and the different states:

The first thing you have to do is to convert the files from mp3 or wav to ogg. There are a lot of different programs out there. There is also another thing you might have to change, and that is to adjust the volume for the songs you would like to add. The volume for the stock music files are pretty high. But try without changing it first, maybe you don't have to.

To convert or change the volume level I have used this free program:

Open the: http://www.softpedia.com/get/Multime...o-Editor.shtml)

It can both convert and adjust volume without upgrading it to the full version.


__________________________________________________ _
As I said I used this program so I'll tell you have to use this:
Quote:
* Open the program ALO Audio Editor

* Click on "FILE", "OPEN" and browse for the mp3's or wav's you would like to add to the game.

* The file will open and you will get a graphical view of the volume level for that song.

* After you have opened it, just click "FILE", and "SAVE AS".

* Browse to your Silenthunter 4 installation, and find the: DATA/SOUND/MUSIC directory.

* Choose a easy filename, and make sure you change the "FILE TYPE" to *.ogg.

* Wait until the blue bar on the bottom of the program window has filled up. This indicates the convertion prosess.

* Repeat the steps above for all the files you would like to add to the game.

* Close the program
OK! The file is changed to the right format and placed in the right folder.
Now is the time to add the track to the game.

Quote:
* Open the directory DATA/SOUND/MUSIC and open the file music.cfg
This is the file which tells Silenthunter 4 which tracks to play.
There are 8 STATES which the game reads and plays the music which is placed under the right state in this file. The following text will explain what the different states mean. The music files under each state will be played randomly. Here is an explaination for the different states:
Quote:
* [BEGIN] The state which the game is in when starting a new mission. The game will always start with one of the tracks located in this state.

* [NORMAL] This state is the normal state in the game. After the BEGIN state track has ended, the game will enter [NORMAL] state. It will continue in this state as long as you don't meet any enemy etc.

* [BATTLE] When spotting enemy units and reaching a certain distance from the enemy, the game will enter this state and play the music which is added here.

* [TENSION] This is the state the game will enter if you close the enemy undetected and the enemy suddenly detects you and starts searching for you.

* [HIGH TENSION] This state is not used by the Silent hunter 4 game, so you will never hear these tracks unless you move them to the any of the other states (They fit best under the [TENSION] part). See this thread to see how to fix this.)http://www.subsim.com/radioroom/showthread.php?t=113470

* [VICTORY] This state is not used by the silent hunter 4 game, so you will never hear these tracks unless you move them to any of the other states. (They fit best under the [NORMAL] part). See this thread to see how to fix this.)http://www.subsim.com/radioroom/showthread.php?t=113470

* [DEFEAT] This state is not used by the silent hunter 4 game, so you will never hear these tracks unless you move them to any of the other states. (They fit best under the [BEGIN] part). See this thread to see how to fix this.)http://www.subsim.com/radioroom/showthread.php?t=113470

* [JOY] This state is not used by the silent hunter 4 game, so you will never hear these tracks unless you move them to any of the other states. (They fit best under the [NORMAL] part). See this thread to see how to fix this.)http://www.subsim.com/radioroom/showthread.php?t=113470
OK! Just place your song underneath the other tracks in the track list. FOREXAMPLE: If you made a file called dasboot1.ogg and wants it to be played in the [TENSION] state. Add it to the track list like this:
Quote:
[TENSION]
Tracks=7
Track1=Tension_1.ogg
Track2=Tension_2.ogg
Track3=Tension_3.ogg
Track4=Tension_4.ogg
Track5=Tension_5.ogg
Track6=Tension_5.ogg
Track7=dasboot1.ogg
I've higlighted the two very important lines here. When adding a file to a list you have to change the first line, so the number of tracks in the list matches this number. So because I've added dasboot1.ogg I have to change the TRACKS=6 to TRACKS=7. Makes sense?

This is it! You have now managed to add one song to your Silent Hunter 4 game.

NOTE: If the volume of the song is too high or too low, you have to use the program ALO music editor (or similar) to change the volume level.

If using the ALO music editor you just have to open the file as described above, highlight the whole track area by clicking and dragging. When you have higlighted the whole track just click "OPERATION" and "AMPLIFY +" or "AMPLIFY -" depending on raising or lowering the volume. When you have reached a nice volume level click on "FILE" and "SAVE".

Remember to back up before altering the music.cfg file or changing the volume level on any file just in case!

Hope this helps someone.

I'm planning to release a music mod fixing the missing songs. I'll probably fix it in a day or so. Will post a link here later when it is finished!

Last edited by kakemann; 03-17-11 at 10:26 AM.
kakemann is offline   Reply With Quote
Old 05-16-07, 04:15 AM   #2
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

Great TUT!, you should add it to the sticky!
__________________
CaptainCox is offline   Reply With Quote
Old 05-16-07, 04:18 AM   #3
kakemann
Samurai Navy
 
Join Date: Feb 2007
Location: Pretty close to the big german cruiser Blücher in Norway
Posts: 568
Downloads: 29
Uploads: 0
Default

Thanks Cox!

I'm not able to do that. Need a moderator to fix it, I guess!
kakemann is offline   Reply With Quote
Old 05-16-07, 05:25 AM   #4
CaptainCox
Sea Lord
 
Join Date: Feb 2007
Location: A Swede in Frankfurt am Main
Posts: 1,897
Downloads: 4
Uploads: 0
Default

I think just post in that thread and some one would move it up to the list in the 1st post...
__________________
CaptainCox is offline   Reply With Quote
Old 05-16-07, 06:05 AM   #5
kakemann
Samurai Navy
 
Join Date: Feb 2007
Location: Pretty close to the big german cruiser Blücher in Norway
Posts: 568
Downloads: 29
Uploads: 0
Default

Thanks for directing me Captain!
Made a post about it!

kakemann is offline   Reply With Quote
Old 05-16-07, 08:28 AM   #6
ATR-42
Commodore
 
Join Date: Mar 2007
Location: Jersey Shore
Posts: 605
Downloads: 20
Uploads: 6
Default

great work Jon,
I think im going to add the score from Crimson Tide!
__________________

ATR-42 is offline   Reply With Quote
Old 03-11-14, 09:00 PM   #7
ReallyDedPoet
Canadian Wolf
 
ReallyDedPoet's Avatar
 
Join Date: Jul 2006
Location: The one and only East Coast
Posts: 10,775
Downloads: 946
Uploads: 5


Default [TEC] How to add new music files or change the music cfg

By putting a semicolon before the section ( semicolon at the first of each line ) you prevent that music from playing. For example I did this for all of the the Intro Music. The music.cfg file is what I edited.
__________________

Back in the Day




Last edited by ReallyDedPoet; 03-12-14 at 12:58 AM.
ReallyDedPoet is offline   Reply With Quote
Old 05-18-20, 05:04 AM   #8
gayfrog69696969
Bilge Rat
 
Join Date: May 2020
Posts: 1
Downloads: 3
Uploads: 0
Default

If anyone is interested i put the silent hunter 4 music in the SH5 music files. all you need do is just copy the song files from the SH4 folder to the sh5 folder. and then copy and past the following into the music.cfg text file inside the Music folder. i did make some compromises since the sh5 music has the annoying navigation music so i just put those as the tension songs.


[GENERAL]
CertainityTime=1
MinDuration=20
FadeTime=2

[STATES]
States=11
State1=BEGIN
State2=NORMAL
State3=BATTLE
State4=TENSION
State5=HIGH TENSION
State6=VICTORY
State7=DEFEAT
State8=JOY
State9=NAVIGATION MAP
State10=IN BASE
State11=UNDER DEPTH CHARGES

[BEGIN]
Tracks=5
Track1=Intro_1.ogg
Track2=Intro_2.ogg
Track3=Intro_3.ogg
Track4=Intro_4.ogg
Track5=Intro_5.ogg

[NORMAL]
Tracks=6
Track1=Stalker_1.ogg
Track2=Stalker_2.ogg
Track3=Stalker_3.ogg
Track4=Stalker_4.ogg
Track5=Stalker_5.ogg
Track6=Stalker_6.ogg

[BATTLE]
Tracks=6
Track1=Battle_1.ogg
Track2=Battle_2.ogg
Track3=Battle_3.ogg
Track4=Battle_4.ogg
Track5=Battle_5.ogg
Track6=Battle_6.ogg

[TENSION]
Tracks=5
Track1=Tension_1.ogg
Track2=Tension_2.ogg
Track3=Tension_3.ogg
Track4=Tension_4.ogg
Track5=Tension_5.ogg

[HIGH TENSION]
Tracks=5
Track1=High_Tension_1.ogg
Track2=High_Tension_2.ogg
Track3=High_Tension_3.ogg
Track4=High_Tension_4.ogg
Track5=High_Tension_5.ogg

[VICTORY]
Tracks=3
Track1=Victory_1.ogg
Track2=Victory_2.ogg
Track3=Victory_3.ogg

[DEFEAT]
Tracks=3
Track1=Defeat_1.ogg
Track2=Defeat_2.ogg
Track3=Defeat_3.ogg

[JOY]
Tracks=5
Track1=Joy_1.ogg
Track2=Joy_2.ogg
Track3=Joy_3.ogg
Track4=Joy_4.ogg
Track5=Joy_5.ogg

[NAVIGATION MAP]
Tracks=6
Track1=Tension_1.ogg
Track2=Tension_2.ogg
Track3=Tension_3.ogg
Track4=Tension_4.ogg
Track5=Tension_5.ogg
Track6=High_Tension_5.ogg

[IN BASE]
Tracks=2
Track1=Appell.ogg
Track2=Muss I Denn.ogg

[UNDER DEPTH CHARGES]
Tracks=4
Track1=High_Tension_1.ogg
Track2=High_Tension_2.ogg
Track3=High_Tension_3.ogg
Track4=High_Tension_4.ogg
gayfrog69696969 is offline   Reply With Quote
Old 05-18-20, 09:54 AM   #9
Aktungbby
Gefallen Engel U-666
 
Aktungbby's Avatar
 
Join Date: Jul 2013
Location: On a tilted, overheated, overpopulated spinning mudball on Collision course with Andromeda Galaxy
Posts: 27,856
Downloads: 22
Uploads: 0


Default welcome aboard!

gayfrog69696969!
__________________

"Only two things are infinite; The Universe and human squirrelyness; and I'm not too sure about the Universe"
Aktungbby is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.