Civilization IV Leader Picker

Very good work. Another 5 star rating coming your way. :goodjob:
 
Awesome tool. I was playing Romans expansive, organized and wanted to find a leader that had aggressive, organized. Your tool is just the ticket. Highly recommended!
 
VERY NICE! MANY thanks!

... would it be possible to add the Second Trait under the TECH section... possibly under a "-------" divider (that would select 'Any').

But in any event WELL DONE, and again, MANY thanks! This is awesome!


EDIT: I agree with the post below (WalrusMan), ... the second trait may not be necessary due to the limited number of leadership options available. But, then again,... it couldnt hurt. *shrugs*
 
Very nice utility!

The only thing I would add would be a version that let you pick a leader by both characteristics, but that seems to be uncessary due to the limited number of leaders with the first characteristic.
 
Great tool Zhahz! :goodjob:

Was wondering if there was an "offline" version?

The computer I have Civ on doesn't have an Internet connection. :sad:
 
Quasimodo said:
Was wondering if there was an "offline" version?

The computer I have Civ on doesn't have an Internet connection. :sad:

The "source" (so to speak, it's just a stand-alone web page) is attached to the original post. This is the same file civfanatics has in the reference section (barring any changes they make when they grab the latest version from this thread, which are minimal if any).

If you download it and rename it as an .htm or .html page you can "run" it locally by double-clicking on it (it should load into your default browser and run the same as it runs at civfanatics). You do need to have a browser to "run" it locally/offline (browsers can render simple resources like stand-alone html pages you have stored locally even if you're not online).

The only issue is that if you "run" it this way locally thru IE you might encounter a security warning and need to enable the page for it to fully function (you'll get a warning and have a typical "yellow bar" at the top of the page, right-click, allow, and page works after that). Mozilla didn't seem to have the same issue if memory serves.
 
To get it to work in Safari, change the line
Code:
document.getElementById(sDropDownId).options.add(oItem);
to
Code:
document.getElementById(sDropDownId).options[document.getElementById(sDropDownId).length] = oItem;
I'm no Javascript expert but Safari was choking on the add so I messed around until it worked in both Safari and Firefox.
 
I've updated the source attachment in the original post to version 1.2, which incorporates myhf's fix for the dropdown populating in Safari...which also continues to work in Internet Explorer, btw. ;)

Thanks, myhf!

I didn't update the screenshot, which still shows v1.1. There are no other changes so I probably won't bother.

PS - I'm not sure when v1.2 will be up on civfanatics. I expected to do a few updates and didn't want to be a nuisance so I never made an attempt to notify anyone for v1.1, yet it was updated at some point (thanks, btw).
 
That is terrific. I was wondering if you could do something similar with the wonders / Great Persons / city improvements. I was trying for a culture win and looking through all the wonders / city improvements for those that created culture and GPPs. I suppose what I am after is a list of all the wonders / city improvements that generate culture (or help with hammers / health / wealth / GP bonus / etc). It might be a little judgemental as one person might think that a wonder is a cultural wonder while another might say it is a wealth wonder).
 
Zhahz said:
PS - I'm not sure when v1.2 will be up on civfanatics. I expected to do a few updates and didn't want to be a nuisance so I never made an attempt to notify anyone for v1.1, yet it was updated at some point (thanks, btw).
Don't worry about it. :) It takes less than a minute to overwrite the page with the new version.
 
I am moving this to the Civ4 Reference forum so it's easy to find. It's currently at page 3. :eek:
 
This is really cool, thanks for taking the time to put it together! :goodjob:

One minor nit, if all leaders are shown, it takes a full screen in Firefox at 1280x1024, and the mouseover causes a vertical scrollbar. I was able to work around it by turning off the status line, but if it were possible to shrink the text size one click that would do it. Even better, drop down a text size when more than about 23 rows show in the table.

In Firefox at least the user can also hit CTRL - (control and minus sign) to shrink it, so there is an easy workaround. :)
 
I've updated the source attachment in the original post to version 1.3 and redid the screenshot.

The whole utility has had a style makeover to tighten it up and make it more "resolution friendly" as a result DaveShack's comments. It should now be able to do a full listing at 1024x768 depending on how you have your browser setup. If you have extensive toolbars and menubars it still might not fully fit.

The makeover includes tightening up the list grid so that it looks more like a real grid, reducing the whitespace between major element sections, shrinking the title at the top of the page, and dynamically altering the font size from 9pt to 8pt for full listings (per DaveShack's suggestion).

I also fixed the cursor style for mouseovers to be standard compliant (doh) so you now see the "hand" cursor in Firefox. (Original post edited to remove Firefox issues since they were due to my ignorance - I use IE!)

I only have IE and Firefox and all these changes seem to work fine in both. If any Opera, Safari, or other users have problems please PM or post them!

DaveShack said:
One minor nit, if all leaders are shown, it takes a full screen in Firefox at 1280x1024, and the mouseover causes a vertical scrollbar. ... Even better, drop down a text size when more than about 23 rows show in the table.

I should've been more resolution sensative but I'm lazy! (and I have a 22" monitor running 1600x1200) Thanks for the suggestion on dynamically altering the font size - I've incorporated it in 1.3.

ruff_hi said:
I was wondering if you could do something similar with the wonders / Great Persons / city improvements. I was trying for a culture win and looking through all the wonders / city improvements for those that created culture and GPPs. I suppose what I am after is a list of all the wonders / city improvements that generate culture (or help with hammers / health / wealth / GP bonus / etc). It might be a little judgemental as one person might think that a wonder is a cultural wonder while another might say it is a wealth wonder).

The biggest pain in doing this utility or in doing your suggestion is compiling the data and building the data structures in javascript. If there's a comprehensive list in a programmatically accessible file format (ideally xml or delimited text) or if anyone knows of xml from the game that would contain all suitable data then I might give this a shot. I wouldn't want to manually build up the data structures for a wonder list - I'd instead hack together a quick C# app to build them for me from structured data.
 
Love the Leader Picker!

Will you be updating for Warlords expansion pack? (pleeeeeaaasse)
 
Back
Top Bottom