Ukraine as playable civilization in Realism Invictus (instruction how to make it playable)

Delagardi

Chieftain
Joined
Sep 13, 2022
Messages
1
Hey, I am always wanted to play for Ukraine in Civilization 4, Realism Invictus. If you want to play it too, here is how you can achieve this

TL;DR:
you can make Ukraine playable civilization in Realism Invictus. Tested in 3.72c.
Get my file Derivative_CIV4CivilizationInfos.xml from attachment and replace the same file in game directory:
Sid Meier's Civilization IV Beyond the Sword\Beyond the Sword\Mods\Realism Invictus\Assets\XML\Civilizations\
Now you can play Ukraine on every random map

If you want to make Ukraine playable in Huge World Scenario, add file from attachment RI Huge World Map Scenario With Ukraine.CivBeyondSwordWBSave:
Sid Meier's Civilization IV Beyond the Sword\Beyond the Sword\Mods\Realism Invictus\PrivateMaps\

IMPORTANT: Those attachment will work for 3.72c version. Original files could be changed on every mod update, so you need to adjust the code by instruction below

20250720232653_1.jpg
20250720234543_1.jpg


Below instruction how can you make it playable yourself.

1)
If you want to play it on any random generated map, you need change this file:
`Sid Meier's Civilization IV Beyond the Sword\Beyond the Sword\Mods\Realism Invictus\Assets\XML\Civilizations\Derivative_CIV4CivilizationInfos.xml`

Open it in your text editor (I use Sublime Text). Find this text in the file:
<Type>CIVILIZATION_UKRAINE</Type>

information below this line is about Ukraine civilization in the game.
Below you will find those two lines
XML:
<bPlayable>0</bPlayable>
<bAIPlayable>0</bAIPlayable>

First line is about permission to play Ukraine as a player and the second one is about permission for AI to play Ukraine civilization.
So to grant permission, you need to change 0 to 1. Here how is should be done:
XML:
<bPlayable>1</bPlayable>
<bAIPlayable>1</bAIPlayable>

Now you can start any random game and check Bohdan Khmelnytsky is playable leader now.

2) if you want to play Ukraine on the Huge World Map, you need to add info about Ukraine to this file in couple of places:

`\Sid Meier's Civilization IV Beyond the Sword\Beyond the Sword\Mods\Realism Invictus\PrivateMaps\RI Huge World Map Scenario.CivBeyondSwordWBSave`
I usually make copy of this original file and update the copy.

So make a copy of the file. Open it in your text editor (I use Sublime Text).
Find this line:
x=40,y=66

This are coordinates where Ukraine start point will be.
You need to change the whole block of code for those coordinates

BEFORE:

Python:
BeginPlot
    x=40,y=66
    RiverNSDirection=2
    isWOfRiver
    TerrainType=TERRAIN_PLAINS
    PlotType=2
EndPlot

AFTER:
Python:
BeginPlot
    x=40,y=66
    RiverNSDirection=2
    isWOfRiver
    TerrainType=TERRAIN_PLAINS
    PlotType=2
    BeginUnit
        UnitType=UNIT_NORDIC_WARRIOR, UnitOwner=58, (Bohdan Khmelnytsky)
        Level=1, Experience=3
        PromotionType=PROMOTION_AID_RANGED2
        FacingDirection=4
        UnitAIType=UNITAI_CITY_DEFENSE
    EndUnit
    BeginUnit
        UnitType=UNIT_RUSSIAN_ARCHER, UnitOwner=58, (Bohdan Khmelnytsky)
        Level=1, Experience=0
        PromotionType=PROMOTION_AID_ASSAULT1
        PromotionType=PROMOTION_AID_RANGED1
        FacingDirection=4
        UnitAIType=UNITAI_CITY_DEFENSE
    EndUnit
    BeginUnit
        UnitType=UNIT_SETTLER, UnitOwner=58, (Bohdan Khmelnytsky)
        Level=1, Experience=0
        FacingDirection=4
        UnitAIType=UNITAI_SETTLE
    EndUnit
    TeamReveal=58,
EndPlot

And in the 2 place of this file:
BEFORE:
Python:
BeginTeam
    TeamID=58, ()
    AtWar=77, (Barbarian)
    RevealMap=0
EndTeam

AFTER:
Python:
BeginTeam
    TeamID=58, (Bohdan Khmelnytsky)
    AtWar=77, (Barbarian)
    RevealMap=0
EndTeam

And in 3 place:
BEFORE:
Python:
ContactWithTeam=58, ()

AFTER:
Python:
ContactWithTeam=58, (Bohdan Khmelnytsky)

And in 4 place:
BEFORE:
Python:
AtWar=58, ()

AFTER:
Python:
AtWar=58, (Bohdan Khmelnytsky)

And in 5 place:
BEFORE:
Python:
BeginPlayer
    Team=58
    Handicap=HANDICAP_NOBLE
    HandicapScoreModifier=0
EndPlayer

AFTER:
Python:
BeginPlayer
    Team=58
    LeaderType=LEADER_BOHDAN_KHMELNYTSKY
    LeaderName=TXT_KEY_LEADER_BOHDAN_KHMELNYTSKY
    CivDesc=Ukrainian Empire
    CivShortDesc=Ukraine
    CivAdjective=Ukrainian
    FlagDecal=Art/Interface/TeamColor/fire and sword_flag_zaporozhia.dds
    WhiteFlag=1
    CivType=CIVILIZATION_UKRAINE
    Color=PLAYERCOLOR_UKRAINE
    ArtStyle=ARTSTYLE_RUSSIAN
    PlayableCiv=1
    MinorNationStatus=0
    StartingGold=0
    StartingX=40, StartingY=66
    StartingEra=ERA_ANCIENT
    RandomStartLocation=false
    CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_DESPOTISM
    CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_RULEOFFEAR
    CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_TRIBALISM
    CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_DECENTRALIZATION
    CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_PAGANISM
    Handicap=HANDICAP_NOBLE
    HandicapScoreModifier=0
EndPlayer

Ukraine will start the game on it's location and will have the same pack of units as Russia do.

If you don't want to change files manually, you can use my (check attachments). Everything works for 3.72c. if you have previous version, just change the code yourself, because every version of mod has it's own scenario map and they are different, this is why 3.72c could not be working in 3.71 etc. Those changes works for me from version 3.11

To make Ukraine playable you need to REPLACE `Derivative_CIV4CivilizationInfos.xml` file here:
`Sid Meier's Civilization IV Beyond the Sword\Beyond the Sword\Mods\Realism Invictus\Assets\XML\Civilizations\`

To make Ukraine playable on the Huge World Map, you need to ADD `RI Huge World Map Scenario With Ukraine.CivBeyondSwordWBSave` file here:
`Sid Meier's Civilization IV Beyond the Sword\Beyond the Sword\Mods\Realism Invictus\PrivateMaps\`
After this you should see Ukraine as playable civilization on the start screen.
 

Attachments

Back
Top Bottom