Expand description
Registry of all Total War games supported by RPFM.
This module contains the complete list of supported Total War games with their
full configuration data. It provides the SupportedGames registry which allows
lookup of game information by key.
§Supported Games
RPFM currently supports these Total War games (newest to oldest):
- Pharaoh Dynasties (2024)
- Pharaoh (2023)
- Warhammer 3 (2022)
- Troy (2020)
- Three Kingdoms (2019)
- Warhammer 2 (2017)
- Warhammer (2016)
- Thrones of Britannia (2018)
- Attila (2015)
- Rome 2 (2013)
- Shogun 2 (2011)
- Napoleon (2010)
- Empire (2009)
- Arena (online game)
§Usage
The primary way to access game information is through the SupportedGames registry:
ⓘ
use rpfm_lib::games::supported_games::{SupportedGames, KEY_WARHAMMER_3};
let games = SupportedGames::default();
let wh3 = games.game(&KEY_WARHAMMER_3).unwrap();
println!("Game: {}", wh3.display_name());§Game Keys
Each game has a unique key constant (e.g., KEY_WARHAMMER_3) used for programmatic
lookup. These keys are also used in directory names and configuration files.
§Adding New Games
To add support for a new Total War game:
- Add display name and key constants
- Create a
GameInfoinstance in theSupportedGames::default()implementation - Add the game to the
ordervector for proper release order sorting - Update relevant tests
Structs§
- Supported
Games - Registry of all supported Total War games.
Constants§
- DISPLAY_
NAME_ ARENA - Display name for Total War: Arena.
- DISPLAY_
NAME_ ATTILA - Display name for Total War: Attila.
- DISPLAY_
NAME_ EMPIRE - Display name for Empire: Total War.
- DISPLAY_
NAME_ NAPOLEON - Display name for Napoleon: Total War.
- DISPLAY_
NAME_ PHARAOH - Display name for Total War: Pharaoh.
- DISPLAY_
NAME_ PHARAOH_ DYNASTIES - Display name for Total War: Pharaoh Dynasties.
- DISPLAY_
NAME_ ROME_ 2 - Display name for Total War: Rome II.
- DISPLAY_
NAME_ SHOGUN_ 2 - Display name for Total War: Shogun 2.
- DISPLAY_
NAME_ THREE_ KINGDOMS - Display name for Total War: Three Kingdoms.
- DISPLAY_
NAME_ THRONES_ OF_ BRITANNIA - Display name for A Total War Saga: Thrones of Britannia.
- DISPLAY_
NAME_ TROY - Display name for A Total War Saga: Troy.
- DISPLAY_
NAME_ WARHAMMER - Display name for Total War: Warhammer.
- DISPLAY_
NAME_ WARHAMMER_ 2 - Display name for Total War: Warhammer II.
- DISPLAY_
NAME_ WARHAMMER_ 3 - Display name for Total War: Warhammer III.
- KEY_
ARENA - Unique key for Total War: Arena.
- KEY_
ATTILA - Unique key for Total War: Attila.
- KEY_
EMPIRE - Unique key for Empire: Total War.
- KEY_
NAPOLEON - Unique key for Napoleon: Total War.
- KEY_
PHARAOH - Unique key for Total War: Pharaoh.
- KEY_
PHARAOH_ DYNASTIES - Unique key for Total War: Pharaoh Dynasties.
- KEY_
ROME_ 2 - Unique key for Total War: Rome II.
- KEY_
SHOGUN_ 2 - Unique key for Total War: Shogun 2.
- KEY_
THREE_ KINGDOMS - Unique key for Total War: Three Kingdoms.
- KEY_
THRONES_ OF_ BRITANNIA - Unique key for A Total War Saga: Thrones of Britannia.
- KEY_
TROY - Unique key for A Total War Saga: Troy.
- KEY_
WARHAMMER - Unique key for Total War: Warhammer.
- KEY_
WARHAMMER_ 2 - Unique key for Total War: Warhammer II.
- KEY_
WARHAMMER_ 3 - Unique key for Total War: Warhammer III.