PDA

View Full Version : BI: Adding hidden resources in BI?



lysarin
10-02-2005, 23:01
Has anyone tried to add hidden resources in BI?

I tried, but failed. Don't know if I did anything wrong though.

Added "test" in descr_regions.txt as such:

Northern_Italy
legion: Italica
Rome
empire_west
Latins
52 13 198
pottery, iron, slaves, marble, rome, test
5
7
christianity 75 pagan 25

Then I added it to export_descr_buildings.txt:

}
great_amphitheatre requires factions { roman, } and hidden_resource test
{
capability
{
stage_games 3 requires factions { roman,}
happiness_bonus bonus 3
}
construction 6
cost 6400
settlement_min huge_city
upgrades
{
}

But it didn't work. I couldn't build that building in any province, not even in Rome (which was supposed to be the only place were colloseum could be built).

Am I doing anything wrong?

(Note that Rome starts with Colloseum so you would have to destroy it first.)

professorspatula
10-02-2005, 23:36
When adding hidden resources, you need to delete the map.rwm file in the campaign folder after you've made your changes, and then you start the game. When you start a campaign, the file is generated by the game again and the hidden resources should now be in the game. However, with the generic BI campaign, the campaign folder doesn't have a map.rwm file. It's in the data\world\maps\base folder instead. I'm not sure if deleting that is a great idea, so rename it to something else then try reloading BI and trying the campaign.

To be safe, It's probably best to actually make a copy of the barbarian_invasion campaign folder, then add the contents from the maps\base folder too before editing the default data files. Call the copied folder my_barbarian_invasion or something, and edit the files in there instead of those from the default campaign directories, that way you won't accidently delete anything important. Then delete the map.rwm in that directory everytime you make a change to your resources. To see the changes in the game, you'll have to start a provencial campaign and not the main campaign.

If it works then hurrah! If not, bah! and back to the drawing board. I haven't actually tested that in BI, but I'd imagine that's how it would work.

lysarin
10-02-2005, 23:54
Thanks.

I tried it for a few times and it didn't work, then I saw a simple, stupid mistake in one line and when I fixed it, it worked as it should. Yey!