• Civ7 is already available! Happy playing :).
Resource icon

[Warlords] Customizable Domestic Advisor v0.95w 2016-10-05

Inspired by the fantastic work of Homegrown and Requies, I thought I'd try to
extend what they've done and add in game customization - including the ability
to add new pages, to add and remove columns from pages, and change the order
and width of columns, all from within the advisor itself.
[TAB]
[TAB]
Installation Instructions:

1) Unzip this into the "civ4_install_folder\Mods\" folder.
2) Open the CivilizationIV.ini configuration file
3) Change the Mod line to read: Mod = Mods\Customizable Domestic Advisor
4) Load the game.
5) Then play as normal.


-----Game Play-----
Spoiler :

- Customizable tables:
[TAB]- Independent columns for production and turns remaining for easy sorting
[TAB]- Support for the city zoom button from patch 1.52
[TAB]- Correct sorting by date founded
[TAB]- Accurate city selections in sorted lists
[TAB]- City rankings
[TAB]- Real advice (which still needs more work!)

- New columns:
[TAB]- Threats, which displays an angry icon if enemy units are nearby
[TAB]- Defense bonus, including terrain and bombardment
[TAB]- X and Y location
[TAB]- "Real" population (the "population" displayed on the info screen)
[TAB]- Best conscript unit, and best potential conscript
[TAB]- Electric power
[TAB]- National city ranks
[TAB]- Global city ranks
[TAB]- Can hurry (both slavery and gold)
[TAB]- All the buildings and wonders
[TAB]- All the resources
[TAB]- Advisors (VERY basic at the moment - consult at your own risk!)

- Buildings:
This advisor includes fields for all the buildings, National Wonders, and World
Wonders, with their effects. For example, the advisor displays a food icon for
a granary (saved food). It also displays a health icon if the city has a
granary AND rice, wheat, corn, or bananas connected; and the health icon
disappears if the last of those resources is lost.

- The following information is available for buildings:
[TAB]- Working building - (see the next list)
[TAB]- No known benefits - "+"
[TAB]- In production - the icons from the list below surrounded by "()"
[TAB]- Obsolete - "X"
[TAB]- Can't be built - "-"
[TAB]- Just not there - blank

-Effects displayed:
[TAB]- Bread slice - stored food or extra food from water tiles
[TAB]- Gold star on the left - capital
[TAB]- Silver star - other government center (e.g. Forbidden Palace, Versailles)
[TAB]- Gold star on the right - World Wonder or shrine
[TAB]- Religion icons - religious buildings
[TAB]- Flexing arm - free experience or promotions for new units
[TAB]- Keep (defense icon) - land, air, or nuke defense bonus
[TAB]- Red cross - health bonuses
[TAB]- Happy face - happiness bonuses
[TAB]- Lightning bolt - electric power
[TAB]- [Angry person] - reduced war weariness or anarchy
[TAB]- Music note - culture bonus
[TAB]- Gold - gold bonus
[TAB]- Beaker - research bonus
[TAB]- Hammer - increase production (general or specific)
[TAB]- 3 Arrows (trade icon) - extra trade routes or increased trade income
[TAB]- Coin - reduced maintenance
[TAB]- Green sick face - unhealthiness
[TAB]- Figurehead - great person points
[TAB]- None of this is hardcoded, so the advisor should work with any mod, even
[TAB] fantasy mods and others that redefine the game. It will even display new
[TAB] fields for the buildings from a mod and hide the fields for buildings
[TAB] from the original game.

- Controls:
The controls along the bottom of the advisor interface, from left to right,
are:
[TAB]- Page selection drop-down list
[TAB]- Customize columns on page
[TAB]- Rename active page
[TAB]- Add new page
[TAB]- Remove active page
[TAB]- Save current configuration
[TAB]- Restore last saved configuration

The controls on the customization interface, from left to right, are:
[TAB]- Shrink column(s)
[TAB]- Widen column(s)
[TAB]- Promote selected column(s) (moves them toward the left on the main
[TAB] interface)
[TAB]- Demote selected column(s) (moves them toward the right on the main
[TAB] interface)
[TAB]- Add column(s) (adds all columns selected in the list on the right side)
[TAB]- Remove selected column(s)


