View Full Version : Problems with Adding a Building . . .
Simetrical
12-10-2004, 08:37
So, I'm adding a new building (http://www.twcenter.net/forums/index.php?showtopic=17106) to the game. I modified export_descr_buildings.txt, export_descr_buildings_enum.txt, text\export_buildings.txt, and world\maps\campaign\imperial_campaign\descr_strat.txt. I deleted world\maps\base\map.rwm and map_heights.hgt and started up my campaign. When I choose my faction and click the button to proceed, I'm taken back to the Single Player menu, where none of the options do anything (until I go back and click on Single Player again). When I quit, I get no error, although I have -show_err enabled. Any ideas? Here (http://www.twcenter.net/forums/index.php?showtopic=17253) are the files . . . search for "Iehovah" in any of them, and you should find my additions.
-Simetrical
eadingas
12-10-2004, 12:40
Hmm you did a lot of weird things, any of them could be the bug... first, you made the building inaccessible to any faction, but that shouldn't be a problem, if it starts in a rebel city... Then, there's a lot of hardcoded stuff regarding the temples, so adding these is tricky. Try changing it to just 'shrine of Iehovah', first level. The description doesn't have to match the name in the export_descr_buildings file, it can be called anything there, even 'building25' as long as the description and name in the export_buildings.txt is correct... you don't need to have all the 'desc' and 'desc_short' entries in the dictionary if you don't use them. Just general and parthian ones is enough.
Perhaps the problem is with the factions list, I've never tried it this way.. there's a simpler method to make a building unavailable: just write 'requires factions { parthian, } and'
with 'and' at the end of the line and nothing else. It will give you a bug message after you quit, but you'll be able to play without any problems.
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.