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

Female Modern Soldiers ModComp

Discussion in 'Civ4 - Mod Components' started by SaibotLieh, May 18, 2010.

  1. SaibotLieh

    SaibotLieh Chieftain

    Joined:
    Sep 25, 2009
    Messages:
    1,446
    Female Modern Soldiers ModComp

    This modcomp adds the chance that each time a SAM-Infantry, Marine or Paratrooper is build, some or maybe all the soldiers will be female. The value of the chance depends on the civic Emancipation. If the civilisation has emancipation, the chance is 50% per soldier. Otherwise, the chance is 15%. The unit is always led by the gender that has more soldiers.
    Because the female soldiers have the same attributes as the original male ones this modcomp doesn't alter the gameplay in any way, it's just pure eye candy. In order to keep the civilopedia clean, the new units won't appear in it. However, you can see that this modcomp works by checking the SAM-Infantry, Marines or Paratroopers. If there is are three new entries 'Replaced by (itself)' the modcomp works.

    Images:

    Note that the images don't show the units how they'll appear in the game. The real units still consists of 3 soldiers. The images show only 2 soldiers each in order to make it easier to compare the female and the male model.
    Spoiler :







    Now for the more technical details:

    This modcomp is mostly modular. However, there are some files that can't be made modular. These files are three python files (CvEventManager, CvPediaUnit, CvPediaMain) and two xml files (Audio3DScripts and AudioDefines). The changes in the python files can be found by searching for 'saibotlieh', the changes in the xml files can be found near the buttom of the files (lines 22861-23005 and lines 10979-11013). Further there is a sound folder with custom sounds that must be placed direct into the base mod Assets folder.
    All files in the zip-file are already put into the necessary folder, unzipping it directly in the Mods folder of BtS should result into a working mod.
    The python functions is written in a way that all units that have similiar named mixed unit counterparts are targets. For example, the existence of the Unit_Mixed_Marines makes the Unit_Marines a target. So, if it is desired to add female soldiers for other units to this modcomp, this is possible by just naming the new units accordingly. For example, if female soldiers should be added to the Infantry units, three new units have to be created. The first one has to be named UNIT_MIXED_INFANTRY and consists of 2 male and 1 female soldier. The next unit has to be named UNIT_MIXED_INFANTRY12 and consists of 1 male and 2 female soldier. The final unit has to be named UNIT_MIXED_INFANTRY03 and consists of 3 female soldier. Compare one of the already present units in the XML files for details.
    The units are made in a way that they still use the original units skins for the uniforms. Thus, they can be used with reskinned units with no problems. Just exchange the original units .dds file with the modified one.
    This modcomp is written in and tested for BtS 3.19.

    If you are using my Native Amazon modcomp or my Female Great People modcomp with this modcomp:

    - The python files in the Screens folder don't need to be changed.
    - Most of the sound files are the same, they can be overriden if asked for.

    Download link: http://forums.civfanatics.com/downloads.php?do=file&id=14796

    Credits/Thanks

    - The_J for his 'Invisible dummy techs' mod that I've modified to fit to my needs.
    - God-Emperor for the idea to use the Civilopedia entry for turning the units invisible.
    - Ploeperpengel's 'female sound animations' was my starting point for my animation sounds.
    - The_Coyote for teaching me how to shader units & leaderheads
    - All the writers of the tutorial section and helpful people in the forums. Without those, I'd never have learnt how to mod in the first place.
     
    Last edited: Nov 21, 2016
  2. SaibotLieh

    SaibotLieh Chieftain

    Joined:
    Sep 25, 2009
    Messages:
    1,446

Share This Page