Skip to content
EasyFleet.

Smarter Fleet Management

Education & Enterprise

Understanding South Africa’s Tag in Hearts of Iron IV

In Hearts of Iron IV (HOI4), South Africa is identified by the unique three-letter country tag SAF. This shorthand code is the primary identifier used by the Clausewitz engine to reference the nation in the game’s internal scripts, sav...

In Hearts of Iron IV (HOI4), South Africa is identified by the unique three-letter country tag SAF. This shorthand code is the primary identifier used by the Clausewitz engine to reference the nation in the game’s internal scripts, save files, and developer console commands. Whether you are attempting to fix a bugged playthrough, testing a custom mod, or bypassing the political limitations of the British Commonwealth, knowing the SAF tag is the fundamental requirement for interacting with South Africa at a technical level.

Contents

The Technical Role of Country Tags in HOI4

Hearts of Iron IV utilizes a "tag" system to manage every sovereign entity on the map. These tags are static and do not change, even if the country undergoes a civil war, changes its ideology, or alters its displayed name. For instance, while South Africa might be renamed to the "South African People's Republic" under a Communist regime or the "South African Reich" under a Fascist one, the underlying engine still recognizes the entity solely as SAF.

Using tags instead of localized names prevents errors in the game’s logic. Because the game is translated into multiple languages, a script that looks for "South Africa" would fail in a French or German installation of the game. However, the tag SAF remains constant across all versions of the software. This consistency is why modders and power users rely on tags for everything from editing starting equipment to defining national focus outcomes.

Static vs. Dynamic Tags

It is important to distinguish SAF from dynamic tags. In HOI4, established nations like South Africa, Germany (GER), and Japan (JAP) have permanent, scripted tags. In contrast, revolutionary splinter groups or newly liberated nations that do not have a predefined history file are assigned dynamic tags (such as D01, D02, etc.). South Africa is a core part of the game’s setup, meaning it will always be SAF from the 1936 start date until the end of the game, regardless of the political path chosen.

Using the SAF Tag in Console Commands

The most common reason players search for South Africa’s tag is to use the developer console. As of 2026, the process for accessing and utilizing these commands remains a staple for the HOI4 community, particularly for those looking to experiment with the "Together for Victory" mechanics or the various expansion packs released over the last decade.

