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

[PYTHON] ShowInfo

Discussion in 'Civ4 - Mod Components' started by enen, Mar 24, 2006.

  1. enen

    enen Chieftain

    Joined:
    Jul 19, 2004
    Messages:
    28
    ShowInfo Civilization IV Utility by eN

    1. Introduction
    ShowInfo displays various informations about the trading possibilities with non-human opponents.

    2. Installation
    Extract the archive to the Sid Meyer's Civilization IV directory (usually it's My Documents\My Games\Sid Meyer's Civilization IV).

    3. Features
    • ShowInfo displays the trading possbilities at the beginning of player's turn, and whenever the ShowInfo hotkey is pressed (Shift-I).
    • The displayed information is:
      1. Gold/GPT trade: displays the available gold (or gold per turn) that the AI has currently. Gold/GPT trade also requires that one of the partners have gold trade possibility (currency technology) and the will of the AI to trade gold/gpt.
      2. Map trade: displays the AI's willingness to trade maps. Map trade also requires that one of the partners have map trade possibility (paper technology) and the will of the AI to trade maps.
      3. Technology trade: displays the available, unavailable and sellable technologies. The available technologies are those that are discovered by the AI and they can be researched by player and the AI is willing to trade them. Unavailable techs are like available ones, only that the AI is unwilling to trade them yet. Sellable techs are those researched by player, unknown by the AI and the AI can research it. Technology trade also requires that one of the partners have tech trade possibility (Alphabet technology). For ex. Guilds can be bought/sold only if the buyer is already familiar with Feudalism AND the buyer or seller with Alphabet.
      4. Resource trade: displays the available, unavailable and sellable resources (like in case of tech trade). Resource trade also requires a trade route between the partners and the will of the AI to trade resources.
      5. Open Borders trade: displays the availability of open border treatries. Open Borders trade also requires that one of the partners have Open Borders trade possibility (Writing technology) and the will of the AI to agree on Open Borders.
      6. Peace trade: displayes the availability of peace treatries. This requires that the player be in war with the AI and the will of the AI to make peace.
      7. Worst enemy warning: the warning is displayed whenever an AI player considers the player it's worst enemy.
      8. Parallel research warning: the warning is displayed whenever one/some of the AI players are currently researching the same tech as the player.
    • The information is displayed as a text message in the message area in this form: <Opponent Name 1> is willing to trade: <trade possibility 1>, <trade possibility 2>, ... , <Opponent Name 2> is willing to trade: <trade possibility 1>, <trade possibility 2>, ... . The message is automatically displayed in the player's color (configurable) at the beginning of each turn, but can be displyed with the ShowInfo hotkey: Shift-I (currently it's not configurable). Resources and some of the trade possibilities (map, open borders and gold) can be displayed in their "icon" form (see screenshot).
    • The output information can be limited to a number of AI's and can be sorted by all columns, even multiple ones.
    • ShowInfo supports configuration file read, all options can be changed in the ShowInfo.ini file.
    4. Coming soon
    • In-game configuration.
    • Advanced display method.
    • Show alert only if the AI gained a nr. of new techs, resources, amount of gold or gpt compared to the previos n turns.
    • And many other alert types.


    See Readme for more information.

    Screenshots:

    Icons:
     

    Attached Files:

  2. enen

    enen Chieftain

    Joined:
    Jul 19, 2004
    Messages:
    28
    change log:
    • 0.4 - 27. March 2006.: colored messages, icons and a fix
      • implemented colored message display: if it's enabled the trade possibilities are displayed in the player's color (added option to enable/disable it)
      • implemented and added new option to display symbols instead of "can trade", "gold", "open borders" and "map" in messages
      • fixed a bug which caused incorrect sorting in cases when not all opponents were displayed
    • 0.3 - 26. March 2006.: quickfix
      • fixed AI's gold and GPT query: now the correct values are displayed
      • added a new option into the config file to control the player's name display
    • 0.2 - 24. March 2006.: first public release
      • added column sorting
      • added hot key support (not configurable)
      • added configuration file support
    • 0.1 - 18, March 2006.: first non-public release
      • added gold, gpt, map, tech, resource, peace, open border, worstenemy, parallel research check
     
  3. enen

    enen Chieftain

    Joined:
    Jul 19, 2004
    Messages:
    28
    reserved for future use
     
  4. TheLopez

    TheLopez Chieftain

    Joined:
    Jan 16, 2006
    Messages:
    2,525
    Location:
    Oregon
    Screenshots?
     
  5. enen

    enen Chieftain

    Joined:
    Jul 19, 2004
    Messages:
    28
    Ok, I'll post some screenshots too.

     
  6. Rabbit_Alex

    Rabbit_Alex Chieftain

    Joined:
    Oct 29, 2005
    Messages:
    597
    Location:
    Gaylord, Michigan, USA
    Nice idea.
     
  7. enen

    enen Chieftain

    Joined:
    Jul 19, 2004
    Messages:
    28
    Added a few new features and fixed some bugs. I will post the change log from now (in the second post), where all new features could be seen.
    I'll start working on in-game configuration, that may take a while. Pls post your comments/requests. Thanks!
     
  8. SimCutie

    SimCutie Chieftain

    Joined:
    Dec 10, 2005
    Messages:
    197
    Hmmm... It seems that I may help you..on. in-game configuration
    Check this file .. Your files are in CustomAssets/python/custom/
    and see difference ( based on your 0.04 version)
    Not much tested but you may figure out how to do...
    rar-compress and zipped again to save space...
     

    Attached Files:

  9. enen

    enen Chieftain

    Joined:
    Jul 19, 2004
    Messages:
    28
    Thanks a lot! I only peeked to the attached code, and it seems that's what I've been thinking on. I'll test it today and post it as soon as possible.

     
  10. enen

    enen Chieftain

    Joined:
    Jul 19, 2004
    Messages:
    28
    Sorry, I'm bit late with my development. The good news is that it seems that the utility works fine with the new patch. The bad news is that I didn't had time to finish the in-game settings feature.
    Any bugs found by someone?
     
  11. jray

    jray Chieftain

    Joined:
    Jan 31, 2006
    Messages:
    925
    Location:
    North Carolina (USA)
    Wonderful mod-- thank you!! It's a shame that this mod doesn't show up in many modpacks. Until now :cool:. I incorporated it into a new modpack that I just released:

    [MODPACK][Warlords] jrayUGH Unaltered Gameplay Hodgepodge - Development Thread

    FYI, it appears to work just fine in Warlords 2.08.

    I made a few tweaks to it inside my modpack:
    • tweaked default settings to display only buyable techs and resources, open borders, and peace (in particular, disabled notification about enemies researching the same tech you are, since I'm nervous this might be an alteration to gameplay... can we normally find out if an opponent is researching the same thing, without using a spy??)
    • added new options for toggling display of available/unavailable/sellable/unsellable techs and resources (previously it was all-or-none)
    • streamlined display to take up less space
    If you want to get just the ShowInfo component I updated to Warlords 2.08, I also have a download of just the individual components. Get that and look in the jrayShowInfo-v208a folder.
     
  12. jray

    jray Chieftain

    Joined:
    Jan 31, 2006
    Messages:
    925
    Location:
    North Carolina (USA)
    ShowInfo does seem to suffer from the same problem as HOF's MoreCiv4lerts does-- namely the tech trade information (and also resource trade info) that appears automatically at the beginning of the turn is one turn behind. I think it needs to be calculated later in the turn cycle. BUT the good news is that the hotkey <Shift>-I gives the current correct info!

    Also, the message about civs willing to make peace appears every turn during a war-- so I think that part is broken. I haven't tested the gold trade stuff much... I use Civ4lerts for that part, since it calculates diffs.

    I have lofty plans to update ShowInfo within my modpack to have in-game settings. I'll also have it a go with the one-turn-trade-delay problem if I have time.
     
  13. jray

    jray Chieftain

    Joined:
    Jan 31, 2006
    Messages:
    925
    Location:
    North Carolina (USA)
    I know enen is MIA, but in case anyone else is following this (awesome!) mod, I posted some details over in the HOF forum about the bug where trade alerts fire one turn late. (HOF shares a similar problem). Things are fine if you manually use <Shift>-I, but the automated log entries at the beginning of the turn are one turn behind.

    Screenshots and a savegame file to reproduce are over in this post. I'm hoping to address this in my next jrayUGH release, but I'll be busy for a few weeks, and I'd be thrilled if someone else beats me to it! :)
     

Share This Page