• 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.

rennerpetey

Private
49 Badges
Oct 21, 2018
13
15
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cradle of Civilization
  • Victoria 3 Sign Up
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Cities: Skylines Industries
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Battle for Bosporus
  • Crusader Kings II: Conclave
  • Europa Universalis IV
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Victoria 2: A House Divided
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Res Publica
  • Crusader Kings II: Jade Dragon
  • Europa Universalis IV: Third Rome
  • Victoria 2: Heart of Darkness
I've been trying to change the songs that play in game.

In the folder C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\music I have 2 .ogg files(as a test, when it works I will add more) and one .txt file. These files are:

adayinthelife.ogg

allmyloving.ogg

beatles.txt

The .txt file looks like this:

song = {
name = "adayinthelife.ogg"
song_name = "A Day in the Life"

chance = {
factor = 1
}
volume = 0.48
}


song = {
name = "allmyloving.ogg"
song_name = "All my Loving"

chance = {
factor = 1
}
volume = 0.48
}

(I've moved all the other files that were in that folder elsewhere)
I've played the .ogg files on a .ogg player, and they sound fine, and I've converted them to the recommended Hz through Audacity.
The problem is that when I launch the game, no music plays and achievements are disabled because it says that steam is inactive even though its not. I tried to write a mod using some tutorials I found, but when I launched it no songs played, and the game broke(black shields, says steam is inactive etc...).

Can anyone help me find the issue?
 

Andyman301

Sovereign of everything related to procrastination
68 Badges
Jan 2, 2017
22
0
  • Victoria 3 Sign Up
  • Europa Universalis IV
  • Europa Universalis 4: Emperor
  • Crusader Kings III: Royal Edition
  • Surviving Mars
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome - Magna Graecia
  • Stellaris: Federations
  • Crusader Kings II
  • Crusader Kings III
  • Victoria 2
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Age of Wonders III
  • Shadowrun Returns
  • Prison Architect
  • Teleglitch: Die More Edition
  • Cities: Skylines
  • Dungeonland
I know it's been like 3 weeks since you posted this, but in case you still haven't figured it out I'll offer my suggestion.

A general rule of thumb would be to never make a mod inside of the actual CK2 directory, since it can screw up the game. If you haven't already, I'd recommend a reinstall or validating game files.

My first step would be to create a separate mod folder, which I linked to the wiki instructions on how to make one, as well as the .mod file required for the game to detect it.
Inside of your new mod folder, you'd create a folder called music, where you'd put your .ogg files and where you'll be making a the .txt file that makes the game detect the songs.
If you want to overwrite the base files, name the .txt file you'll put in that folder "songs.txt". If you don't want to overwrite the vanilla songs, name it something of your choosing.

Here's a link to the music modding wiki page and a the general modding wiki page if you are still having trouble getting it to work.
 

Aardvark Bellay

Lord Wuffington of Grumpytown by the barks
21 Badges
Apr 5, 2001
15.446
2.861
  • Divine Wind
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria 2
  • Victoria: Revolutions
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III
  • Deus Vult
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
The problem is that when I launch the game, no music plays

You mean at start and in main menu or while playing ?
The only song that will play during start and in main menu is named crusaderkings2_maintitle.ogg.

Make a mod as said above.
In doubt take another music mod (best from here rather than Workshop to prevent misinterpretations)
and see how it's done there.