To use the SAF tag, you must first open the console by pressing the tilde (~) or grave accent (`) key, usually located just below the Escape key on most QWERTY keyboards. Note that console commands are disabled in "Ironman" mode, which is required for earning Steam achievements.

Essential Console Commands for South Africa

  1. tag SAF: This is the "switch" command. Typing this into the console allows you to instantly take control of South Africa. This is useful if you started as the United Kingdom and want to check on your Dominion’s progress or force them to take a specific national focus.
  2. annex SAF: If you are playing as another nation and wish to immediately absorb South African territory without a peace conference, this command will delete the SAF entity and give all its land and equipment to your current nation.
  3. add_core SAF [Province ID]: This command allows you to grant South Africa a "core" on a specific province. This is frequently used by modders or players who feel certain African territories should historically belong to the South African state.
  4. setowner SAF [Province ID]: Unlike annexing the whole country, this command transfers a single province to South Africa's control.
  5. teleport (tp): While not using the tag directly, with the tp command active, you can click on any unit and then right-click on South African soil to instantly move them there, which is helpful for testing naval invasion defenses in the Cape.

South Africa in the "Together for Victory" Framework

While South Africa is playable in the base game, its true depth is unlocked through the Together for Victory DLC (or the integrated versions of this content available in 2026 bundles). This expansion introduced the Autonomy system, which defines the relationship between the United Kingdom and its Dominions.

South Africa starts the game as a Dominion. In the game files, this relationship is hard-coded using the SAF tag to track its progress toward independence or further integration. If you are modifying the game, you will find South Africa's specific autonomy scripts in the common/autonomy and history/countries/SAF - South Africa.txt files.

The Strategic Importance of the SAF Tag

In the 1936 and 1939 scenarios, South Africa holds a unique position. It controls the Cape of Good Hope, a vital strategic chokepoint for Allied shipping if the Suez Canal falls to the Axis powers. Because the SAF tag is linked to specific national focuses regarding the "Grootboom" or "South African Steel," players often use the tag to bypass the slow industrial buildup if they are playing a casual or "sandbox" style game.

Modding and Save File Editing with SAF

For the modding community, the SAF tag is the gateway to customizing the African theater of war. If you want to change South Africa's starting technology, political popularity, or leader, you must locate the file named SAF - South Africa.txt within the history/countries folder of your HOI4 directory.

Editing Starting Parameters

Inside the SAF history file, you can modify several key attributes:

  • Popularity: You can set the starting strength of the democratic, fascist, communist, and non-aligned parties.
  • Research: You can grant South Africa advanced tanks or aircraft at the start of 1936 by adding the specific tech IDs to the set_technology block.
  • OOB (Order of Battle): The file points to SAF_1936, which determines where South African divisions are stationed at the start of the game.

Localization and Naming

If you wish to change the name of South Africa for a specific mod, you would not change the SAF tag. Instead, you would navigate to the localization folder and edit the countries_l_english.yml file. Here, you can define what SAF is called under different ideologies. For example:

  • SAF_fascism:0 "South African Reich"
  • SAF_democratic:0 "Union of South Africa"

This separation of the Tag (SAF) and the Name (Local String) is what allows the game to be so flexible for modders while remaining stable for the game engine.

Comparison of Commonwealth Country Tags

When playing in the British Empire sphere, you will often need the tags for the other Dominions to coordinate actions via the console or to edit save files for a multi-country setup.

Country Tag Starting Status (1936) Primary Resource
South Africa SAF Dominion Chromium / Gold
United Kingdom ENG Overlord Steel / Aluminum
Canada CAN Dominion Steel / Aluminum
Australia AST Dominion Tungsten / Steel
New Zealand NZL Dominion Tungsten
British Raj RAJ Colony Tungsten / Steel

Troubleshooting Common Issues with the SAF Tag

Sometimes, commands involving the SAF tag may not work as expected. This is usually due to a few common mistakes or game state conflicts.

Command Not Found

If you type tag SAF and nothing happens, ensure that there is a space between the command and the tag. The console is also sensitive to certain characters; ensure you are not using "Caps Lock" as the console is generally case-insensitive for tags but can occasionally glitch with specific system locales.

The "Game Over" Screen

A common mistake occurs when players use the annex SAF command while playing as South Africa. This will result in an immediate "Game Over" because your nation no longer exists. If you want to change who you are playing as, always use the tag command first.

Missing DLC Content

If you use the tag SAF command to switch to South Africa and notice the focus tree is generic (the standard 5-branch tree), it means the Together for Victory DLC is not active. The tag remains the same regardless of DLC, but the content associated with the tag will be significantly reduced without the proper expansion enabled.

Frequently Asked Questions

Does the South African tag change if they go independent?

No. Even if South Africa leaves the Commonwealth and becomes a fully independent nation, its internal ID remains SAF. All history files, focus tree progress, and unit identifications are tied to this static three-letter code.

Can I use the SAF tag to give them more Manpower?

Yes. While you are controlling the nation (via tag SAF), you can use the command allowdiplo to change laws or manpower [amount] to add soldiers directly to their recruitment pool.

Is the SAF tag used for the Boer Republic?

In the South African focus tree, you can trigger a civil war to reinstate the Boer Republic. While the country's name and flag will change, the "Boer" side of the civil war usually takes the SAF tag, while the Loyalist side is assigned a dynamic tag like D01. If the Boers win, they keep the SAF tag.

Why is the tag SAF and not ZAF?

HOI4 tags are often based on historical or traditional English abbreviations used during the mid-20th century. While "ZAF" is the modern ISO 3166-1 alpha-3 code for South Africa, "SAF" was the standard shorthand used by the developers at Paradox Interactive when the game was first designed.

Strategic Summary for Using SAF

Understanding the SAF tag is more than just a trick for cheating; it is a vital tool for anyone looking to deeply engage with the mechanics of Hearts of Iron IV. From managing the complex autonomy levels of the British Empire to creating custom historical scenarios through modding, the SAF tag serves as the anchor for all interactions with South Africa. By mastering the console and understanding the file structure associated with this tag, players can ensure their 2026 HOI4 experience is exactly as they envision it, whether that involves a loyal Dominion defending the Cape or a revolutionary power reshaping the African continent.

Written by

Thomas Harrison

Corporate Banking & Credit Reporter

You Might Also Like

View All