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

Sammy

Private
21 Badges
Dec 26, 2016
10
0
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
So I've been trying to create a music mod with imports some of the songs from Paper Mario: The Origami King for Nintendo Switch... and I'm having issues. When the mod is loaded the new songs don't appear in the in-game music player. How do i get them to appear? I've already converted all of the songs into .ogg format (using an online converter), so something must be wrong with my code.

Here is the .txt file:
Code:
song = {
    name = "redstreamer"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


song = {
    name = "vellumentals"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


song = {
    name = "coloredpencils"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


song = {
    name = "shogunstudios"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


song = {
    name = "rubberband"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


song = {
    name = "snifcity"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


song = {
    name = "holepunch"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


song = {
    name = "tape"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


song = {
    name = "scissors"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


song = {
    name = "stapler"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


song = {
    name = "kingollyone"
    
    chance = {
        modifier = {
            factor = 1
        }       
    }
}


############

And here is the .asset file:
Code:
music = {
    name = "redstreamer"
    file = "redstreamer.ogg"
}
music = {
    name = "vellumentals"
    file = "vellumentals.ogg"
}
music = {
    name = "coloredpencils"
    file = "coloredpencils.ogg"
}
music = {
    name = "shogunstudios"
    file = "shogunstudios.ogg"
}
music = {
    name = "rubberband"
    file = "rubberband.ogg"
}
music = {
    name = "snifcity"
    file = "snifcity.ogg"
}
music = {
    name = "holepunch"
    file = "holepunch.ogg"
}
music = {
    name = "tape"
    file = "tape.ogg"
}
music = {
    name = "scissors"
    file = "scissors.ogg"
}
music = {
    name = "stapler"
    file = "stapler.ogg"
}
music = {
    name = "kingollyone"
    file = "kingollyone.ogg"
}

What AM I doing wrong?
 

Runite Drill

aka Utopia
58 Badges
Jan 15, 2016
679
488
sptfy.com
  • Crusader Kings II: Sunset Invasion
Hi @Sammy,Welcome!
I am a fellow music modder.

At a glance there appears to be nothing wrong with the code in either of your files, suggesting something is wrong with the music itself.

Assuming the filenames/folder structure are correct for the .ogg files, my guess is that the music itself is coded in a way that EU4 can't read. If you check the properties of your music files, you should be able to find the following information:
  • Bits
  • Frequency
  • Bit Frequency
For your .ogg file to work within EU4, it must be 32 bits, 44.1kHz frequency and 192KB/s bit frequency. Unfortunately this information isn't up-to-date/correct in the EU4 wiki.

Some software allow you to alter these properties when you convert files to .ogg (I use Adobe Audition).

Have a look at it and let me know how you go!
 
Last edited:

Sammy

Private
21 Badges
Dec 26, 2016
10
0
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Rule Britannia
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
Hi @Sammy,Welcome!
I am a fellow music modder.

At a glance there appears to be nothing wrong with the code in either of your files, suggesting something is wrong with the music itself.

Assuming the filenames/folder structure are correct for the .ogg files, my guess is that the music itself is coded in a way that EU4 can't read. If you check the properties of your music files, you should be able to find the following information:
  • Bits
  • Frequency
  • Bit Frequency
For your .ogg file to work within EU4, it must be 32 bits, 44.1kHz frequency and 192KB/s bit frequency. Unfortunately this information isn't up-to-date/correct in the EU4 wiki.

Some software allow you to alter these properties when you convert files to .ogg (I use Adobe Audition).

Have a look at it and let me know how you go!
I'll give it a try as soon as I have free time. BTW, what do the "name" and "file" bits mean in the asset file?
 

Runite Drill

aka Utopia
58 Badges
Jan 15, 2016
679
488
sptfy.com
  • Crusader Kings II: Sunset Invasion
I'll give it a try as soon as I have free time. BTW, what do the "name" and "file" bits mean in the asset file?

The "name" is exactly what it says on the tin - it is the name of the song, i.e. what will show in the in-game music player (and must match the name in the .txt file). You may wish to use uppercase letters and your spacebar as appropriate.
The "file" part tells the game what file it should associate with the name, i.e. the song file. The file you write in here is the music that will play in-game. It does not have to match the "name", but rather a .ogg file within the mod music folder.