View Full Version : Promotions not showing on Tech Tree, help?


Gordon Farrell
Aug 08, 2007, 03:07 PM
I have a technology that enables three new promotions. But only the button for one of them (Blitz) appears on the tech tree, though they all are noted in the mouse-over help text.

Anyone got an idea why only one promotion shows up on tech tree? Has anyone else had this happen?

Thanks in advance!

EmperorFool
Aug 08, 2007, 03:49 PM
Looking at the code in CvTechChooser, nothing jumps out at me.


for j in range( gc.getNumPromotionInfos() ):
if ( gc.getPromotionInfo(j).getTechPrereq() == i ):
szPromotionButton = "Promotion" + str(j)
screen.addDDSGFCAt( szPromotionButton, szTechRecord, gc.getPromotionInfo(j).getButton(), iX + fX, iY + Y_ROW, TEXTURE_SIZE, TEXTURE_SIZE, WidgetTypes.WIDGET_PEDIA_JUMP_TO_PROMOTION, j, -1, False )
fX += X_INCREMENT


Are the two promotions that don't show up new? If so, did you create DDS files for them? Did you test that researching the tech results in enabling the promotions?

Gordon Farrell
Aug 11, 2007, 10:54 AM
Are the two promotions that don't show up new? If so, did you create DDS files for them? Did you test that researching the tech results in enabling the promotions?

1.They'e not new. All I did was reassign them to be enabled by a different tech.

2. Unfortunately, they appear really deep into the game and I haven't playtested that far! Don't see why they wouldn't, though. They are pre-existing promotions...

EmperorFool
Aug 11, 2007, 01:36 PM
2. Unfortunately, they appear really deep into the game and I haven't playtested that far! Don't see why they wouldn't, though. They are pre-existing promotions...

You should be able to simply give yourself the tech in WorldBuilder. Then see if you have that promo available (keep a unit with some XPs).