Pedia Upgrade

Valkrionn

The Hamster King
Joined
May 23, 2008
Messages
14,450
Location
Crestview FL
EDIT: This project has been dropped, in favor of Xienwolf's searchable pedia. If any modders would like to see how it was done (Much easier to adapt than Xienwolf's, I would think), feel free to use this file... Goes in assets/python/screens.

View attachment CvPediaMain.rar






Alright. As some of you may know, I'm merging in Grey Fox's 'Better Pedia' mod. It's rather old, so I've been doing a bit of updating... Going to use this thread to describe what I've already done and allow you all to post feedback and requests. :goodjob:

A few notes first off... When I say divided, I mean each section will have a header naming it, and a space or two between it and the previous section. Very easy to read. I'd post screenies, but I'm on a phone while driving four hours to a memorial, not the best time. ;)

Units:
Divided based on unitcombat. There is also a section for nullcombats(Units that don't fit elsewhere), golems, and summons. ATM, Fort Commanders are grouped with siege... Once I'm done with their UU's I'll give them their own section.​

Heroes:
Sections for Civ Heroes, Lesser Heroes (Secondary Heroes, and odd units like the Scion Councilors), Religious Heroes, one each for Orcish, Animal, and Demonic heroes, and finally general Heroes.​

Buildings:
Divided based on Flavor(Military, Commerce, etc). Thinking of adding a Summon section.​

Wonders:
Divided the same way, with the addition of Shrine, Tower, and Palace sections.​

Resources:
Divided into Strategic, Luxury, Food, and Mana.​

Spells:
Divided into World, different Spheres (Each has a different section, easy to browse spells now), Divine (Includes Mechanos spells due to the way I implemented them), Jotnar Kindred (So many they deserve one), and Other. Will be adding an Ability section once I start exposing tags to Python.​

Civics:
Divided into the different Civic types.​

Now, the issues with the implementation. Several sections require use of a tag not currently exposed... Need to add them. Until then, those sections are handled by lists... This includes the various Heroes aside from Religious (will probably always include Lesser Heroes, barring addition of effect promo), Worldspells, Civics. Not sure of any others off the top of my head, other than a few necessary ones in Units (GP's, Death Sphere summons). I doubt I'll releace it in this condition, as exposing tags is simple... Just wanted to get the setup how I want it.

Second, due to the spacing and headers the game isn't able to calculate correct sizes for the different pedia screens. Essentially, some items are left off the screen. This is extremely easy to fix, just have to add a large enough number to the list amount. I only mention it for modders. Add too many new units/buildings/whatever, and you may have to adjust the numbers. When I post the screenies, I'll include a code sample telling you where to look. It would likely have to be adjusted if importing it to other mods as well.

Lastly, there is some semi-hardcoding. For example, the spellsphere sections look for any spell with an appropriate prereq... Meaning I have six lines of code for each, checking promoreq1 and 2 for the three tiers. For units, I have to list each unitcombat, as I know of no way ATM to incrementally generate variables to store info in. Once I learn (sure it's possible), I'll fix that.

One last note: Not all sections are done. Haven't had time to do promotions yet, for example.
 
Unless this is pretty easy for you to pull off... I'd request that you collaborate with me on a new pedia instead. I have the framework all mapped out, but lack the time to code it. The actual code portion shouldn't be too difficult to accomplish though.

And hang out on #erebus more often so I can share my ideas which you might like to work with me on without having to hijack threads ;) :p
 
As promised, here are some screenshots. None of Promotions atm, as I'm not sure how I want to divide it... Currently divided into general (requires a unitcombat), Arcane (Requires Channeling, etc... Basically spell spheres and a few others), and misc, everything that doesn't fit elsewhere.

Just so you know, there ARE a few items in these screenshots from the next version... See if you can find them all. :goodjob:

Edit: Forgot to mention, this can be turned off easily as well. Added a define in GlobalDefinesAlt, which is used to control it. :goodjob:


Units:
Only the one here. Follows unitcombats, with extra sections for GPs, Summons, and Golems.
Spoiler :
Civ4ScreenShot0024.jpg

Heroes:
Spoiler :
Civ4ScreenShot0025.jpg

Buildings:
One section for each building flavor.
Spoiler :
Civ4ScreenShot0026.jpg

Wonders:
Spoiler :
Civ4ScreenShot0027.jpg

Resources:
Spoiler :
Civ4ScreenShot0028.jpg

Improvements:
Spoiler :
Civ4ScreenShot0029.jpg

Spells:
Got a total of 4 here... Showing the various sections.
Spoiler :
Civ4ScreenShot0030.jpg

Spoiler :
Civ4ScreenShot0032.jpg

Spoiler :
Civ4ScreenShot0033.jpg

Spoiler :
Civ4ScreenShot0034.jpg

Civics:
Spoiler :
Civ4ScreenShot0036.jpg
 
Nice Nice Nice Nice Nice Nice Nice Nice Nice Nice!

But you may want to change 'Generic Heroes' to 'Other Heroes'. 'Generic' doesn't feel like it fits.

You're so going to be robbed.
 
Hmm. Other Heroes might work... It's just the catch-all grouping.

Haha you can rob it if you want. Actually, the files that came from are in the team forum, so you could install that over FFPlus and see it firsthand, and check the python... It's all in pediamain, in screens interface.

You won't like it much atm, though... Too many lists, not enough python checks. Hence the upcoming DLL work. :lol:

Edit: Also, if you notice there's a new Barb hero in there. :lol: Already been mentioned, but Zarcaz is definitely in.
 
Hmm. Other Heroes might work... It's just the catch-all grouping.
Yep, so "other" striked me as more fitting than "generic". Being heroes, they aren't generic! ;)

Haha you can rob it if you want. Actually, the files that came from are in the team forum, so you could install that over FFPlus and see it firsthand, and check the python... It's all in pediamain, in screens interface.

You won't like it much atm, though... Too many lists, not enough python checks. Hence the upcoming DLL work. :lol:
I will wait until you finish it. I don't want the python to hurt my sensitive eyes :(

Edit: Also, if you notice there's a new Barb hero in there. :lol: Already been mentioned, but Zarcaz is definitely in.
Nice! But you need a new button for him! This one sucks! I mean, it's the basic archer one! :p
 
Yep, so "other" striked me as more fitting than "generic". Being heroes, they aren't generic! ;)

I will wait until you finish it. I don't want the python to hurt my sensitive eyes :(

Nice! But you need a new button for him! This one sucks! I mean, it's the basic archer one! :p

:lol: The python isn't bad. It's quite easy to understand, there are just a few lists atm. Like most of the hero sections. :lol:

And yes, yes I do. Don't do art myself though, so I'll make do for now... At least you get a trophy for killing him. :p
 
cool stuff, it's always great to see that some great changes that would otherwise go down the drain get updated and offered to the community :D
 
Anyone else have an opinion on the new pedia upgrades? ;)

Well you can find my combined text pedia of modmod entries in the Lore forums. You may find some pedia entries in there that you don't currently have :) I'm currently working v0.2 which should include source mod and author as best I can determine them.
 
Can I suggest breaking Animals and Beasts into 2 different groups?

Already does, the screenshot just doesn't show it. All unitcombats have their own section, even Commanders with their four units. :lol:

One thing I WILL do is break Siege into Siege and Fort Commanders.
 
Thanks to GreyFox for pointing out my error (Forgot to include the define... Freaking XML, rather than DLL. :blush:), this now includes Popup Dividers.

For an idea of what I'm talking about, check the screenie. Let's just say, it's awesome. :p
 

Attachments

  • Civ4ScreenShot0041.JPG
    Civ4ScreenShot0041.JPG
    148.1 KB · Views: 113
I've seen this thread from above in main C&C, wondered, what that could be, clicked on it....and wow, nice thing :goodjob:.

Can this be ported to normal civ, or are there any FfH2 specific things involved?
Because i guess, that this makes any mod easier to overview for the newbies (...and also for the modder...).
 
Back
Top Bottom