Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Mod Components

Notices

Reply
 
Thread Tools
Old Oct 30, 2005, 06:28 AM   #1
homegrown
Missionary of Sorenism
 
homegrown's Avatar
 
Join Date: Jan 2002
Location: Houston TX
Posts: 112
A "Better" Domestic Advisor ?

OK, I've taken the plunge and with little more than Gingerbreads "Learn Python" thread, I've been able to make some improvements to the Domestic Advisor in the game.

Here is a screenshot of the advisor that ships with the game.



The column headings are: Date founded (capital?), City Name, Population, Happiness, Unhappiness, Angry, Food produced, Healthy, Unhealthy, Food eaten, Hammers, Gold, Science, Culture, Total Culture, Great People, Total Great People, Producing

List of Changes

1. Removed the Capital Star from the Date
2. Add a Religions column
3. Add a City Garrison column
4. Combine Happy/Unhappy/Angry into "Net Happiness"
5. Combine Food produced/eaten into "Food Turns until Growth"
6. Combine Healthy/Unhealthy into "Net Healthiness"
7. Add City Maintenance Cost
8. Add Turns til Production Complete
9. Institute Landmarks

Landmarks are to visually represent which cities contain special buildings or special situations. Examples are Versaille/Forbidden Palace, National Wonders, Power Plants, Revolt, Occupation.

In the release version, there are still some functions that we can't directly access (or at least I can't) with python yet, but in the future Landmarks will designate whether a city is having We Love the King Day. Other suggestions I've heard were to show World Wonders that allow or create their own unit, airports, courthouses...

Screenshot of the Improved Version



Column Headings:

Date founded, City Name (with landmarks), Religions, Population, City Garrison Strength, Net Happiness, Food Turns to Growth, Net Health, Hammers, Gold, City Maintenance, Science, Culture, Total Culture, Great People, Total Great People, Producing, Turns to Production Complete.

In the Landmarks section, The Gold Star is Capital, Silver Star is Versaille/Forbidden Palace, the Bullet is a National Wonder (limit 2), Power, Occupation and Occupation Timer.

You can get the mod here. Unzip it into your "My Documents/My Games/Civ 4/" folder or whereever you are saving your games via /ALT.

Issues: Might cause an unhandled python exception if you should lose a city to barbarians at some point, but should still display correctly.

Bug reports and comments/suggestions are welcome.

Enjoy
Homegrown

edited to reflect changes since initial posting

edited 26 Dec, 2005 with v.1.52 compatible files, see post #117

Download:

Domestic Advisor v.1.52 | Clock Mod v.1.52

Last edited by Thunderfall; Feb 04, 2006 at 09:44 PM.
homegrown is offline   Reply With Quote
Old Oct 30, 2005, 07:06 AM   #2
CyberTyrant
Formerly known as low
 
CyberTyrant's Avatar
 
Join Date: Jun 2002
Location: Wisconsin, USA
Posts: 1,210
Cool, I like it. The more info the better.
CyberTyrant is offline   Reply With Quote
Old Oct 30, 2005, 07:12 AM   #3
anjinsan1966
Chieftain
 
Join Date: Oct 2005
Location: Sweden
Posts: 64
Ahh u can never get to much of info and statistics!!!!
Im gonna try this (that is once i get the game ).
__________________
Omnes viae Romam ducunt.
anjinsan1966 is offline   Reply With Quote
Old Oct 30, 2005, 07:14 AM   #4
Muad-Dib
Chieftain
 
Muad-Dib's Avatar
 
Join Date: Oct 2005
Posts: 40
Can you make the Advisor actually advise?
Muad-Dib is offline   Reply With Quote
Old Oct 30, 2005, 08:10 AM   #5
BaalRoG
Chieftain
 
BaalRoG's Avatar
 
Join Date: Jan 2004
Posts: 45
This is great!

Can you mod the other 2 advisors like foreign and military, too?
They are so damn bad... there shoult be more transparancy!

I really miss how many units i can handle until i have to pay money for them on the military advisor screen or even better on the mainscreen near the money on the top left...
also the tech points i generate at the moment...

something like this:
top left should stay -> number of all units now (green until you break the linit than red)/units for free(yellow) -> 22/12
and
top left should also stay -> number of techpoints i generate -> 312 (blue)


