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

[UI]CivWillard

Discussion in 'Civ5 - Modpacks' started by Onni, Dec 27, 2010.

  1. Onni

    Onni Chieftain

    Joined:
    Oct 9, 2010
    Messages:
    82
    With this mod you can manage your Cities, City-states and Major Civ relationships. It kinda includes three different mods that use same structure. Lots of basic information that you need all the time is hidden in the Vanilla UI behind 2-3 screens. With this mod you can customize your own screens where you have all the info you need behind a single click. There are already many default views included for you so you don't need to create anything if you don't want to.

    The second purpose of this mod is to give you better control when something is about to happen and when you can just relax for couple turns. There are buttons with counters on them that tell you eg. when a next City-state alliance is about to expire.

    I tried to make the mod as dynamic and modular as possible so it's easy to build on it in the future. This also enabled me to give the end user much more power to optimize the mod to their liking. As no Civ core files are changed or required this mod should be compatible with any other mod.

    This mod includes DiploWillard and CityWillard. If you have those mods installed then please disable them! Got around (finally) to combine all these mods. Helps the development a lot in the future.

    • no dependencies (on other mods or core files)
    • handy button to open/close the window (right click to open options)
    • useful turn counter for the next [City event] / [City-State influence level change] / [MajorCiv deal expiration]
    • configurable big tooltip for less important info needs
    • configurable event list that helps you see the future
    • user-friendly controls for data and window management
    • City-mod: City production queue, focus and other settings can be changed using this window.
    • MajorCiv-mod: quick buying or selling of resources
    MajorCiv-mod screenshots:
    Spoiler :
    Button for showing/hiding the window. It has a tooltip that displays upcoming deal expirations.


    Window with custom stats and views.



    Big tooltip to quickly check all the related data.


    Options screen where you can customize everything.


    Window with mini-skin enabled to make it as small as possible.


    City-mod screenshots:
    Spoiler :

    Button for showing/hiding the window. It has a tooltip that displays upcoming events.


    Window with custom stats and views.


    Options screen where you can customize everything.


    Window with mini-skin enabled to make it as small as possible.



    MinorCiv-mod screenshots:
    Spoiler :




    CivWillardCheat info
    Spoiler :

    This cheat-version is meant to help other modders to study how AI is playing. This is otherwise exactly the same as CivWillard except...
    • MinorCiv-module: see all Major civilization relationships towards City-states.
    • City-module: see all Cities
    • MajorCiv-module: see unmet MajorCivs and their current research

    Troubleshooting:
    Spoiler :
    How to reset or reinstall CivWillard.
    It's not enough that you just delete and re-download the mod. Unfortunately you have to also manually delete the mod save files. Here's how to do it:
    1. Goto your mod's userdata (settings) folder: ..\My Documents\My Games\Sid Meier's Civilization 5\ModUserData\
    2. Delete the following files from this folder: CivWillardMajo-1.db, CivWillardMino-1.db, CivWillardCity-1.db
    3. Start your game. The mod should now start with all the default settings.

    Credits:
    to Afforess, killmeplease and Whys for the awesome job on the serialize & deserialize functions discussed here. :king:
    to Civfanatics users for your support and helping me make this mod better

    Version history:
    v1.0
    • added DiploWillard 6.0
    • added CityWillard 3.0
    • added new module: Major Civ diplomacy
    • added major code rewrite (possibly many bugs -> stability = beta)
    • fixed small bugs
     

    Attached Files:

  2. Onni

    Onni Chieftain

    Joined:
    Oct 9, 2010
    Messages:
    82
    Reserved for future...
     
  3. Onni

    Onni Chieftain

    Joined:
    Oct 9, 2010
    Messages:
    82
    Also reserved for future...
     
  4. Deep_Blue

    Deep_Blue Knight

    Joined:
    Aug 2, 2005
    Messages:
    750
  5. Xink

    Xink Chieftain

    Joined:
    Nov 7, 2003
    Messages:
    688
    Location:
    Earth, for now
    Great that you merged your previous two mods and combined them here. As it does not affect saved games I will have to finish my current one with your previous two mods before deleting those and swapping over to this one.
     
  6. Deep_Blue

    Deep_Blue Knight

    Joined:
    Aug 2, 2005
    Messages:
    750
    I like mods that do not affect saved games and do not change any lua files in the game.
     
  7. Seek

    Seek Chieftain Supporter

    Joined:
    Aug 7, 2010
    Messages:
    3,410
    Sweet! Citywillard hasn't worked for over a month for me:(. Civwillard is just what the doctor ordered. Thanks for this!
     
  8. Zyxpsilon

    Zyxpsilon Running Spider

    Joined:
    Oct 29, 2009
    Messages:
    2,904
    Gender:
    Male
    Location:
    On Earth
    omg... now everything is neatly wrapped up in a sturdy integrated concept -- and, the ghostly "hint" overlay has disappeared off my Top-Panel Science slot.
    Onni, simply said - you're a genius! Seriously, the legendary Civ4_BAT stuff is just not that far away from whatever additional features you'd care adding to this wonderful asset.

    But, i also need your help right here. So take a well deserved break from all your troubles and enjoy.

    EDIT:

    PS: I noticed a few small technical glitches. So you might want to correct a few xml framework values...

    1) The options "button line" goes off screen to the right of the popup (MajorCiv, IIRC)
    2) The column for CS-Types has an overlay "At WAR!" above their default ID tags (Diplo)
    3) A number of columns overlap some values & text mostly in the overview sections (City, etc)
    *) Generally speaking, an ability to control (by options such as the current height) the widths of both the main window & any of the columns would solve most issues.
    ?) Wasn't the currently city-producing items column showing an Icon too... or am i confusing this with the Vanilla City-Overview?
     
  9. Tomice

    Tomice Passionate Smart-Ass

    Joined:
    Oct 5, 2009
    Messages:
    2,286
    Location:
    Austria, EU, no kangaroos ;)
    Thanks for the added features, I really loved both of your previous mods!
     
  10. Sneaks

    Sneaks Brooklyn Bum

    Joined:
    Oct 15, 2010
    Messages:
    1,877
    Location:
    NYC
    Love this mod so hard.
     
  11. civ5crazy

    civ5crazy Chieftain

    Joined:
    Sep 21, 2010
    Messages:
    33
    Location:
    Edmond, OK
    i seem to be having a problem the production icons do not show up anyone else with this problem?
     
  12. maus

    maus Chieftain

    Joined:
    Aug 31, 2006
    Messages:
    22
    Location:
    Kansas
    Started using this today, absolutely loving it. It's replaced a whole lot of time-consuming stuff I used to do in Excel. The only data that I think is missing would be total tile yields for a city's territory- it would be a good way to see what cities need improving or where to specialize.

    Anyway, great UI mod!
     
  13. Grathocke

    Grathocke Marquis

    Joined:
    Dec 19, 2009
    Messages:
    235
    Gender:
    Male
    Location:
    New Orleans, Louisiana, USA
    I've been using the various iterations of this mod since the beginning and it is one of those "I've got to have" types of mods. Your latest is the best yet. Thanks for all the hard work.
     
  14. Montov

    Montov Chieftain

    Joined:
    Oct 18, 2010
    Messages:
    707
    Same here. :)

    And especially the feature to request a OB or RA is awesome. I will have a look into it how it's coded, because that is opening a lot of possibilities for other mods.

    The import of old views is really time consuming. :)

    I've played a bit, and I have the following requests:
    - For the majorcivs, can you add a column with the logo/image of the civ for better identification? Or maybe color the names of the civs in the correct color. (robk's InfoAddict already uses the icon/colors so I assume it is usable in the overview also.)
    - Some deals cover 2 lines in the mouse-over, when you point the mouse on the number of deals. Can you make a indentation/tab for the second line?
    - Sometimes there are a lot of resources, too much to fit in a column. I think truncating it and display it in a mouse-over would be neater.
    - And a request for the city states: there is only 1 event showing when hovering above the button. Can you add an option just like for the cities to show the first number of events of expiring city state status?
     
  15. Tomice

    Tomice Passionate Smart-Ass

    Joined:
    Oct 5, 2009
    Messages:
    2,286
    Location:
    Austria, EU, no kangaroos ;)
    Happy new year everyone!

    I also have the "production icon not showing" bug. It worked in CityWillard before.

    Also, when you create custom views in CityWillard, If you want to e.g. add the fifteenth element, the position is already so low in the left column, that you can't select some options for this field. Half of the menu is outside/below the screen. Hope this is understandable? My resolution is 1280x800.
     
  16. alpaca

    alpaca King of Ungulates

    Joined:
    Aug 3, 2006
    Messages:
    2,322
    Hi Onni,

    great mod. The trade overview in particular is extremely useful :goodjob:

    One small suggestion: Could you steal the esc and enter keys when one of your pop-ups is open and exit on them? The "close" button is tiny :lol:

    Just add a ContextPtr:SetInputHandler( InputHandler ) and check for

    function InputHandler( uiMsg, wParam, lParam )
    if uiMsg == KeyEvents.KeyDown and (wParam == Keys.VK_ESCAPE or wParam == Keys.VK_RETURN) then
    --close
    end
    end
     
  17. Onni

    Onni Chieftain

    Joined:
    Oct 9, 2010
    Messages:
    82
    Happy new year everybody and thanks for your encouraging words. :)

    Sorry to hear that. I'll add to the OP a little troubleshooting guide with instructions on how to reset the mod.


    1) The idea was to let people use the mini-skin if they wanted to create small windows. So that's why I haven't got around to fix the options button on small default-skin-windows.
    2) This propably happens with the default short-city-state-name? Normally it's shortened so that it wouldn't overlap the traits. But when you are at war with them then the "at war" tag is placed at the end of the name. I'll fix it for the next version.
    3) Controlling the windth for any column has been on my todo list for a long time. Hopefully someday I will get around to do it?
    ?) City-production-icon missing is a bug. I'll fix it for the next version.


    Do you mean a value where e.g. all the production yields for all tiles in a single city would be added together? Could you please give me an example how you would use this value?

    Anyway, great pic! ;)


    -Major Civ log/image is in my todo list. I had my doubts about the coloring regarding readability. Possibly to add an option button to toggle the Civ coloring. Actually I should re-think the whole options page. :mischief:
    -It's on my todo list to re-think the main button mouse-overs.
    -I think it's important to see the total status of resources for all Civs in a single glance. I did create two versions for all the resource columns (normal & long) to help out with this problem.
    -Good point. I'll change it and show all the events in the mouse over for city-states too.


    That's unfortunate. For the next version I'll change the position for the options screen to be at the top of the window instead of center. That should hopefully fix it.


    Problem is that people might want to keep some CivWillard windows open all the time. There is already an option to assign your own key to toggle the windows. I'll see in the future if I'll add an option to assign a "close only key" too (which would propably be esc by default)?
     
  18. Tomice

    Tomice Passionate Smart-Ass

    Joined:
    Oct 5, 2009
    Messages:
    2,286
    Location:
    Austria, EU, no kangaroos ;)
    I have CityWillard on a mouse button (logitech G9). It's awesome how fast you can check some infos in whichever screen you are! :) Thx for this feature!
     
  19. Montov

    Montov Chieftain

    Joined:
    Oct 18, 2010
    Messages:
    707
    Good point about the coloring. Probably the civs logo is enough.

    Is it also possible to include yourself in the list of majorview? It gives a good comparison in 1 view of your standings against the AI, like the score, gold, amount of Allied CS, # of Friends, etc. Of course, some columns like RA, OB are useless and can stay empty.

    And regarding civs at war, when a enemy is ready for negotiations, you can view basically all the info (gold, resources, ...) but is is not visible in the overview. Is there a way to check to see if an civ at war is ready to negotiate peace?

    Yeah, now you have separate options for each view, but I only use 1 set of options for all the views...

    Ok, I will check it out. :)

    1 final suggestion: with the miniskin the 4 small buttons are on the left, and when changing a view, the buttons move because of a different width. This makes toggling views very slow because of the moving buttons. Do you think it's a good idea to have it placed right above the window, in the center of the window?
     
  20. Sneaks

    Sneaks Brooklyn Bum

    Joined:
    Oct 15, 2010
    Messages:
    1,877
    Location:
    NYC
    Asking permission to use your mods in a new CCMAT build.
     

Share This Page