[UI]CityWillard - Easy City management

Onni

Chieftain
Joined
Oct 9, 2010
Messages
82
This mod has been merged with CivWillard. Please disable this one and use that in the future...

With this mod you can manage your Cities and see their data in an easy single screen. You will have a handy small button on your screen to open it at any time. Button even keeps you informed when your production or any other event is about to be due.

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.

  • 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 production or any other event
  • 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 production queue, focus and other settings can be changed using this window.
Button for showing/hiding the window. It has a tooltip that displays upcoming events.
attachment.php


Window with custom stats and views.
attachment.php


Options screen where you can customize everything.
attachment.php


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


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:
v3.0
  • added multi-line event tooltip for the main button that can be customised
  • added better options statistic selection dropdowns
  • added new statistics(unhappiness, net happiness, all specialists in one stat, per-turn-stats with decimals)
  • added custom hotkey to open/close the main window
  • fixed big tooltip staying in city view
  • fixed population growth event in 1 turn removed when avoid growth on
  • fixed names truncated too early
  • fixed when creating empty view the view is not changed
  • fixed starvation is now shown correctly
  • fixed trade route income stat name changed to trade route income(potential)
  • fixed faster options screen
v2.0
  • added option to use mini-skin
  • added configurable big tooltip
  • added ability to create and rename views
  • added all options are saved individually for every view
  • added right clicking the main button opens options
  • added new stats(connected by, garrisoned unit, happiness, WeLoveTheKingDay)
  • added shorter names for cities and production
  • fixed avoid growth
  • fixed big production turns for wealth and research
  • fixed better window positioning
  • fixed scrollbar not always showing
v1.0
  • initial version
 

Attachments

  • CityWillard_overview.jpg
    CityWillard_overview.jpg
    31.1 KB · Views: 20,954
  • CityWillard_miniskin.jpg
    CityWillard_miniskin.jpg
    14.9 KB · Views: 20,632
  • CityWillard_bigtooltip.jpg
    CityWillard_bigtooltip.jpg
    25.7 KB · Views: 281
  • CityWillard_options_640.jpg
    CityWillard_options_640.jpg
    56 KB · Views: 20,396
  • CityWillard_events.jpg
    CityWillard_events.jpg
    27.5 KB · Views: 20,651
  • CityWillard_stats.jpg
    CityWillard_stats.jpg
    42.2 KB · Views: 558
  • CityWillard (v 3).zip
    CityWillard (v 3).zip
    29 KB · Views: 452
  • CityWillardCheat (v 3).zip
    CityWillardCheat (v 3).zip
    28.9 KB · Views: 205
