Improper building text showing up but only sometimes...
I have a building that, if I build it, everything is good. But if I put it in a city at the game's start, it shows the wrong culture's name in the tooltip - and gives a generic description (not the appropriate faction specific one) in the description window.
It is a building that works for many factions and I need separate faction descriptions for all of them. And it looks fine if I build it once the game has started, *but* if I put it in the descr_strat file from the game's start then in the game it says (ROMAN) under the name on the tooltip (a greek_cities building though, in a greek city/province, with greek default culture and greek faction creator). I have entries for greek_cities in the export_descr_buildings.txt file for it, in the enums, and in the text file for descriptions.
Anyone had this problem before? It happened once earlier with a macedon building that said (ROMAN) but there was no roman variant so I just put the macedonian description and text in the roman slot and it was kosher.
I would rather figure this problem out though than do something half-assed like that; plus there is a roman variant now that I need text for also (different text).
Any help would be appreciated.
Re: Improper building text showing up but only sometimes...
I'm just hazarding a guess at this stage (I'll look more into it when I'm not so busy) but what is the faction_creator of the city? I'm guessing for buildings placed in the city at the start of the game (ie. included in descr_strat.txt) have the culture (and thus descriptions) of the faction_creator of that city, not the faction that controls the city at the start of the game.
Re: Improper building text showing up but only sometimes...
If we set faction creator to something like parthia for a seleucid territory, the buildings we put in it will still default to that greek culture variant instead of the eastern one if there are multiple descriptions provided.
But these provinces have greek_cities as the possessor at game's start and also greek_cities as the faction_creator in descr_strat.txt and greek_cities as the default culture in the regions.txt file. And there is a greek_cities description, enum, and entry in the building complex itself too. That's what is so puzzling. And it is happening with multiple complexes too, not just one.
The same thing had occurred with the macedonian building before - it said (ROMAN) but it was a macedonian held, created, and cultured province, with macedonian variants in description, enum, and complex entries.
I wonder if it has something to do with the fact that all greek buildings are technically "inside" of the roman tree for building graphics. They will use roman versions if no greek one is provided. This might be true of all cultures, if no other variant is provided though, but I can't speak for sure on that.
Re: Improper building text showing up but only sometimes...
It's actually really weird. I have three complexes with similar buildings in all of them. All my enums and descriptions for all three of them are right. I have both "greek" and "greek_cities" entries for them. Then in the EDB.txt file I have given three different options. In one building I put "requires factions { greek, } " in one I put "requires factions { greeks, } " and in the other I put "requires factions { greek_cities, } ". Guess which one worked. For "greek" and "greek_cities" it totally ignored the entries and used the default one for the whole complex (the "WARNING! " one that shouldn't appear). But for the *incorrect* "greeks" one it worked. Still, when I exited it, it gave the error message that it expected either a comma or faction (but got the incorrect "greeks"), so I know that is wrong. BUT it's the only one that worked. It gave proper icon, constructed image, and description. Very weird. Any suggestions?
Again, the ones that *should* be correct are showing (ROMAN) on tooltip and wrong graphics/description. I know the other things are right: faction_creator greek_cities for settlement; faction greek_cities for faction at startup; and greek_cities under the province in descr_regions.txt to show the default culture. Even greek_cities troops and general in the town of course. So why is it acting like it needs roman descriptions and graphics????????????????