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

Info Addict

Discussion in 'Civ5 - Mod Components' started by robk, Oct 12, 2010.

  1. robk

    robk Chieftain

    Joined:
    Sep 8, 2006
    Messages:
    210
    Location:
    Santa Monica, CA
    Info Addict v14 is now available. This update includes more language translations and speed improvements (hopefully 20 times faster!) when saving data at the end of the turn.

    Note: Because of the change with the way data is saved, this version is not compatible with previous versions of Info Addict. I recommend you upgrade the mod in between games so you don't lose your data in the middle of a game.

    Special thanks goes out to Delta187 for the German translation and Rual for the Spanish translation. :goodjob:

    I wasn't able to completely test the changes by running through long games (autoplay still busted :aargh:) but I did enough partial tests that I'm confidant the changes are OK. If it turns out that something else seems off, I'll try to jump on it as quick as I can.

    Spoiler mod integrators: file changes and additions to v14 :
    Code:
    M      /InfoAddict/InfoAddictReadMe.txt
    A      /InfoAddict/XML/InfoAddictText_ES.xml
    A      /InfoAddict/XML/InfoAddictText_DE.xml
    D      /InfoAddict/Lua/SaveUtils.lua
    M      /InfoAddict/Lua/InfoAddictHistoricalData.lua
    M      /InfoAddict/Lua/InfoAddictDataManager.lua
    M      /InfoAddict/Lua/InfoAddictLib.lua
    M      /InfoAddict/InfoAddict.civ5proj
    
     
  2. Pouakai

    Pouakai It belongs in a museum. Moderator

    Joined:
    Jun 16, 2010
    Messages:
    7,149
    Location:
    Aotearoa
    So wait, is it not compatiable with v13?
     
  3. Mentos

    Mentos Prince

    Joined:
    Sep 29, 2010
    Messages:
    377
    Wow, I’ve never thought InfoAddict has been such a performance killer. Here a test-result on my mediocre rig using the same Huge map but different starts:

    Seconds/turn (only the first few ones)

    NoMods: 5s
    v13: 30s
    v14: 8s

    That’s an incredible improvement!
    I don’t do games on any larger maps than Tiny anymore since I’ve started modifying the game, that’s why I’ve never really paid attention to such a difference.

    Well done! :goodjob:

    PS: May I sue you for wasting my lifetime before? :p
     
  4. robk

    robk Chieftain

    Joined:
    Sep 8, 2006
    Messages:
    210
    Location:
    Santa Monica, CA
    @Pouakai: Yep, it is incompatible unfortunately. I had to make a major change to the underlying date structure and making it compatible would have made the performance even worse.

    @Mentos: Haha, sue away! Since you're modding, any chance you're running the fire tuner? I'm really curious to see what the performance information that I'm spitting out to the console is saying. It should tell you how long it takes to actually save the data and how long it takes to read it into memory.

    Actually, if anyone wants to help me out, I'd love to check out a file from you that let's me look at that performance info myself. Once you open a game, a file gets dropped down to:
    Documents\My Games\Sid Meier's Civilization 5\cache\Civ5SavedGameDatabase.db

    If you can send me that file by attaching it to a post here, I would appreciate it. You can also PM me and I'll send you an email address that you can email that to. A few people sent me their saved game files but I don't have all the DLC content and that prevents me from extracting this particular file myself.

    In case you're curious, this is the info that I save in there regarding performance:

    Loading InfoAddict Data Manager
    InfoAddict Version: 14
    Game Version: 1.0.1.275 (223483)
    Start Turn: 0
    Updating the historical data table with 1 turns took 0.014s to complete (1 queries).
    Total time to build political view: 0.004s
    Saving player stats took 0.011s to complete (4 inserts).
    Updating the historical data table with 1 turns took 0.016s to complete (1 queries).
    Total time for DrawGraph(score): 0.001s
    Total time to build political view: 0.004s
     
  5. Mentos

    Mentos Prince

    Joined:
    Sep 29, 2010
    Messages:
    377
    I haven't done a long session yet. Here a log from the first 6 turns, huge Earth map with default settings. After 3 turns, I cheated myself Satellite Tech together with the "Satellites Reveal Cities" mod. That made me meet all CS and Civs. Afterwards, I did 3 further turns.

    Spoiler :
    InfoAddictDataManager: INFO: Loading InfoAddict Data Manager
    InfoAddictDataManager: INFO: InfoAddict Version: 14
    InfoAddictDataManager: INFO: Game Version: 1.0.1.275 (223483)
    InfoAddictDataManager: INFO: Start Turn: 0
    InfoAddictDataManager: INFO: Updating the historical data table with 1 turns took 0.014s to complete (1 queries).
    InfoAddictCivRelations: INFO: Total time to build political view: 0.005s
    ...\MODS\Tech - Satellites Reveal Cities (v 2)\LUA\TechSatellitesRevealCities: This is the 'Tech - Satellites Reveal Cities' mod script.
    ProductionPopup: AdvisorControl could not be found
    TechPopup: AdvisorControl could not be found
    InfoAddictDataManager: INFO: Saving player stats took 1.581s to complete (12 inserts).
    InfoAddictDataManager: INFO: Updating the historical data table with 1 turns took 0.018s to complete (1 queries).
    InfoAddictCivRelations: INFO: Total time to build political view: 0.004s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.004s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.001s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.003s
    InfoAddictDataManager: INFO: Saving player stats took 1.287s to complete (12 inserts).
    InfoAddictDataManager: INFO: Updating the historical data table with 1 turns took 0.022s to complete (1 queries).
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.001s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.003s
    InfoAddictDataManager: INFO: Saving player stats took 1.456s to complete (12 inserts).
    InfoAddictDataManager: INFO: Updating the historical data table with 1 turns took 0.02s to complete (1 queries).
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.001s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.003s
    InfoAddictDataManager: INFO: Saving player stats took 1.288s to complete (12 inserts).
    InfoAddictDataManager: INFO: Updating the historical data table with 1 turns took 0.024s to complete (1 queries).
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.001s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.003s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.001s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.003s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.001s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.003s
    ...\MODS\Tech - Satellites Reveal Cities (v 2)\LUA\TechSatellitesRevealCities: cities are visible
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.001s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.01s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, Greetings, stranger! I am Harald Bluetooth, ruler of the Danes. Do you like my Longship? It has crushed a thousand of my enemies.
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, Welcome! Rome is honored by your presence.
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, Greetings, Stranger! I am Pachacuti, Pachacuti of the Incans. How honored you must be to meet us.
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, Greetings. I am the god Ramesses, I am the living embodiment of Egypt, the father and mother of all civilizations.
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, I am Nebuchadnezzar of Babylon. Those fools outside say I'm a god, but that seems unlikely. Who are you?
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, In truth, the heavens have smiled upon us for leading us into your august presence. How may we serve you?
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, Greetings, Stranger. I am Hiawatha, speaker for the Iroquois. We seek peace with all but we do not shrink from war.
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, On behalf of the great German people, I bid you welcome!
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, Greetings, Stranger! I am Suleiman, leader of the Ottomans! Let us feast to celebrate this grand occasion!
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, Welcome, Stranger. Gape in awe at my power and majesty!
    CityStateGreetingPopup: AdvisorControl could not be found
    LeaderHeadRoot: Handling LeaderMessage: 0, Ah. We meet at last. I am Napoleon, Emperor of France. Come: let us discuss the division of the world between our two great nations.
    CityStateGreetingPopup: AdvisorControl could not be found
    InfoAddictDataManager: INFO: Saving player stats took 1.399s to complete (12 inserts).
    InfoAddictDataManager: INFO: Updating the historical data table with 1 turns took 0.025s to complete (1 queries).
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.019s
    ...\MODS\Tech - Satellites Reveal Cities (v 2)\LUA\TechSatellitesRevealCities: cities are visible
    InfoAddictDataManager: INFO: Saving player stats took 1.273s to complete (12 inserts).
    InfoAddictDataManager: INFO: Updating the historical data table with 1 turns took 0.032s to complete (1 queries).
    DiscussionDialog: Handling LeaderMessage: 14, Ah, it's always nice to see my favorite city-state again. :D
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.002s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.018s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.012s
    InfoAddictHistoricalData: INFO: Total time for DrawGraph(score): 0.003s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.011s
    ...\MODS\Tech - Satellites Reveal Cities (v 2)\LUA\TechSatellitesRevealCities: cities are visible
    InfoAddictCivRelations: INFO: Total time to build political view: 0.019s
    InfoAddictCivRelations: INFO: Total time to build political view: 0.02s
    InfoAddictCivRelations: INFO: Total time to build economic view: 0.028s
    InfoAddictCivRelations: INFO: Total time to build attitude view: 0.031s
     
  6. robk

    robk Chieftain

    Joined:
    Sep 8, 2006
    Messages:
    210
    Location:
    Santa Monica, CA
    @Mentos: Cool, thanks for posting that. How do the saving stats look on a 22 player game, if you don't mind me asking you to do a little work? You don't have to do any revealing because all civ stats are saved regardless of who you've met. Revealing civs only affects the graph generation and those are really damn fast on both our systems.

    I'm also kinda surprised at the difference between our systems ... maybe my desktop is just faster than most and that's why I didn't notice the terrible performance in v13. Here are the saving stats from a 22 player game I just fired up:
    Saving player stats took 0.047s to complete (22 inserts).
    Updating the historical data table with 1 turns took 0.015s to complete (1 queries).
    Saving player stats took 0.058s to complete (22 inserts).
    Updating the historical data table with 1 turns took 0.015s to complete (1 queries).
    Saving player stats took 0.051s to complete (22 inserts).
    Updating the historical data table with 1 turns took 0.015s to complete (1 queries).

    When I was testing v13, I was getting save times in the 1s range for large player games but, based on your logs, you would see something in the 20-30 seconds range, which matches what you said about v13 in your other post. Yuck! :suicide:
     
  7. Pouakai

    Pouakai It belongs in a museum. Moderator

    Joined:
    Jun 16, 2010
    Messages:
    7,149
    Location:
    Aotearoa
  8. Snerk

    Snerk Smeghead

    Joined:
    Jan 16, 2006
    Messages:
    6,306
    Location:
    Norway. You'll never leave
    A small niggle I have with this mod is that I wish it would open on the global relations page instead of the graphs. I never use the graphs as it feels kinda wrong to have access to that amount of data. But the global relations page is all kinds of awesome and I use it all the time.
     
  9. basmannen

    basmannen Chieftain

    Joined:
    Mar 23, 2011
    Messages:
    112
    Gender:
    Male
    Location:
    Sweden
  10. Valkrionn

    Valkrionn The Hamster King

    Joined:
    May 23, 2008
    Messages:
    14,450
    Location:
    Crestview FL
    So far that's only confirmed for the end of the game, whereas InfoAddict works during the game.
     
  11. SS-18 ICBM

    SS-18 ICBM Oscillator

    Joined:
    Mar 5, 2006
    Messages:
    15,226
    Location:
    Here and there
    Do I have do anything else after downloading the mod? I did that and I can't seem to use Info Addict on the new game I started right after.
     
  12. Pouakai

    Pouakai It belongs in a museum. Moderator

    Joined:
    Jun 16, 2010
    Messages:
    7,149
    Location:
    Aotearoa
    You activated it, right? If so, it should be under the Diplomacy Corner thing, where the 'Diplomacy Overview, Military Overview, Demographics etc.' are
     
  13. SS-18 ICBM

    SS-18 ICBM Oscillator

    Joined:
    Mar 5, 2006
    Messages:
    15,226
    Location:
    Here and there
    I've already checked that button quite a few times.
     
  14. basmannen

    basmannen Chieftain

    Joined:
    Mar 23, 2011
    Messages:
    112
    Gender:
    Male
    Location:
    Sweden
    For some reason it doesn't show any graphs or diplomacy thingamajigs for me.

    The graphs say, "no data available" or some thing like that and the screen that's supposed to show lines between the countries simply doesn't show anything. :confused:
     
  15. Pouakai

    Pouakai It belongs in a museum. Moderator

    Joined:
    Jun 16, 2010
    Messages:
    7,149
    Location:
    Aotearoa
    I'm also getting no data on the Global Relations page
     
  16. Baleur

    Baleur Chieftain

    Joined:
    Jul 9, 2010
    Messages:
    526
    Location:
    Qingdao, China
    This is 100% compatible "out of the box" with the latest Thal's Unofficial patch + balance right?
     
  17. Seek

    Seek Chieftain Supporter

    Joined:
    Aug 7, 2010
    Messages:
    3,410
    Yup!:)
     
  18. robk

    robk Chieftain

    Joined:
    Sep 8, 2006
    Messages:
    210
    Location:
    Santa Monica, CA
    Are you patched up to the latest version of the game (1.0.1.275)? You would probably be getting missing data if you're on an older version since it doesn't have the save file database that Info Addict is using these days.
     
  19. basmannen

    basmannen Chieftain

    Joined:
    Mar 23, 2011
    Messages:
    112
    Gender:
    Male
    Location:
    Sweden
    Yes everything should be correct (Steam downloads the latest patch right?).

    I tried deleting all my mods and downloading them again, now the relationship screen works but the graph page still says "No data available" or something like that...
     
  20. robk

    robk Chieftain

    Joined:
    Sep 8, 2006
    Messages:
    210
    Location:
    Santa Monica, CA
    @basmannen: This may sound like a goofy question: do you go into the advanced set up screen at the beginning of a game and make changes to the civs on the left side of the screen? I just found a bug where doing that can prevent data from being recorded. It'll be fixed in the next version.

    Also, have you tried Info Addict by itself to see if it works? You should start seeing historical graphs after the first few turns (for yourself, at least).
     

Share This Page