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

> 10 yield display

Discussion in 'Civ4 - Mod Components' started by merijn_v1, Aug 2, 2019.

  1. merijn_v1

    merijn_v1 Black Belt

    Joined:
    Dec 29, 2008
    Messages:
    5,600
    Location:
    The city of the original vlaai
    Download

    In the vanilla game, the maximum amount of yield the game can display is 9. After that, the symbols that show 5x a yield are stack onto each other, hiding them behind eachother. In the vanilla game, this isn't a huge issue, as the maximum yield a tile can provide will not go that high. However, many mods have the possibility to get higher tile yields. This modcomp fixes this problem.



    Modder notes:
    - Make sure that the last slot of a yield (10th for food, 20th for production, 30th for commerce) is empty in the dds file. (The game still thinks that the 16th slot is the empty slot. I forced it to use the new empty slots when necessary)
    - GlobalDefines.xml: MAX_YIELD_STACK is changed to 10
    - CvPlot.cpp: CvPlot::updateSymbols() is changed.

    This modcomp increases the display limit to 29. (from 9) A higher yield will still have the old issue.

    A larger limit is possible, but for most mods not necessary. If desired, I can make this one too. Likely I will change the larger symbols to represent 10x yield, otherwise the symbols would be clumped together too much.

    Credits:
    Asaf - I used the nif and dds files from this project. (special thanks to f1rpo for notifying me about this project)
     
    Last edited: Aug 5, 2019
  2. keldath

    keldath LivE LonG AnD PrOsPeR

    Joined:
    Dec 20, 2005
    Messages:
    6,486
    Location:
    israel
    huh,
    well done sir!
     
  3. Imp. Knoedel

    Imp. Knoedel Stalin and Starlight, Stalling a Stallion

    Joined:
    Nov 11, 2011
    Messages:
    8,557
    Location:
    The cooler Germany
    merijn, you truly are a treasure for our community. :love:
     
    Leoreth likes this.
  4. Leoreth

    Leoreth 心の怪盗団 Moderator

    Joined:
    Aug 23, 2009
    Messages:
    33,096
    Gender:
    Male
    Location:
    Leblanc
    Good idea to make this a modcomp, and thanks again for solving this for DoC!
     

Share This Page