What is the mechanic of playing music?

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

adfs

Captain
11 Badges
Sep 20, 2009
489
57
  • Arsenal of Democracy
  • Crusader Kings II
  • Europa Universalis IV
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III: Chronicles
  • For The Glory
  • 500k Club
I have added 99 music tracks in the war.txt. However, it just randomly played some of them and keep repeating.
I have tested if just put 3 unplayed tracks in the war.txt and it worked normally, all 3 tracks were played. It seems the issue is not related to the filename.
Are there any limitations of play music, such as the number of tracks?

The details of my war.txt:
KRLaMarseillaise
YamatoSong
Lalistedeschindler
Alte-Kameraden
SemperFidelis
7eme-Compagnie
TuEsPartout
BoBMAIN
taihang
Papillon
baizhanbaisheng
guoqigea
haijunjunge
yelaixiang
yeshanghai
hoi2-airborne
hoi2-happymarch
hoi2-leavingshore
hoi2-montgomerysmarch
hoi2-russianadagio
hoi2-russianvariations
hoi2-stateofgrace
hoi2-suiteno2
hoi2-theraf
KRLInternationale
JapaneseSouthernExpeditionaryArmySong
KRPreussensGloria
KRWasistdesDeutschen
KRCoburgerMarsch
KRYorckscherMarsch
SOV3
SOV4
FarewellofSlavianka
BritishGrenadiers
SovietMarch
MoscowDefenderSong
thesacredwar
dadaojinxingqu
yexi
youjiduizhigea
hoi2-war
hoi2-thefront
hoi2-riseandfallofevil
hoi2-overture
hoi2-lullabyofwar
hoi2-kriegsgewitter
hoi2-japanesespirit
hoi2-hoisuiteno1
hoi2-hoilero
hoi2-achtungpanzer
alliesdoinggood
axismarchofdominance
bigairforce
bigarmy
bigfleet
bombingthem
bombingus
convoys
convoysgetsunk
dangeroustoothers
defensive
diplomaticsuccess
dissent
epicbattle
factionalliessetfordeparture
factionaxisroadfromberlin
factioncom
genaxis1luftwaffe
gencom1risemycomrades
genpeacelettersfromhome
genpeacethepacific
genalliesunitednations
genaxislandoftherisingsun
gencomleningrad
genpeace1
genpeace2
genpeacewearefree
genwarballetofwar
genwaromahabeach
genwarworldatwar
hymnfortheoneslostatsea
landactions
loosealotofbattles
lotsofbattleswelloiledwarmachine
lowonmanpower
manyarmiesmoving
offensive
seaactions
sovietsuitepart1
sovietsuitepart2
sovietsuitepart3
sovietsuitepart4
sovietvictory
tanksalot
theironanthemv1
threatenedwhileatpeace
titlethemeheartsofiron
unitylow
winalotofbattles
 
I once added some custom tracks to the game too.

I had the issue that some of them were played as they should, but other were just muted/crashed the playlist and stopped music from playing.

Not sure why, but all the files were mp3 with same metadata. Only difference was the bitrate. Either there are some bitrate whcih dont work with DH, or it depends on the codec used to compress it into mp3.

Would suggest that some tracks of yours are just not "compatible" with DH due some issues like in my case. iirc there are no limits for the music.txt files.
 
  • 1Like
Reactions:
I once added some custom tracks to the game too.

I had the issue that some of them were played as they should, but other were just muted/crashed the playlist and stopped music from playing.

Not sure why, but all the files were mp3 with same metadata. Only difference was the bitrate. Either there are some bitrate whcih dont work with DH, or it depends on the codec used to compress it into mp3.

Would suggest that some tracks of yours are just not "compatible" with DH due some issues like in my case. iirc there are no limits for the music.txt files.
Nice tips, they are really helpful!