Is it possible to realize?
BaalRoG is offline   Reply With Quote
Old Oct 30, 2005, 08:20 AM   #6
amirsan
King of all Kings
 
amirsan's Avatar
 
Join Date: Dec 2002
Location: NYC to Connectcut...
Posts: 6,529
Very nice, good job homegrown!!
amirsan is offline   Reply With Quote
Old Oct 30, 2005, 08:20 AM   #7
homegrown
Missionary of Sorenism
 
homegrown's Avatar
 
Join Date: Jan 2002
Location: Houston TX
Posts: 112
Quote:
Originally Posted by BaalRoG


Is it possible to realize?
I was thinking of looking at the Finance Advisor next, but still really unsure how I want to go with it. It looks like all the commerce stuff is exposed, so it's just a matter of deciding what information to show and finding a place on the interface to stick it.
homegrown is offline   Reply With Quote
Old Oct 30, 2005, 09:07 AM   #8
BaalRoG
Chieftain
 
BaalRoG's Avatar
 
Join Date: Jan 2004
Posts: 45
i dont understand why they didnt break down all the informations which pop up on the finance advisor after going over with the mouse cursor...

it would be much nicer to see the infos directly... maybe with placeholders after the right costs-section...example:

unit costs -> 4
|-> Units free (12) -> 3
|-> blabla -> 1
-------------------
inflation costs -> 5
|-> blabla -> #
|-> blabla -> #
-------------------
and so on...
===============
Total costs


Its only an idea, but the financial advisor now really nervs a lot...

Another missing function is the military advisor screen which misses the "upgrade units" button... or did i oversee it?
BaalRoG is offline   Reply With Quote
Old Oct 30, 2005, 09:52 AM   #9
dalek master
Registered User
 
dalek master's Avatar
 
Join Date: Jun 2005
Location: Depths of the time war
Posts: 336
that is a very nice mod. As soon as the game is installed (if it ever is installed), I'm downloading. congrats on such a good mod
dalek master is offline   Reply With Quote
Old Nov 01, 2005, 04:57 PM   #10
GoldenAge
Chieftain
 
Join Date: Oct 2005
Posts: 14
This looks spectacular. I think I'll wait until the city names are clickable before I give it a shot though. Great work!
GoldenAge is offline   Reply With Quote
Old Nov 01, 2005, 05:12 PM   #11
Ogedei_the_Mad
Caffeinated Khagan
 
Ogedei_the_Mad's Avatar
 
Join Date: Feb 2004
Location: Moved back into the kimchi jar
Posts: 3,163
Nice changes. That way, there's a lot more useful info given on just one screen.

BTW, is this the same "homegrown" on the old Impressions' city-builder forums?
__________________
"You can't discuss the ocean with a well frog. You can't discuss ice with a summer insect. You can't discuss the Way with a cramped scholar." -Zhuangzi
"And what do we got on this thing? A Cuisinart?!? - Dark Helmet
Ogedei_the_Mad is offline   Reply With Quote
Old Nov 01, 2005, 05:20 PM   #12
theinsane
Chieftain
 
theinsane's Avatar
 
Join Date: May 2005
Posts: 5
Wow! I really like the city maintenance column - keep up the good work!
theinsane is offline   Reply With Quote
Old Nov 01, 2005, 06:29 PM   #13
homegrown
Missionary of Sorenism
 
homegrown's Avatar
 
Join Date: Jan 2002
Location: Houston TX
Posts: 112
Quote:
Originally Posted by Ogedei_the_Mad
BTW, is this the same "homegrown" on the old Impressions' city-builder forums?
Yes, that's me.

I worked on sorting more today. It's *almost* there, but not quite.
homegrown is offline   Reply With Quote
Old Nov 01, 2005, 07:04 PM   #14
Kolath
Warlord
 
Kolath's Avatar
 
Join Date: Nov 2001
Posts: 159
Wow! Great work Homegrown! Your setup looks much better. As soon as you get it to sort and link I'll be all over it! Once I get the game that is... (stupid midterms!)
Kolath is offline   Reply With Quote
Old Nov 01, 2005, 07:24 PM   #15
Greek Plunder
Civvidy-doo.
 
