Here's a Python bug:
I built the world trade center. It does nothing but pop up a Python error message like so:
Code:
Traceback (most recent call last):
File "CvEventInterface", line 30, in onEvent
File "CvCustomEventManager", line 148, in handleEvent
File "CvCustomEventManager", line 159, in _handleDefaultEvent
File "CvEventManager", line 692, in onBuildingBuilt
NameError: global name 'C1Building' is not defined
ERR: Python function onEvent failed, module CvEventInterface
SO I check the Python and find a typo (missing letter "B") on line 680 which caused the problem:
Code:
b_school = gc.getInfoTypeForString("BUILDING_WTC")
[B][COLOR="DarkRed"]C1uilding[/COLOR][/B] = "BUILDING_CORPORATION_1"
C2Building = "BUILDING_CORPORATION_2"
C3Building = "BUILDING_CORPORATION_3"
C4Building = "BUILDING_CORPORATION_4"
C5Building = "BUILDING_CORPORATION_5"
C6Building = "BUILDING_CORPORATION_6"
C7Building = "BUILDING_CORPORATION_7"
I'd also like to point out that the WTC code has issues.
First, it doesn't check to see if the corp it is founding has already been founded (not just in this city, but anywhere). What happens if it founds a corp that has already been founded elsewhere? I don't know. But if it picks a corp that has already been founded in that city then you get no corp (although you do gain a free bonus that it can use).
Second, it doesn't check to see if a competing corp is already in the city. As I recall, using great people you can't found a corporation in the same city as a competing corp since it wouldn't just displace it, like it does for a non-headquarters corp expansion, it would presumably wipe out the other headquarters, leaving that corporation without one so it won't let you do it.
In my case, if it hadn't been for the bad code it would have tried to found Cereal Corp in the city (since that is what C1Building would have been pointing at it it existed). I had already founded Sid's Sushi in that city. So what would have happened? I don't know, but it probably would have been bad in some way.