Culture modding

From Europa Universalis 4 Wiki
Jump to navigation Jump to search

Culture (or culture group) must contain the following:

  • a unique name
  • male_names
  • female_names
  • dynasty_names

A culture entry can contain :

  • a primary tag

The strings male_names and female_names determine the name databases of custom nations. Pre-existing countries get their names from common/countries files. The string dynasty_names determines the dynasty name databases of ALL countries, not just those created with the Nation Designer, and the advisor/general surnames of custom nations.

Adding a culture group containing one culture[edit]

One must place any culture inside a culture group, otherwise the game will not recognise it. For example, let’s presume we were about to create a new culture group with one culture inside it. The code would look like this:

custom_culture_group = {
	custom_culture = {
		primary = TAG
		male_names = {
			MaleName1 MaleName2 MaleName3
			"Male Name 1" "Male Name 2" "Male Name 3"
		}
		female_names = {
			FemaleName1 FemaleName2 FemaleName3
			"Female Name 1" "Female Name 2" "Female Name 3"
		}
		dynasty_names = {
			DynastyName1 DynastyName2 DynastyName3
			"Dynasty Name 1" "Dynasty Name 2" "Dynasty Name 3"
		}	
	}
}

In this case, the culture would have six possible male names, female names and dynasty names. Male names are “MaleName1”, “MaleName2”, “MaleName3”, “Male Name 1”, “Male Name 2” and “Male Name 3”, female and dynasty names follow the same pattern. As you can see, the names can be left un-quoted unless they contain a space.

Each culture can have a tag set as a primary. TAG should be replaced by the three letter tag of the nation that should keep uncontested cores indefinitely (the line in the example should be commented out if no primary).

If the culture group has only one culture or if all the cultures of the culture group should have same names, the name entries can be left within the culture group, like following:

custom_culture_group = {
	custom_culture = {
		primary = TAG		
	}
	male_names = {
		MaleName1 MaleName2 MaleName3
		"Male Name 1" "Male Name 2" "Male Name 3"
	}
	female_names = {
		FemaleName1 FemaleName2 FemaleName3
		"Female Name 1" "Female Name 2" "Female Name 3"
	}
	dynasty_names = {
		DynastyName1 DynastyName2 DynastyName3
		"Dynasty Name 1" "Dynasty Name 2" "Dynasty Name 3"
	}
}

Adding a culture group containing several cultures[edit]

Several cultures can be placed inside a culture group. The procedure is much like with one culture:

custom_culture_group = {
	custom_culture_1 = {
		male_names = {
			MaleName1 MaleName2 MaleName3
			"Male Name 1" "Male Name 2" "Male Name 3"
		}
		female_names = {
			FemaleName1 FemaleName2 FemaleName3
			"Female Name 1" "Female Name 2" "Female Name 3"
		}
		dynasty_names = {
			DynastyName1 DynastyName2 DynastyName3
			"Dynasty Name 1" "Dynasty Name 2" "Dynasty Name 3"
		}
	}
	custom_culture_2 = {
		male_names = {
			MaleName4 MaleName5 MaleName6
			"Male Name 4" "Male Name 5" "Male Name 6"
		}
		female_names = {
			FemaleName4 FemaleName5 FemaleName6
			"Female Name 4" "Female Name 5" "Female Name 6"
		}
		dynasty_names = {
			DynastyName4 DynastyName5 DynastyName6
			"Dynasty Name 4" "Dynasty Name 5" "Dynasty Name 6"
		}
	}
	custom_culture_3 = {
		male_names = {
			MaleName4 MaleName5 MaleName6
			"Male Name 4" "Male Name 5" "Male Name 6"
		}
		female_names = {
			FemaleName4 FemaleName5 FemaleName6
			"Female Name 4" "Female Name 5" "Female Name 6"
		}
		dynasty_names = {
			DynastyName4 DynastyName5 DynastyName6
			"Dynasty Name 4" "Dynasty Name 5" "Dynasty Name 6"
		}
	}
}

Now, one may wonder why custom_culture_2 and custom_culture_3 were given the same entries on names, even though the culture group can also be used for adding names. The answer is because the names are read from both inside the cultures themselves, and the culture group. If the names were put directly under the culture group, custom_culture_1 would have also received them in its name pool. This is good to keep in mind if you are adding a culture inside an already existing culture group.

Naming cultures[edit]

To name your new custom culture and culture group (if you made one), write the string name of your culture in a localisation file, then the name you want it to have in-game. For example:

l_english:
 custom_culture_group:0 "Custom Culture Group"
 custom_culture_1:0 "Custom Culture 1"
 custom_culture_2:0 "Custom Culture 2"
 custom_culture_3:0 "Custom Culture 3"

Modifying existing cultures[edit]

To modify an existing culture, simply add/remove names to/from your culture of choice, and you are done. Remember that names with space must be inside quotations.

Another point to keep in mind that deleting a culture for a culture group (instead of moving it), the history files and/or save games will need to be edited accordingly, or it'll appear as "no culture" in game.


Documentation EffectsTriggersModifiersScopesVariablesLocalisationCustomizable localization
Scripting AdvisorsAgesBookmarksBuildingsCasus belliColonial regionsCountriesCultureDecisionsDefinesDiplomatic actionsDisastersEstatesEventsFactionsGovernmentGreat projectsHistoryIdea groupsInstitutionsMissionsModifiersNation designerPoliciesReligionRebel typesSubject typesTechnologyTrade companiesTrade goodsUnits
Map MapRandom New WorldTrade nodes
Graphics 3D ModelsInterfaceGraphical AssetsFontsParticlesShadersUnit models
Audio MusicSound
Other Console commandsChecksumJoroDox mod making toolMod structureTroubleshootingThe Validator
Guides Adding a province