← Docs

How to Safely Rename a Country Tag in HOI4

Three-letter tags like VIE appear across scripts, state histories, localisation, and flag filenames. Plain text find-and-replace often breaks unrelated words (VIEW) or collides with another country.

1. Check the replacement tag

Tags must be 3 uppercase alphanumeric characters starting with a letter (e.g. DVQ, D01). Check for collisions in your mod, vanilla common/country_tags/, and any parent dependency mods.

2. Directories to update

DirectoryChanges
common/country_tags/Tag definition (VIE = "countries/Vietnam.txt")
history/countries/Filename prefix and internal scopes
history/states/owner, controller, add_core_of, add_claim_by
common/national_focus/, events/tag =, original_tag =, scopes VIE = { ... }
localisation/Country keys (VIE, VIE_DEF, VIE_ADJ) and [VIE.GetName]
gfx/flags/Base, medium, and small flag files

3. Treat prefixed IDs separately

Focus, character, and idea IDs like VIE_industrial_expansion do not have to match the tag to work. Only rename them as a separate pass after checking for collisions.

Open Country Tag Migrator →