How to...add hidden resources
I haven't found a tutorial to add hidden resources, so I decided to make one myself.
Throughout this tutorial I will explain how hidden resources can be added and how you can make them have effect.
Adding hidden resources to the game
1. For modding the original imperial campaign:
a. copy the content of ...RTW\data\maps\base and ...RTW\data\maps\campaign\imperial_campaign into a new folder and name it yourself.
b. Copy the imperial_campaign_regions_and_settlements_names.txt in the data\text folder and give it the same name as you gave to your campaign
c. For any other campaign, open the "...RTW\data\world\maps\campaign\anyothercampaign" map and look for descr_regions.txt there.
2. Now open RTW\data\maps\campaign\yourcampaign\descr_regions.txt and add any hidden resources you want to any city you want by just typing them in the resources section.
Britannia_Inferior
Eburacum
britons
Brigantes
232 41 198
stone, coastal_forest, lead, dogs, pigs, guineapigs
5
5
In this region, I've added guineapigs as a hidden resource.
3. Now open the export_descr_buildings.txt file in the ...RTW\data folder.
Almost at the top, there is a line starting with hidden_resources.
4. Add the names of the hidden resources you've added to the descr_regions.txt file to this line:
hidden_resources rome, sparta, guineapigs
5. Open your rtw\data\world\maps\campaign\yourcampaign folder and delete map.rmw if it's present.
How to use the hidden resources
Now the hidden resources are present, you can make them have effect on things.
Therefore, use the export_descr_buildings.txt file (in RTW\data) and just choose anything you want to edit. I've chosen the example of "guineapigrider" as a cavalry unit, and the roman light cavalry will get an experience bonus when the guineapigs resource is present.
building equestrian_roman
{
levels stables
{
stables requires factions { greek_cities, roman, slave, }
{
capability
{
; greeks
recruit "greek cavalry" 0 requires factions { greek_cities, }
; roman
recruit "roman light cavalry" 0 requires factions { roman, } and marian_reforms
recruit "roman light cavalry" 0 requires factions { roman, } and not marian_reforms and not hidden_resource guineapigs
recruit "guineapigrider" 0 requires factions { roman, } and hidden_resource guineapigs
recruit "roman light cavalry" 1 requires factions { roman, } and not marian_reforms and hidden_resource guineapigs
}
construction 4
cost 1200
settlement_min large_town
upgrades
{
}
}
}
}
plugins
{
}
}
In the highlighted lines I have used the hidden resource in various ways and I think this pretty clearly explains how to use them.
You can put up to 63 hidden resources in the game
Have Fun!!!




Reply With Quote