Just like the City states version: excellent. Really flexible, and able to open a city by clicking on it (maybe the new patch also made that work in the existing city screen, I haven't checked). But that existing screen is now worthless. :D

One minor issue i've seen so far: When you are at the option-tab, the other tab is called "City states", instead of "Cities".

Question, are the settings of the columns saved within a game, or does the configuration also applies for new/other games?

As a feature request, I would love to be able to rename the views, and it would be awesome if the number of views also were configurable.

Keep up the good work.
 
Question, are the settings of the columns saved within a game, or does the configuration also applies for new/other games?

As a feature request, I would love to be able to rename the views, and it would be awesome if the number of views also were configurable.
Configuration also applies for new/other games.

Renaming views at least is coming at some point. I was planning to have couple ready made views that you can always reset and then give couple more custom ones that are all user defined.
 
Found another minor issue, it is also visible on your screenshot:
http://forums.civfanatics.com/attachment.php?attachmentid=269842&d=1287816861

The Hammer-Icon is not properly aligned, it touches the column to the left, and has double the spacing at the right.

I did almost complete copy&paste from the standard City list with that stat. Have to adjust it a bit later. For me that production icon solution seemed always as a bad idea. I could newer remember which icon represented which production item so I always ended up mousing over all of them. :(
 
Very nice, I like both your mods.:goodjob:

A request if your looking for columns to add
- connected by road to capital (ie trade network)
- connected by rail to capital (ie receiving production boost)
- garrisoned unit

Of course, if you're feeling keen, a table showing buildings built in each city....:crazyeye:

Also, I had a small problem with re-sizing the window.
I made the window bigger (420 -> 800) but forgot to move it.
This caused the bottom of the window to disappear off the bottom of the screen. (which contains the 'option' button:eek2: ) I ended up deleting the file in the MODUSERDATA folder to get it back.
 
A request if your looking for columns to add
- connected by road to capital (ie trade network)
- connected by rail to capital (ie receiving production boost)
- garrisoned unit

Of course, if you're feeling keen, a table showing buildings built in each city....:crazyeye:

Also, I had a small problem with re-sizing the window.
I made the window bigger (420 -> 800) but forgot to move it.
This caused the bottom of the window to disappear off the bottom of the screen. (which contains the 'option' button:eek2: ) I ended up deleting the file in the MODUSERDATA folder to get it back.
I'll try to get those stats into the mod in the near future. Have to think about the building list thou? Maybe in the far future?

You can reset all your setting by deleting the CityWillard-1.db file in your \My Documents\My Games\Sid Meier's Civilization 5\ModUserData folder. I'm planning to make this resetting easier and also enable people to place that City-list screen at the bottom of the screen.

Per city maintenance cost would be great as well!
Per city maintenance cost is already in the mod ("Building maintenance").
 
For me that production icon solution seemed always as a bad idea. I could newer remember which icon represented which production item so I always ended up mousing over all of them. :(

I'm starting to recognize the icons, after so many hours.
But now I'm usng the name of the production item, but it does have a lot of room at the left, or is it reserved space for longer names of production builds?

I did see another minor issues in your mod:
When I clicked AG for a captured city I was razing, I noticed it applied it to my capital. http://forums.civfanatics.com/images/smilies/confused.gif

I also like to use a small height for the screen, but when there are more cities that fit the screen, there is no scrollbar (same applies to your city states screen).
Also, because of the adjusted height, it's difficult to move the window to the exact place I want, because with selecting the city-tab after moving, the width and height of the screen is different. Can you adjust it to display the city-tab while moving?

Final suggestion: when building wealth (in a , it displays the max integer as turns to build. And also 'normal' long builds, requiring thousands of turns. I think it should display a maximum of 99, just like the current view.
 
Version 2.0 is now available.

v2.0
  • added option to use mini-skin
  • added configurable big tooltip
  • added ability to create and rename views
  • added all options are saved individually for every view
  • added right clicking the main button opens options
  • added new stats(connected by, garrisoned unit, happiness, WeLoveTheKingDay)
  • added shorter names for cities and production
  • fixed avoid growth
  • fixed big production turns for wealth and research
  • fixed better window positioning
  • fixed scrollbar not always showing

I was trying to create such a view that you could keep open all the time. The "mini-skin" keeps the window at minimum size. The "big tooltip" should give you more than enough data that you don't normally need, but might want to quickly check once in a while. Also using the shorter version of city and production names should save some space.
 
I activated this today with the new version, and it's pretty awesome! Even more impressive than the diplo mod. I can't believe how much functionality you've crammed in there already.
 
That miniskin is awesome. And the configurable views are great.
I did see some little bugs in it (nothing blocking), I will list the ones I encountered (later this day, when I have a little more time), together with some small new feature-requests.

But I have to tell you, I love to see an AI-screen of this kind, which lists all the properties of the AI (amount of gold, resources to trade, resources needed which I have, number of cities, Open Borders yes/no, running research agreement with me or others, attitude, demographics, etc, etc). That would really bring diplomacy alive.
 
Thank you for you kind words. :) Even if you do these mods mainly to please yourself, it's good to hear you are not alone. ;)

I did see some little bugs in it (nothing blocking), I will list the ones I encountered (later this day, when I have a little more time), together with some small new feature-requests.
Keep the bug-reports coming and I'll try to fix them in the future.

But I have to tell you, I love to see an AI-screen of this kind, which lists all the properties of the AI (amount of gold, resources to trade, resources needed which I have, number of cities, Open Borders yes/no, running research agreement with me or others, attitude, demographics, etc, etc). That would really bring diplomacy alive.
I think you are referring to the DiploWillard? I mean I have planned to do a new DiploWillard-page that would focus on MajorCiv diplomacy instead of City-states. You have very good suggestions there, but it might take some time before that kind of a major change will come?
 
Thank you for you kind words. :) Even if you do these mods mainly to please yourself, it's good to hear you are not alone. ;)


Keep the bug-reports coming and I'll try to fix them in the future.

The big tooltip stays on screen when you open the city view clicking on the cityname, and it blocks the right hand side of the screen without the possibility of removing it. When you move your mouse during or right after clicking the cityname it doesn't get in the way, it only happens when you hold the mouse still when clicking.
Maybe just removing the big tooltip when clicking the city name will solve that.

As for the shortened city names, some cities are truncated too early. Karakorum is Karakoru.. My renamed city Riverfront is truncated as Riverfron..
I think that extra letter is shorter then the two dots. ;)
Also, normal cities don't have a picture/symbol before the name, so it could be longer then a capital, puppet or captured city.

I noticed all the food, production, science and culture is in whole numbers, while usually decimals are being used and shown in the city screen. I don't know if it would be a good idea to change that, because displaying whole numbers makes the overwiew more .. relaxed. The decimals can be a bit chaotic, but I just wanted to mention it.

Last issue is the empty tooltip when you hover above the 4 options. Well, I believe it is an empty tooltip anyway.

A couple small feature requests:
- A column displaying the number of unhappiness a city generates (based on city, pop, captured, policies, Forbidden palace, etc. Maybe have an additional column for the net amount of happiness (happy minus unhappy)
- Displaying the production item when the button displays "<hammer> 3 turns for cityname", like "<hammer> 3 turns for cityname (Worker)"
The same with pop growth, where you can add the current number of citizens a city has. And maybe for culture events, you can add the current amount of culture of a city.
- When you add a new (empty) view, it stayed with the current view, making me wonder if it was a copy of the current view or not. Solution: when adding a new view, go to that view directly. Chances are that when you create a new view, you want to adjust its columns, like I do. :)


I think you are referring to the DiploWillard? I mean I have planned to do a new DiploWillard-page that would focus on MajorCiv diplomacy instead of City-states. You have very good suggestions there, but it might take some time before that kind of a major change will come?

Or you can have a third button with a separate screen for the MajorCivs.
That button could display the number of turns the next deal is expiring. I believe Attila's modpack already has a way of displaying the turns left for a deal in the deal history screen.

It's a little annoying having to click 4/5 times to see basic information about a majorciv, and your screens are really handy.
 
An extra issue:
When a city is starving, the amount of turns to next growth is not correct.
For example, I have a city with 112 food and -1 food per turn. It says something like 4600 turns tll next growth event. It should be 112 (or - if you keep with the vanilla view)
 
1 small request for a next version:
A city with Avoid Growth is still mentioned at the tooltip of the button for a growth event. When that city has 1 turn until growth, it will stay at 1 turn from growth because of the AG, and the number and tooltip of the button is useless. Is it possible to remove that event from the tooltip (it is good that it is displayed as 1 turn to growth in the screen itself).

And in case of multiple events as the next event (2 turns for growth in city A and 2 turns for next GP in city B), is it possible to have a multiline tooltip to display all the events?
 
Thanks Montov for all those comments. :goodjob: I'll look into all of them in the future.

- A column displaying the number of unhappiness a city generates (based on city, pop, captured, policies, Forbidden palace, etc. Maybe have an additional column for the net amount of happiness (happy minus unhappy)
This mods problem is that it already has so many stats to display, but not so efficient wayt to manage that. I have couple ideas to try to improve that and if those improvements come to reality then it would be possible to give much more stat-options. Until then almost all new stats are on hold.

Or you can have a third button with a separate screen for the MajorCivs.
That button could display the number of turns the next deal is expiring. I believe Attila's modpack already has a way of displaying the turns left for a deal in the deal history screen.
Yes a third button could be a better idea than a sub-page.

- Displaying the production item when the button displays "<hammer> 3 turns for cityname", like "<hammer> 3 turns for cityname (Worker)"
The same with pop growth, where you can add the current number of citizens a city has. And maybe for culture events, you can add the current amount of culture of a city.
And in case of multiple events as the next event (2 turns for growth in city A and 2 turns for next GP in city B), is it possible to have a multiline tooltip to display all the events?

You are right, that button tooltip does have a room for improvement. I had this vision for that button, but haven't had time to do it. I was hoping to create same kind of "future events-list" as the turns-view is. But instead of city point of view, it would be from events perspective. It would simply list for x-number of turns all the upcoming tasks. That way your perspective would hopefully expand from current turn to eg. next 5 turns?! The challenge would be to figure out, what kind of customization options should it have for the users?
 
Wow, before I tried your mod I had no idea how awesome it is! Absolutely stunning! :eek: Thank you for sharing this.

One issue though: the "trade route income" shows income for cities that are NOT connected to my capital by any means.

Suggestions:
- Showing all 4 specialist types takes a lot of space, maybe there is a way to make the symbol narrower?
- Changing specialists from within the screen
- A hotkey to open/close your screen
 
Back
Top Bottom