Lotus Temple does not work as described. Whoever was Furious and Annoyed at me - remained same.
iBuilding = gc.getInfoTypeForString("BUILDINGCLASS_SOMEBUILDING")
if ( pPlayer.getBuildingClassCount(iBuilding) ==1 )
...
Lotus Temple does not work as described. Whoever was Furious and Annoyed at me - remained same.
@DH - there is some slightly badly behaved Python, which does this kind of thing:
Code:iBuilding = gc.getInfoTypeForString("BUILDINGCLASS_SOMEBUILDING") if ( pPlayer.getBuildingClassCount(iBuilding) ==1 ) ...
The reason this is nasty is that it doesn't check whether ibuilding is -1 (i.e. - undefined in the assets), but just goes ahead and calls getBuildingClassCount(), which then accesses off the end of an array and COULD crash. There are lots of examples of this in the Python, so I don't propose to fix it there - I'm just hardening getBuildingClassCount() to return 0 if given the index -1. I suspect it's the commenting out of the Platyping stuff that has revealed the issue now.
Anyway, just an FYI - I'm handling it in the DLL, but when writing new Python we should really be checking for the -1.
Updates
- Changed Loki Fist so I cannot upgrade to the Grenadier to better fit with all the other units.
I will change this back ASAP as it is a religion unit not a Culture units and they have different criteria. Unless you want to change all the other Religion units.
I am changing the buildings look to help out the performance of C2C, so i am changing this, if you want different, pls do so yourself, sorry. But thx Koshling for this option.
<Define>
<!-- Use the following to determine what building art
is displayed on cities:
0 = none
1 = Wonders only
2 = Wonders and city defences only
3 = all -->
<DefineName>SHOW_BUILDINGS_LEVEL</DefineName>
<iDefineIntVal>2</iDefineIntVal>
</Define>
Updates
- Tales and Subdued can now be traded.