May i ask if adding new promotions icon have heavy or small performance impacts? really want to try it in multiplayer since it adds more visibility when you are at war, and can potentially made people avoid some mistakes.
No. Zero performance impact on "adding new promotion icons"
Actually, promotion icons are
not added. When a promotion is created, it gets automatically the yellow "spark Blitz Promo" Icon.
After that, whatever the icon you assign to the promotion, the weigh is the same.
In the exemple
above (Khmer)
hokath gave to PROMOTION_KHMER_BOKATOR the icon #
13 from
PROMOTION_ATLAS to avoid the "spark" (xml) :
Code:
<Row>
<Type>PROMOTION_KHMER_BOKATOR</Type>
<Description>TXT_KEY_PROMOTION_KHMER_BOKATOR</Description>
<Help>TXT_KEY_PROMOTION_KHMER_BOKATOR_HELP</Help>
<Sound>AS2D_IF_LEVELUP</Sound>
<OrderPriority>1</OrderPriority>
<CombatPercent>10</CombatPercent>
<PortraitIndex>13</PortraitIndex>
<IconAtlas>PROMOTION_ATLAS</IconAtlas>
<PediaType>PEDIA_MELEE</PediaType>
<PediaEntry>TXT_KEY_PROMOTION_KHMER_BOKATOR</PediaEntry>
<CannotBeChosen>true</CannotBeChosen>
</Row>
and we change it again with the icon #
45 from
extraPromo_Atlas (sql) :
Code:
UPDATE UnitPromotions SET IconAtlas = 'extraPromo_Atlas' WHERE Type = 'PROMOTION_KHMER_BOKATOR'; -- => 45
UPDATE UnitPromotions SET PortraitIndex = '45' WHERE Type = 'PROMOTION_KHMER_BOKATOR';
This process is executed during the Mods Loading sequence. It takes a few ms.
The game runs properly with a nicely updated icons database. No impact
All icons in (7a) follow this mechanics.