Modding Resource Header
Title: The Basics of descr_strat.txt Posted by: Caius
Modding area: Campaign Map
Required programmes: Notepad (or other text editor)
Summary: In-depth explanation of descr_strat.txt for starters.
Introduction:
We, at some point of our modding projects, can handle a lot of files without checking the Scriptorium. But, we were newbies when we started...
There are a lot of people who want to unlock all the factions. That's a classic question in the Rome Colliseum. But I will go further, and I will explain more things than how to unlock all the factions. Here, you can find information that won't be found in other places. Now, if you still are reading, we will start!
We are starting, now what do we need?
We need 4 things:
descr_strat.txt (the file in question)
A copy of descr_strat.txt (the file)
Notepad (or text editor you use)
Patience (always welcome)
I want to unlock all factions, what do I have to change?
1. Open the file descr_strat.txt, which can be found in data/world/maps/campaign/imperial_campaign.
2. Once opened, we can see the following text included in code tags:
Some cutting and pasting is need to change that to this:Code:campaign imperial_campaign playable romans_julii romans_brutii romans_scipii britons end unlockable egypt seleucid carthage parthia gauls germans greek_cities end nonplayable romans_senate macedon pontus armenia dacia numidia scythia spain thrace slave end
Note: Please note that the Senate and the Slave factions CAN'T be played. High changes are need to make them playable, and maybe those changes won't work. We'll never know.Code:campaign imperial_campaign playable romans_julii romans_brutii romans_scipii egypt seleucid carthage parthia gauls germans greek_cities britons macedon pontus armenia dacia numidia scythia spain thrace end unlockable end nonplayable romans_senate slave end
Changing the starting and ending age:
We can change our starting and ending age in case we starting to mod a campaign with other timeframe.
Just change the number to the year we want. You can use - (minus) to indicate that year is Before Christ.Code:start_date -270 summer end_date 14 summer
It can start (or finish) in winter, just changing summer to winter.
There is one limit to the age, the end date cant be sooner than the start date, this will give you a CTD, which means Crash To Desktop. Like in this example, which has been created to show you a uncommon error that can make your game not start.
Pirates and Brigantes:Code:start_date 40 summer end_date -77 summer
Annoying rebels... They are popping out from the nothing to annoy me! Well, that can be changed. There are two lines who make this change:
Since I have a moddified descr_strat.txt for my campaigns, this value should be much less than those.Code:brigand_spawn_value 102 pirate_spawn_value 102
How does it work?
Its like a rule: the lesser the number, the higher they will spawn. 0 (zero) is the lesser number for both spawn values, 1000 (one thousand) is the maximum number for both spawn values.
Now, we are approaching the factions section (Yes, we ommited the resources, that's advanced modding, as if you add a resource where you cant, you will have more than a headache.)
Let's start with a faction:
There are a lot of things here, so lets start with:Code:faction romans_julii, comfortable caesar superfaction romans_senate denari 5000
This indicates to Rome which faction are we talking about.Code:faction romans_julii
No, they aren't comfortable. This 2 words indicates how the IA will play as this faction. therother posted this list, its the research of IA and personalities:Code:comfortable caesar
Spoiler Alert, click show to read:
This allows the Senate to give you missions. Delete this line entirely if you want to not to receive more missions as playing as the Julii (if you delete it in the Julii part). Remember that this action can give you problems if some changes aren't being done.Code:superfaction romans_senate
Starting denarii amount for each faction.Code:denari 5000
This is the part of the cities/towns/villages. I won't enter in much details, but according to me, the first location indicated is automatically the capital of a faction.settlement
{
level large_town
region Campania
year_founded 0
population 7000
settlement_tax 51
plan_set default_set
faction_creator romans_julii
building
{
type barracks militia_barracks
}
building
{
type core_building governors_villa
}
}
settlement
{
level large_town
region Etruria
year_founded 0
population 5000
settlement_tax 51
plan_set default_set
faction_creator romans_julii
building
{
type barracks militia_barracks
}
building
{
type core_building governors_villa
}
}
Lets modify a family member:
We can do a lot of things. Lets change something about a troop:Code:character Flavius Julius, named character, leader, age 47, , x 89, y 82 traits GoodCommander 2 , NaturalMilitarySkill 1 , GoodDefender 1 , PoliticsSkill 3 , GoodAdministrator 2 , Austere 1 ancillaries aged_retainer army unit roman generals guard cavalry early exp 1 armour 0 weapon_lvl 0 unit roman hastati exp 1 armour 0 weapon_lvl 0 unit roman hastati exp 1 armour 0 weapon_lvl 0 unit roman triarii exp 1 armour 0 weapon_lvl 0 unit roman archer exp 1 armour 0 weapon_lvl 0
This unit is a Roman Archer. If we delete this line from descr_strat.txt, there won't be a roman archer unit with Flavius Julius.Code:unit roman archer exp 1 armour 0 weapon_lvl 0
But, we can change three things there:
Experience
Armour
Attack.
Actual experience is level 1, values can go from 0 to 9
Actual Armour is level 0, values can go from 0 to 3
Actual Attack is level 0, values can go from 0 to 3
We can add troops to them, in this case, I will teach how to add a mercenary unit in Flavius Julius army.
This is the syntaxis for a cretan archer unit with two chevrons of experience. Add it in the last line of Flavius Julius army. It should look like this:Code:unit merc cretan archers exp 2 armour 0 weapon_lvl 0
Note: Please notice that RTW is limited to 20 cards or units. Failure to reach the number won't give you a problem, but if you put more units you are in serious problems. The game won't start.Code:character Flavius Julius, named character, leader, age 47, , x 89, y 82 traits GoodCommander 2 , NaturalMilitarySkill 1 , GoodDefender 1 , PoliticsSkill 3 , GoodAdministrator 2 , Austere 1 ancillaries aged_retainer army unit roman generals guard cavalry early exp 1 armour 0 weapon_lvl 0 unit roman hastati exp 1 armour 0 weapon_lvl 0 unit roman hastati exp 1 armour 0 weapon_lvl 0 unit roman triarii exp 1 armour 0 weapon_lvl 0 unit roman archer exp 1 armour 0 weapon_lvl 0 unit merc cretan archers exp 2 armour 0 weapon_lvl 0
I will complete it soon. And yes, its not complete yet.
Bookmarks