Greek Plunder's Avatar
 
Join Date: Apr 2004
Posts: 234
Yep, once I'm able to sort and click I'll download it. Sorting is a must. :P
Greek Plunder is offline   Reply With Quote
Old Nov 01, 2005, 07:41 PM   #16
homegrown
Missionary of Sorenism
 
homegrown's Avatar
 
Join Date: Jan 2002
Location: Houston TX
Posts: 112
Maybe if I explain what the issue is with sorting, someone might have some ideas. It *does* sort, but instead of sorting by integer values, it is sorting by string values. So one list might go ['1','13','16','2','22','3','31','4']. However, most of the time, it does print a coherent sorted list.
homegrown is offline   Reply With Quote
Old Nov 01, 2005, 08:34 PM   #17
Uty
I hate you, Milkman Dan
 
Join Date: Apr 2005
Location: Newark, Delaware
Posts: 124
This is really cool. Right now I'm trying to figure out how you did this. (I'm new to Python but not new to programming.)

In CvDomesticAdvisor.py:


# Religions Column
screen.setTableColumnHeader( "CityListBackground", 2, localText.getText("Religions", ()).upper(), 130 )



From the Python for cIV Class Reference:

STRING getText(STRING szTag, TUPLE args)
LPCTSTR getText(const TCHAR * szTag, python::tuple& args)


Here are my questions

- General Python: when you call ()).upper() what object are you referencing?
- cIV: How did you determine the members of python::tuple& args? I'm guessing that any collection of three values qualifies as a tuple. I see the first member is "Religions" and appears as the name of the column so that is a no-brainer. What are ()).upper() and 130?

Thanks!
Uty is offline   Reply With Quote
Old Nov 01, 2005, 08:37 PM   #18
Skatanic
Chieftain
 
Join Date: Aug 2004
Posts: 8
Quote:
Originally Posted by homegrown
Maybe if I explain what the issue is with sorting, someone might have some ideas. It *does* sort, but instead of sorting by integer values, it is sorting by string values. So one list might go ['1','13','16','2','22','3','31','4']. However, most of the time, it does print a coherent sorted list.
Damn... is this changable?
Skatanic is offline   Reply With Quote
Old Nov 01, 2005, 08:50 PM   #19
tcwleblanc
Chieftain
 
tcwleblanc's Avatar
 
Join Date: Oct 2005
Location: Harpswell, ME
Posts: 23
very nice work!!
tcwleblanc is offline   Reply With Quote
Old Nov 01, 2005, 08:53 PM   #20
Greek Plunder
Civvidy-doo.
 
Greek Plunder's Avatar
 
Join Date: Apr 2004
Posts: 234
Quote:
Originally Posted by Uty
This is really cool. Right now I'm trying to figure out how you did this. (I'm new to Python but not new to programming.)

In CvDomesticAdvisor.py:


# Religions Column
screen.setTableColumnHeader( "CityListBackground", 2, localText.getText("Religions", ()).upper(), 130 )



From the Python for cIV Class Reference:

STRING getText(STRING szTag, TUPLE args)
LPCTSTR getText(const TCHAR * szTag, python::tuple& args)


Here are my questions

- General Python: when you call ()).upper() what object are you referencing?
- cIV: How did you determine the members of python::tuple& args? I'm guessing that any collection of three values qualifies as a tuple. I see the first member is "Religions" and appears as the name of the column so that is a no-brainer. What are ()).upper() and 130?

Thanks!
I dunno Python, but I'm guessing 130 has something to do with column size? (width)
Greek Plunder is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Mod Components > A "Better" Domestic Advisor ?

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Real 'Near Future': "Mechs","Super Tanks","Super Soldiers","Space Elevator",Etcetera Wade. Civ4 - General Discussions 89 Jul 15, 2009 08:20 PM
A "Sum" row in the Domestic Advisor Blkbird Civ - Ideas & Suggestions 2 Jul 27, 2007 04:32 PM
A "Special" Domestic Advisor (Please try out!) Requies Civ4 - Mod Components 113 Jul 31, 2006 08:13 AM


Advertisement

All times are GMT -6. The time now is 12:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR