• 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.
Apr 7, 2023
9
3
Skjermbilde 2023-12-16 153713.png

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.
 
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 folder 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.
 
  • 2
Reactions:
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 folder 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?
 
You can name the file more or less anything as long as it ends with _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.

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.
 
You can name the file more or less anything as long as it ends with _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.

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.
In the files there's no localization.
As the pictures show theres no localization, so will it work with just the
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?"
or do i need some more?
 

Attachments

  • Skjermbilde 2023-12-25 222108.png
    Skjermbilde 2023-12-25 222108.png
    182,4 KB · Views: 0
  • Skjermbilde 2023-12-25 222116.png
    Skjermbilde 2023-12-25 222116.png
    48,8 KB · Views: 0
  • 1703539337416.png
    1703539337416.png
    52,8 KB · Views: 0
That line 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.

If you want to change it, just add NOR_FLAVOR_TEXT:0 "<Your text>" to a localization file arranged as I described before, in a "replace" folder in your mod
 
That line 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.

If you want to change it, just add NOR_FLAVOR_TEXT:0 "<Your text>" to a localization file arranged as I described before, in a "replace" folder in your mod
that didn't work, tried multiple times with and withouth the replace folder, any idea how to fix?
 
Post your modded localization file.

And the location of the file with the replace method should be <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 line 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.

If you want to change it, just add NOR_FLAVOR_TEXT:0 "<Your text>" to a localization file arranged as I described before, in a "replace" folder in your mod
that didn't work, tried multiple times with and withouth the replace folder, any idea how to fix?