
In wich file/folder path is the file for this text?
Want to mod in a way to have Norway better, but want my own text there.
game\localization\english\country_flavor_text_l_english.yml
game\localization\<language>\replace
, then the game will read any files here and replace the keys in them such as NOR_FLAVOR_TEXT
and use them instead of base game localization. That way you don't have to keep your file up-to-date with the base game.Thanks, so should the localization flavpur text file be named NOR_FLAVOR_TEXT? Or how should the structure of the files be?While file names don't always tell you where to look, this time it does.game\localization\english\country_flavor_text_l_english.yml
However, rather than editing that file directly. For "minor" localization changes, such as changing one country's flavor text, you're better off using the "replace" method.
For that, in your mod files, copy/create a yml file in the foldergame\localization\<language>\replace
, then the game will read any files here and replace the keys in them such asNOR_FLAVOR_TEXT
and use them instead of base game localization. That way you don't have to keep your file up-to-date with the base game.
_l_english.yml
. So something like new_norway_text_l_english.yml
would be fine. Inside the file it should match the other localization files' structure.In the files there's no localization.You can name the file more or less anything as long as it ends with_l_english.yml
. So something likenew_norway_text_l_english.yml
would be fine. Inside the file it should match the other localization files' structure.
The easiest way is to just copy the existing flavor text localization file, rename it and edit the contents to be just what you want to change.
NOR_FLAVOR_TEXT:0 "Norway has spent centuries under Danish and Swedish rule, but now dreams of sovereignty. What will it take for Norway to win its independence?"
is already in the vanilla file at line 193.NOR_FLAVOR_TEXT:0 "<Your text>"
to a localization file arranged as I described before, in a "replace" folder in your modthat didn't work, tried multiple times with and withouth the replace folder, any idea how to fix?That lineNOR_FLAVOR_TEXT:0 "Norway has spent centuries under Danish and Swedish rule, but now dreams of sovereignty. What will it take for Norway to win its independence?"
is already in the vanilla file at line 193.
If you want to change it, just addNOR_FLAVOR_TEXT:0 "<Your text>"
to a localization file arranged as I described before, in a "replace" folder in your mod
<mod folder>/localization/english/replace/<files>
, just to be sure. You could also test <mod folder>/localization/replace/<files>
in case it's not supposed to be in the language folder (that's how HoI4 does it)that didn't work, tried multiple times with and withouth the replace folder, any idea how to fix?That lineNOR_FLAVOR_TEXT:0 "Norway has spent centuries under Danish and Swedish rule, but now dreams of sovereignty. What will it take for Norway to win its independence?"
is already in the vanilla file at line 193.
If you want to change it, just addNOR_FLAVOR_TEXT:0 "<Your text>"
to a localization file arranged as I described before, in a "replace" folder in your mod