| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
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. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Missionary of Sorenism
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. |
|
|
|
|
|
#2 |
|
Formerly known as low
Join Date: Jun 2002
Location: Wisconsin, USA
Posts: 1,210
|
Cool, I like it. The more info the better.
|
|
|
|
|
|
#3 |
|
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. |
|
|
|
|
|
#4 |
|
Chieftain
Join Date: Oct 2005
Posts: 40
|
Can you make the Advisor actually advise?
|
|
|
|
|
|
#5 |
|
Chieftain
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? |
|
|
|
|
|
#6 |
|
King of all Kings
Join Date: Dec 2002
Location: NYC to Connectcut...
Posts: 6,529
|
Very nice, good job homegrown!!
|
|
|
|
|
|
#7 | |
|
Missionary of Sorenism
Join Date: Jan 2002
Location: Houston TX
Posts: 112
|
Quote:
|
|
|
|
|
|
|
#8 |
|
Chieftain
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? |
|
|
|
|
|
#9 |
|
Registered User
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
|
|
|
|
|
|
#10 |
|
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!
|
|
|
|
|
|
#11 |
|
Caffeinated Khagan
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 |
|
|
|
|
|
#12 |
|
Chieftain
Join Date: May 2005
Posts: 5
|
Wow! I really like the city maintenance column - keep up the good work!
|
|
|
|
|
|
#13 | |
|
Missionary of Sorenism
Join Date: Jan 2002
Location: Houston TX
Posts: 112
|
Quote:
I worked on sorting more today. It's *almost* there, but not quite. |
|
|
|
|
|
|
#14 |
|
Warlord
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!)
|
|
|
|
|
|
#15 |
|
Civvidy-doo.
Join Date: Apr 2004
Posts: 234
|
Yep, once I'm able to sort and click I'll download it. Sorting is a must. :P
|
|
|
|
|
|
#16 |
|
Missionary of Sorenism
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.
|
|
|
|
|
|
#17 |
|
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! |
|
|
|
|
|
#18 | |
|
Chieftain
Join Date: Aug 2004
Posts: 8
|
Quote:
|
|
|
|
|
|
|
#19 |
|
Chieftain
Join Date: Oct 2005
Location: Harpswell, ME
Posts: 23
|
very nice work!!
|
|
|
|
|
|
#20 | |
|
Civvidy-doo.
Join Date: Apr 2004
Posts: 234
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|
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 |