OK, so as always, when you figure a way to get something done efficiently, another issue appears and more than makes it up for the time you gained...
Getting the building database the same way as the unit database is turning into a hellish nightmare due to the much larger number of buildings (more than 3000) and complexity (about 300
types of tags IIRC... with several only used in a handful of buildings). I had to split the master xml file in 4 parts, get all tags and even out the tags between each file; now I think I have a decent building database, though I'm not 100% sure (let's say, I'm 95% sure
) that there aren't some mixups in duplicate tags (such as PrereqTech used both for enabling a building and for enabling a bonus for a building).
Anyway, a few comments for now:
- @Faustmouse: Getting
all tags for each building would be excruciatingly painful (unless I miraculously find an easier way). Could you point out which tags you're particularly interested in (in addition to the highest iGridX of the PrereqTechs?)? I can provide the list of all tags if you want.
- @Thunderbrd: I haven't yet looked into the xp/free promos buildings, but it should be doable
- I'll try to get some numbers to identify the least used tags, maybe there's some room for optimization (at the very least in readability)
- More broadly, this makes me wonder, does C2C really needs >3000 buildings?... I mean, I like C2C for the crazy amount of stuff added, but that seems a bit overkill... On average, it's 300 new buildings available added during each era! OK, this includes wonders and some buildings become obsolete, but still...