1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

(7a) Promotion Icons for VP

Discussion in 'Community Patch Project' started by Asterix Rage, Feb 18, 2019.

  1. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
    Here is where you can tell things about (7a)
    ___________________________________________________________

    "(7a) Promotion Icons for VP" replaces "VP Promo Icons" (VPPI)
    Make sure to delete all version of VPPI from your mod folder


    7aPIPV.png

    All the Promotion Icons are unique now
    PIPV keeps.png PIPV adds.png

    Bonus
    s_bonus vs_.png

    Defence
    s_defence_.png

    Barbarians
    s_barbies_.png

    Territory
    s_territory_.png

    Pillage
    s_pillage_.png

    Mystic Blade
    s_indo_.png

    Eight Virtues of Bushido
    s_jap_.png


    See all in Civ5 VoxPopuli\Civilopedia\Promotions
     
    Last edited: Jul 13, 2019 at 7:48 PM
  2. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
    (7a) Promotion Icons for VP comes with more promo icons you can use in your own Modmods
    mini_iconsAtlas.png
    64 Extra Icons :
    \MODS\(7a) Promotion Icons for VP\Extra Promo Icons.png
    Extra Promo Icons.png

    It can be risky to make changes in mods to get new promo icons
    To make things safe and easy, the mini mod bellow "Zz_Extra_Promo_Icons" allows to assign any icons from the IconAtlas named "ExtraPromo_Atlas" to any PROMOTION_

    Follow the instructions in Extra_update.sql (text file) :
    Code:
    -- Replace the dots '.......' below with the names of promotions you want to assign. Delete "/*" and "*/" front and back
    
    
    /*
    UPDATE UnitPromotions SET IconAtlas = 'extraPromo_Atlas' WHERE Type = '.......'; --     => 00
    UPDATE UnitPromotions SET PortraitIndex = '0' WHERE Type = '.......';
    */
    
    /*
    UPDATE UnitPromotions SET IconAtlas = 'extraPromo_Atlas' WHERE Type = '.......'; --     => 01
    UPDATE UnitPromotions SET PortraitIndex = '1' WHERE Type = '.......';
    */
    
    

    e.g. Units with PROMOTION_UNIT_JAPAN_YAMATO get the icon #59
    Code:
    
    /*
    UPDATE UnitPromotions SET IconAtlas = 'extraPromo_Atlas' WHERE Type = '.......'; --     => 58
    UPDATE UnitPromotions SET PortraitIndex = '58' WHERE Type = '.......';
    */
    
    UPDATE UnitPromotions SET IconAtlas = 'extraPromo_Atlas' WHERE Type = 'PROMOTION_UNIT_JAPAN_YAMATO'; --     => 59
    UPDATE UnitPromotions SET PortraitIndex = '59' WHERE Type = 'PROMOTION_UNIT_JAPAN_YAMATO';
    
    /*
    UPDATE UnitPromotions SET IconAtlas = 'extraPromo_Atlas' WHERE Type = '.......'; --     => 60
    UPDATE UnitPromotions SET PortraitIndex = '60' WHERE Type = '.......';
    */
    
    
     

    Attached Files:

    Last edited: May 11, 2019
  3. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
    (7a) is in charge of all the Promotion Icons in Vox Populi base game, not any other modmods

    To have new Promo Icons for Wonders Expended and Enlightenment Era for Vox Populi, copy the two mini mods below in your mod folder


    Wonder Expanded.png

    Enlightenment Era for Vox Populi :
    VPEE_pi_v 1.png

    @Infixo
    Feel free to integrate them in VPEE and VPWE if you wish

    EDIT : The little story that makes History
    Flagship promo and adjacent flagship promo (both triangles icons) are why I made the very first icons. They weren't nice as they are now, but good enough to enhance my naval tactic.
     

    Attached Files:

    Last edited: Jul 13, 2019 at 7:00 PM
  4. Enrico Swagolo

    Enrico Swagolo Warlord

    Joined:
    Jun 10, 2013
    Messages:
    2,348
    Just came to say it's great to see this being included in base VP, that's awesome.
     
  5. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
    And please welcome Promotion Tree ( Thx civplayer33 )
    Promotion Tree.png
     
    Last edited: May 16, 2019
  6. Gazebo

    Gazebo Lord of the Community Patch

    Joined:
    Sep 26, 2010
    Messages:
    17,127
    Location:
    Aquidneck Island
    Seriously, though, it's super duper awesome and humbling that VP has attracted such top modmod talent. What a world we live in! I hope that we can continue folding in features like this.
    G
     
    Gothic_Empire and TranceBlossom like this.
  7. Kars

    Kars Chieftain

    Joined:
    Feb 3, 2016
    Messages:
    14
    The promotion icons update paired with the latest UI improvements are very pleasing for the eye. A work of art, thank you!
     
  8. Kim Dong Un

    Kim Dong Un Chieftain Supporter

    Joined:
    Dec 17, 2017
    Messages:
    279
    Gender:
    Male
    Congrats @Asterix Rage! I've been enjoying this as a modmod for quite some time, but with the new UI update, is the mod "Flag Promotions (for VP/EUI)" redundant? What about "Promotion Overhaul" and "Improved City View (for VP/EUI)". Thanks G'Zebo for including this.
     
  9. civplayer33

    civplayer33 Chieftain

    Joined:
    Sep 11, 2017
    Messages:
    605
    Only the mods VPPI (Vox Populi Promotion Icons) and Promotion Tree are made redundant if you choose to install 7a and 7b with the newest version, so you should delete them; the others you mentioned are separate mods that are not included; you should be able to keep using those normally without issue.
     
    Kim Dong Un likes this.
  10. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
    "(7a) Promotion Icons for VP" replaces "VP Promo Icons" (VPPI) and is included in base VP
    Make sure to delete all versions of VPPI from your mod folder

    "(7b) UI - Promotion Tree for VP" replace all previous version of "Promotion Tree" and is included in base VP
    Make sure to delete all old versions of Promotion Tree from your mod folder

    "Flag Promotions", "Promotion Overhaul" and "Improved City View" are modmods you can copy in \MODS
    They are great and furiously compatible.
     
    Last edited: Jul 13, 2019 at 7:59 PM
  11. Kim Dong Un

    Kim Dong Un Chieftain Supporter

    Joined:
    Dec 17, 2017
    Messages:
    279
    Gender:
    Male
    Thank you both for the clarification.
     
  12. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
  13. dpshw

    dpshw Chieftain

    Joined:
    Sep 12, 2015
    Messages:
    20
    mad props for this, i love it! <3
     
  14. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
    EXTRA PROMO ICONS
    Here is what you can do with the 64 Extra Promo Icons included in (7a) Promotion Icons for VP


    with "LastSword's Khmer for Vox Populi" - https://forums.civfanatics.com/thre...izations-showcase.574461/page-2#post-15232456

    All is fine and well done with this mod by hokath
    but the promo icons !
    Like most of modmods, the promo icons are basic triangles or more and less suitable icons from the base game

    To replace triangles with new icons :

    - Look for the "xml/sql name" of promotions in LastSword's Khmer folder. "Bokator" and "Rice Farmers" are game text names

    Tip : Find "PROMOTION_" text string goes strait on it :)

    in Khmer Game Text Mod.xml :

    Khmer Game Text Mod.png

    "PROMOTION_KHMER_BOKATOR" for Bokator
    and,
    "PROMOTION_KHMER_WORKERDUMMY" for Rice Farmers


    Let's pick 2 icons :
    https://forums.civfanatics.com/attachments/extra-promo-icons-png.518650/

    and let's say Icons #9 and #45 look good

    Then open \Sid Meier's Civilization 5\MODS\Zz_Extra_Promo_Icons\Extra_update.sql (with a xml/sql editor)

    Make the change :
    Code:
    UPDATE UnitPromotions SET IconAtlas = 'extraPromo_Atlas' WHERE Type = 'PROMOTION_KHMER_WORKERDUMMY'; --     => 09
    UPDATE UnitPromotions SET PortraitIndex = '9' WHERE Type = 'PROMOTION_KHMER_WORKERDUMMY';
    
    UPDATE UnitPromotions SET IconAtlas = 'extraPromo_Atlas' WHERE Type = 'PROMOTION_KHMER_BOKATOR'; --     => 45
    UPDATE UnitPromotions SET PortraitIndex = '45' WHERE Type = 'PROMOTION_KHMER_BOKATOR';
    
    The result :

    kmer EXTRA.png
     
    Last edited: Jul 13, 2019 at 8:01 PM
    civplayer33 likes this.
  15. Cat-du-fromage

    Cat-du-fromage Chieftain

    Joined:
    Nov 17, 2018
    Messages:
    110
    Gender:
    Male
    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.

    En gros, est-ce que les icônes demandent beaucoup au jeu en terme de calcul^^?

    EDIT: i suppose the UI Panel for promotion is quite heavy^^'
     
  16. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
    The answer is No. Zero performance impact on "adding new promotion icons"
    Actually, promotion icons are not added. They are at one level bellow. When a promotion is created, it "gets" automatically a generic white triangle 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 white triangle (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 few ms.
    The game runs with a properly and nicely updated icons database. No impact

    All icons in (7a) follow this mechanics.
     
    Last edited: Jul 13, 2019 at 6:31 PM
  17. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
  18. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
  19. broken0sword

    broken0sword Chieftain

    Joined:
    May 22, 2019
    Messages:
    13
    Question: would it be possible to make this compatible with only the Community Patch and not reliant on the CBO? I would like to use this mod but at this time I only use the CP mod, not the CBO, and do not plan to change that anytime soon.

    EDIT: I scrutinized this mod's SQL files as well as the promotions XML files from both the stock game and CBO, and the game's core database "IconTexturesAtlases" table. From what I can see, it appears that there should not be any reason that this mod won't work with just CP installed. The way the SQL is written, the commands that attempt to update a promotion type that doesn't appear in the base game + exp/DLC simply won't execute because there isn't a matching field value to the WHERE clause. The IconTextureAtlases updates should work because they are simply creating new rows, not referencing anything that the CBO creates.

    Unfortunately I can't test this at the moment, as I'm at work. Will test when I get home tonight.
     
    Last edited: Jun 20, 2019
  20. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    856
    It should work partially. (Most of the icons will be properly updated)
    You'll need to delete Dependencies from .modinfo

    Since the very beginning (7a) is dedicated to VP. My only plan is to improve it and deliver more icons for VP modmods
     
    Last edited: Jul 6, 2019

Share This Page