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:
    1,187
    Here is where you can tell things about (7a)
    ___________________________________________________________

    Current version: 3


    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: Dec 24, 2019
  2. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    1,187
    (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 attached 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 = '.......';
    */
    
    

    Tutorial: How to replace Promotion Icons
     

    Attached Files:

    Last edited: Sep 1, 2019
  3. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    1,187
    (7a) is in charge of all the Promotion Icons in Vox Populi base game only.

    To have new Promo Icons for Enlightenment Era for Vox Populi, copy this minimod below* in your mod folder

    Enlightenment Era for Vox Populi :
    VPEE_pi_v 1.png
    _______________________________________________________________________________
    EDIT:
    * : Minimod link deleted
    Promo Icons are now integrated in Enlightenment Era for Vox Populi (v 1.2.2)
     
    Last edited: Oct 23, 2019
  4. Enrico Swagolo

    Enrico Swagolo Deity

    Joined:
    Jun 10, 2013
    Messages:
    2,379
    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:
    1,187
  6. Gazebo

    Gazebo Lord of the Community Patch Supporter

    Joined:
    Sep 26, 2010
    Messages:
    17,848
    Gender:
    Male
    Location:
    Little Rock
    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 The One & Unly Supporter

    Joined:
    Dec 17, 2017
    Messages:
    650
    Gender:
    Male
    Location:
    Pyongyang
    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 King

    Joined:
    Sep 11, 2017
    Messages:
    965
    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:
    1,187
    "(7a) Promotion Icons for VP" replaces "VP Promo Icons" (VPPI) and is included in VP installer.
    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 VP installer.
    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: Sep 14, 2019
    Zarggg likes this.
  11. Kim Dong Un

    Kim Dong Un The One & Unly Supporter

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

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    1,187
  13. dpshw

    dpshw Chieftain

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

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    1,187
    TUTORIAL
    How to replace Promotion Icons

    Here is what you can do with 64 Extra Promo Icons included in (7a) Promotion Icons for VP
    ____________________
    To replace Icons :


    CivMod used: LastSword's Khmer for Vox Populi by hokath

    To do it with no change in the Mod, Let's use Zz_Extra_Promo_Icons.7z (Must be in your Mod folder)


    The 2 names of Promotions in LastSword's Khmer are "Bokator" and "Rice Farmers"

    • Look for the "xml/sql name" of these promotions in the LastSword's Khmer folder
    Tip : Find "Bokator" or "PROMOTION_" text strings go strait on it :)

    You'll find this file: Game Text Mod.xml in \MODS\LastSword's Khmer for Vox Populi\KhmerEmpire
    With in it :
    Khmer Game Text Mod.png

    "PROMOTION_KHMER_BOKATOR" for Bokator
    and,
    "PROMOTION_KHMER_WORKERDUMMY" for Rice Farmers
    are the 2 names that can be use in .xml or .sql files to set "Bokator" and "Rice Farmers"

    Let's pick 2 icons :
    ExtraPromo_Atlas

    Let's say Icons #3 and #59 look good

    Then open \MODS\Zz_Extra_Promo_Icons\Extra_update.sql (with a xml/sql editor)

    • Make the change in \MODS\Zz_Extra_Promo_Icons\Extra_update.sql
    (Line25 is to set Icon#2)

    Code:
    UPDATE UnitPromotions SET IconAtlas = 'extraPromo_Atlas' WHERE Type = 'PROMOTION_KHMER_WORKERDUMMY'; --     => 02
    UPDATE UnitPromotions SET PortraitIndex = '2' WHERE Type = 'PROMOTION_KHMER_WORKERDUMMY';
    
    UPDATE UnitPromotions SET IconAtlas = 'extraPromo_Atlas' WHERE Type = 'PROMOTION_KHMER_BOKATOR'; --     => 59
    UPDATE UnitPromotions SET PortraitIndex = '59' WHERE Type = 'PROMOTION_KHMER_BOKATOR';
    
    The result :
    Promotion Icons for VP.png
     
    Last edited: Sep 14, 2019
    civplayer33 likes this.
  15. Cat-du-fromage

    Cat-du-fromage Warlord

    Joined:
    Nov 17, 2018
    Messages:
    177
    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:
    1,187
    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 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 few ms.
    The game runs properly with a nicely updated icons database. No impact

    All icons in (7a) follow this mechanics.
     
    Last edited: Sep 14, 2019
  17. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    1,187
  18. 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
  19. Asterix Rage

    Asterix Rage Warlord

    Joined:
    Jun 6, 2010
    Messages:
    1,187
    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
  20. broken0sword

    broken0sword Chieftain

    Joined:
    May 22, 2019
    Messages:
    13
    So yeah, it works fine (so far), and it works with Promotion Tree. All I had to do was comment out the dependency line for VP. I am still testing and probably will be for a while. The forced dependency on VP doesn't appear to be necessary, at least not with how the mod works at this time. You did a great job in writing the SQL so that it doesn't require anything that VP creates or changes, and since there are only changes to UI icons and no LUA code in the mod, it's unlikely there will be conflicts with other mods. I'll post back if I encounter problems.
     
    Last edited: Jun 21, 2019

Share This Page