- Columns:
[TAB]- NAME - The name of the city
[TAB]- AUTOMATION - What's automated in the city?
[TAB]- BASE_COMMERCE - Base (unmodified) commerce/turn (of all kinds)
[TAB]- CONSCRIPT_UNIT - The best unit the city can conscript
[TAB]- COULD_CONSCRIPT_UNIT - The best unit the city could conscript, if it
[TAB] could conscript
[TAB]- CULTURE - Total culture
[TAB]- CULTURE_RATE - Culture/turn generated
[TAB]- DEFENSE - Defense bonus
[TAB]- FEATURES - Capital, national Wonders, disorder, and trade status
[TAB]- FOOD - Surplus food/turn
[TAB]- FOUNDED - Date founded
[TAB]- GARRISON - Number of military units in the city
[TAB]- GOLD - Gold/turn generated
[TAB]- GREATPEOPLE - Total great people points
[TAB]- GREATPEOPLE_RATE - Great people points/turn
[TAB]- GROWTH - Turns until the city grows
[TAB]- HAPPY - Extra happiness in the city (above the current population)
[TAB]- HEALTH - Extra health in the city (above the current population)
[TAB]- LOCATION_X - Horizontal location of the city
[TAB]- LOCATION_Y - Vertical location of the city
[TAB]- MAINTENANCE - Maintenance costs/turn
[TAB]- POPULATION - Population of the city
[TAB]- POPULATION_REAL - Population of the city in "real" numbers
[TAB]- POWER - Does the city have power?
[TAB]- PRODUCING - What's being built?
[TAB]- PRODUCING_TURNS - How long will it take?
[TAB]- PRODUCTION - Hammers/turn
[TAB]- RELIGIONS - Religions present in the city
[TAB]- RESEARCH - Beakers/turn generated
[TAB]- SPECIALISTS - What kind of specialists are in the city?
[TAB]- THREATS - How many enemy units are in the area?
[TAB]- TRADE - Income from trade routes
[TAB]- Plus columns for every building, National Wonder, and World Wonder


-----Known Issues-----
Spoiler :

- Forges, factories, and the Ironworks aren't displaying hammer icons, and
nuclear plants aren't displaying power icons. And forges, factories, etc.
display single unhealthy faces even after recycling centers are built. I'm
working on it.

- When changing the width or order of columns, the first selected column
description scrolls to the top.

- Triggering a Python module reload (by changing a Python file for example)
with the game running causes the advisor to go blank, and lose any unsaved
customizations. Unless you're modding with Python, you'll probably never run
into this. If you are, be sure to save any customizations before changing
Python files. And simply close the advisor and press F1 again to fix any
funkiness.

- If a mod that changes buildings is active the first time the Domestic Advisor
is loaded, the wrong buildings are displayed on the default pages.


-----Version Information-----

-----v0.95w------

- Updated to be compatible with Warlords v2.0.8.0 patch.

Spoiler :

-----v0.94w------

- For some reason the button to open the city screen no longer worked in
the Warlords version. Some of the city zoom code was removed from the Warlords
SDK that was in the vanilla SDK, but the original domestic advisor city zooming
still works. In order to not break the original functionality a new widget type,
WIDGET_ZOOM_CITY_CDA, has been added to the Warlords SDK code and the original
code from the vanilla SDK has been added back in. Issue reported by Ket.

All changes made in the SDK have been wrapped with // < CDA Start > and
// < CDA End > tags.


-----v0.93w------

- Updated all code to be compatible with Warlords v2.0.0.0


-----v0.93------

Dec 29, 2005

- Fixed a "failed to load python module CvEventInterface" error

- Added support for exchanging configuration files across languages

- Fixed the exchanging of configuration files across languages.

- Fixed startup when CustomDomAdv.txt doesn't exist.

- Prevented a crash from incompatibility between specialist buttons and
resource icons.


-----v0.92------
Dec 29, 2005:

- Fixed hidden fields and broken customization screen in non-English versions

- Fixed the features field display of national wonders in mods

- Added columns for the resources


-----v0.91------

Dec 28, 2005:
- Fixed automation and culture columns, and added ranking, hurry, and advice
columns.

- Added the flavorful release with new pages

- Fixed a crash from incompatibility between the specialist buttons and the
city zoom button

- Added national and global rank, can hurry, base production, and some VERY
basic advice


-----v0.90------
Dec 27, 2005:

- Initial public beta


-----===Credits & Thanks===-----

- Exavier
[TAB]Composite Mod - readme.txt format

- Taelis
[TAB]For the original code base for the customizable domestic advisor, All the
[TAB]improvements Homegrown and Requies made (thanks, guys!)
Author
TheLopez
Downloads
574
Views
574
First release
Last update

Ratings

4.00 star(s) 2 ratings

More resources from TheLopez

Latest reviews

I'm getting crashed to desktop and weird graphical corruption. I can't tell if it's your code or if it was adapted for visa but i am hoping the [URL="http://forums.civfanatics.com/uploads/99292/CTD.JPG"]screenshot [/URL]will help. I suspect the ViSa team feels it isn't their code but they seem busy with other things.

If it is your code, please at least say so and i will ask them to disable it for ViSa. I really like it when it works but when i get far enough into the game, it packs up. I suspect it's running out of system resources as it seems to happen when i have many cities. It's a shame, being able to sort by turns remaining or other values is very useful.
Doesn't work in 2.08.
Top Bottom