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

Techs Add Commerce

Discussion in 'Civ4 - Mod Components' started by LyTning94, Dec 9, 2010.

  1. LyTning94

    LyTning94 Dragonborn

    Joined:
    Nov 10, 2010
    Messages:
    397
    Location:
    Skyrim
    Techs Add Commerce
    Download Here

    Download Edited Source Files Here


    This mod allows technologies to increase the commerce output of all cities controlled by the player who has researched the tech. For this reason +2 research from technologies is much more potent than +2 research from from a building, because if you have, for instance, ten cities, you will actually be getting a bonus of 20 research total.

    The commerce changes take effect in alll cities immediately after researching the technology, and will also affect any future cities built or captured by that civilization.

    The change has also been updated in the City Screen, Civilopedia, and the Tech Tree.

    The new XML Tag used to add commerce increase to a tech is identical to the <CommerceChanges> tag in Civ4BuildingInfos.xml (see example below). Because of the tag order in the schema, the tag must always be added last, following the <Button> tag.

    Tag Example:

    Code:
    <TechInfo>	
            <Type>TECH_MYSTICISM</Type>
    	...
    	<Button>,Art/Interface/Buttons/TechTree/Mysticism.dds,Art/Interface/Buttons/TechTree_Atlas.dds,4,11</Button>
    	<CommerceChanges>
    		<iCommerce>0</iCommerce>
    		<iCommerce>0</iCommerce>
    		<iCommerce>2</iCommerce>
    		<iCommerce>0</iCommerce>
    	</CommerceChanges>			
    </TechInfo>
    
    
    (This example would add +2 culture to Mysticism)

    In regards to the text entries, all five languages are present, but I can only guarantee accuracy in the English entry. If someone notices an error in an entry, please make me aware so I can correct it.

    Some screenshots:

    Spoiler :
    Civilopedia



    The Tech Tree



    And the city screen




    All changes in the source files are marked with "XML Tag: CommerceChanges" comments.
     
  2. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    31,226
    Location:
    DE/NL/FR
    Nice to see that it worked :goodjob:.
    Might be useful for some mods :yup:.


    Unrelated: You should better put your files into the download database, they then don't count to your attachement space (but wait 2 days, so that they don't need approval).
    Oh, and add an example screenshot please :).
     
  3. LyTning94

    LyTning94 Dragonborn

    Joined:
    Nov 10, 2010
    Messages:
    397
    Location:
    Skyrim
    I apologize for any issues anyone might have had with my mod. I fixed the problem and updated the files, so it should be working now.

    Thanks for the advice :)
     
  4. topsecret

    topsecret Believer

    Joined:
    Feb 11, 2010
    Messages:
    3,500
    Gender:
    Male
    Location:
    Headquarters
    Add a link in your file to this thread...
     
  5. LyTning94

    LyTning94 Dragonborn

    Joined:
    Nov 10, 2010
    Messages:
    397
    Location:
    Skyrim
    Done. Thanks :)
     
  6. BlueTemplar

    BlueTemplar Prince

    Joined:
    May 14, 2006
    Messages:
    383
    Cool, like the commerce techs from SMACX, but more powerful.
     
  7. Voyhkah

    Voyhkah Political Activist

    Joined:
    Apr 25, 2009
    Messages:
    1,444
    Location:
    Earth
    I would really appreciate the source, so someone could use it as a true modcomp.
     
  8. topsecret

    topsecret Believer

    Joined:
    Feb 11, 2010
    Messages:
    3,500
    Gender:
    Male
    Location:
    Headquarters
    There you go ;)
     

Share This Page