allan_boa
Lieutenant Colonel
Posts: 292
Joined: Wed Nov 22, 2006 1:54 pm
Location: France

Adding music

Thu Sep 13, 2018 8:09 am

Hello, is there an easy way to add music tracks that will play automatically in AGEOD games ?
I've tried to edit the music.txt file by adding tracks in the list and the corresponding files in the directory but it doesn't seem to be working... Like if the total number of tracks was coded somewhere else.
Any idea ?
Thanks

shotgunfacelift
Private
Posts: 25
Joined: Mon Nov 12, 2012 11:16 am

Re: Adding music

Thu Sep 13, 2018 10:48 am

It should work by just adding .mp3 files in the Sound directory I guess :confused:

allan_boa
Lieutenant Colonel
Posts: 292
Joined: Wed Nov 22, 2006 1:54 pm
Location: France

Re: Adding music

Thu Sep 13, 2018 1:11 pm

It doesn't seem to be working.
The music settings file is as follows (below) and all tracks are numbered. So I guess that some other setting file defines the number of tracks to include in the loop (43 in this case). Just my guess too, not sure.
-----
Music0 = NGC_Theme.mp3
Music1 = NCP_Victory.mp3
Music2 = NCP_AuxChamps.mp3
Music3 = NCP_AuxEtandarts.mp3
Music4 = NCP_BatteriesAusterlitz.mp3
Music5 = NCP_Ceremonial.mp3
Music6 = NCP_ChampHonneur.mp3
Music7 = NCP_DepartGrenadier.mp3
Music8 = NCP_DistributionVivres.mp3
Music9 = NCP_GromPobedy.mp3
Music10 = NCP_HonneurEmpereur.mp3
Music11 = NCP_KolSlavenAndCalls.mp3
Music12 = NCP_LaCharge.mp3
Music13 = NCP_LaGrenadiere.mp3
Music14 = NCP_LaVictoireEstEnNous.mp3
Music15 = NCP_Marche1erConsul.mp3
Music16 = NCP_MarcheBonnetTAPoil.mp3
Music17 = NCP_MarcheCuirassiers.mp3
Music18 = NCP_MarcheEclopes.mp3
Music19 = NCP_MarcheGardeConsulaire.mp3
Music20 = NCP_MarcheGardeConsuls.mp3
Music21 = NCP_MarcheGardeLeipzig.mp3
Music22 = NCP_MarcheGardeWaterloo.mp3
Music23 = NCP_MarcheGrenadiersACheval.mp3
Music24 = NCP_MarcheGrognards.mp3
Music25 = NCP_MarcheImperiale.mp3
Music26 = NCP_MarcheSacre.mp3
Music27 = NCP_Marseillaise.mp3
Music28 = NCP_MarseillaiseInstr.mp3
Music29 = NCP_PasAccelere.mp3
Music30 = NCP_PasCadence.mp3
Music31 = NCP_PourEmpereur.mp3
Music32 = NCP_PreobrajenskyMarch.mp3
Music33 = NCP_Rappel.mp3
Music34 = NCP_Retraite.mp3
Music35 = NCP_RetraitesFrancaises.mp3
Music36 = NCP_ReveilBivouac.mp3
Music37 = NCP_RigaudonHonneur.mp3
Music38 = NCP_SalutDesAigles.mp3
Music39 = NCP_SalutEtandarts.mp3
Music40 = NCP_Assemblee.mp3
Music41 = NCP_VeillonsSalutEmpire.mp3
Music42 = NCP_Austerlitz.mp3
Music43 = NCP_theme.mp3

shotgunfacelift
Private
Posts: 25
Joined: Mon Nov 12, 2012 11:16 am

Re: Adding music

Fri Sep 14, 2018 10:46 am


allan_boa
Lieutenant Colonel
Posts: 292
Joined: Wed Nov 22, 2006 1:54 pm
Location: France

Re: Adding music

Fri Sep 14, 2018 4:57 pm

Thanks for this !

1. copy the files to the Civil War II\CW2\Sounds directory
2. rename them so they look like the other music files (no underscore) in the directory, just the number, followed by a space, then the name of the file.
I made sure they are all called x1 (some files where called number_x2.mp3).
3. add them to the Musics.ini file as shown below:


I tried the very same method (which seems logic) in the past for RUS but it didn't work ... I must have messed up somewhere. Will give it a second try then ...
Thanks again !

User avatar
Citizen X
General of the Army
Posts: 678
Joined: Tue Feb 02, 2010 1:34 pm

Re: Adding music

Fri Sep 14, 2018 8:31 pm

Having a playlist on your favorite playback device seems more frugal.

allan_boa
Lieutenant Colonel
Posts: 292
Joined: Wed Nov 22, 2006 1:54 pm
Location: France

Re: Adding music

Sat Sep 15, 2018 6:13 am

Citizen X wrote:Having a playlist on your favorite playback device seems more frugal.

Yes, except that I don't know how to get Winamp to play music with intermittence. I don't want non stop music ...
Second issue, in order to boost performance I prefer reduce the number of open apps while playing and Winamp uses some relatively significant system resources ...

shotgunfacelift
Private
Posts: 25
Joined: Mon Nov 12, 2012 11:16 am

Re: Adding music

Sat Sep 15, 2018 8:31 am

When I read your first post I understand that you don't rename your .mp3 tracks in the Sound folder.
Instead you're editing the music.ini file ?
Which is the contrary of what you should do... if I got this right :mdr:

allan_boa
Lieutenant Colonel
Posts: 292
Joined: Wed Nov 22, 2006 1:54 pm
Location: France

Re: Adding music

Sat Sep 15, 2018 9:07 am

shotgunfacelift wrote:When I read your first post I understand that you don't rename your .mp3 tracks in the Sound folder.
Instead you're editing the music.ini file ?
Which is the contrary of what you should do... if I got this right :mdr:


What I did was to add a mp3 file "MySong.mp3 and rename the file "NCP_MySong.mp3"
and add a line in the music.ini file which contains 43 titles. The last line of the file reads: Music43 = NCP_theme.mp3

So I added : Music44 = NCP_MySong.mp3

And apparently it didn't work.

But as I said, and unless I messed up somewhere, it seems that the total number of files (ie "43" before I added the 44th song) is coded somewhere else. For exemple if there is somewhere a loop like this :

FOR i = 1 to 43 PLAY song END FOR.

And of course if it is the case, my song #44 won't play.
But not sure ... will try again....

User avatar
Citizen X
General of the Army
Posts: 678
Joined: Tue Feb 02, 2010 1:34 pm

Re: Adding music

Sat Sep 15, 2018 10:02 am

allan_boa wrote:What I did was to add a mp3 file "MySong.mp3 and rename the file "NCP_MySong.mp3"
and add a line in the music.ini file which contains 43 titles. The last line of the file reads: Music43 = NCP_theme.mp3

So I added : Music44 = NCP_MySong.mp3

And apparently it didn't work.

But as I said, and unless I messed up somewhere, it seems that the total number of files (ie "43" before I added the 44th song) is coded somewhere else. For exemple if there is somewhere a loop like this :

FOR i = 1 to 43 PLAY song END FOR.

And of course if it is the case, my song #44 won't play.
But not sure ... will try again....


Funny. I found a thread on the forum where this was the exact method to go for CW 2. Other than that, people worked with playlists most of the times.

If you find a way, do let us know.

Untill then, there is a function on my favourite player (vlc, wich is a bit more lightweight, too) to pause after each track and then waits for user intreaction to start the next. Should be a similar function on winamp.

Or you download one of those blank audiofileshttps://github.com/anars/blank-audio to make the gaps.

allan_boa
Lieutenant Colonel
Posts: 292
Joined: Wed Nov 22, 2006 1:54 pm
Location: France

Re: Adding music

Sat Sep 15, 2018 12:05 pm

Blank audiofiles might be the solution !! Thanks !

allan_boa
Lieutenant Colonel
Posts: 292
Joined: Wed Nov 22, 2006 1:54 pm
Location: France

Re: Adding music

Sun Sep 16, 2018 9:00 am

OK, I eventually reinstalled Winamp and made a playlist with blank files of various length in the middle. The problem is to find the right balance between blank files, their length and music files.
But globally, problem solved. Won't try anymore to mod the music :-) :hat:

Return to “General discussions”

Who is online

Users browsing this forum: No registered users and 31 guests