Talk:Music modding

From Europa Universalis 4 Wiki
Jump to navigation Jump to search

B - This article is considered a B-class article on the wiki quality scale

This article does not inform where to put the text for modifiers. This is needed to know how to mod the soundtrack at all. — Preceding unsigned comment added by 71.176.193.139 (Talk) 04:13, 6 April 2015‎ (CEST)

files[edit]

Around version 1.12 or so, EU4 changed the musical modding system. There is now a separate file (.asset; music.asset replaces the default file and causes compatibility issues with other mods) that links the title name in the .txt file to the actual music file.

ex: .txt:

song = {
	name = "amongthepoor"
	
	chance = {
		modifier = {
			factor = 0
			is_at_war = yes
		}		
	}
}

.asset

music = {
	name = "amongthepoor"
	file = "amongthepoor.ogg"
}

— Preceding unsigned comment added by 108.52.160.182 (talk) 07:27, 15 December 2016 (CET)