Valkrionn
The Hamster King
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.
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:
Heroes:
Buildings:
Wonders:
Resources:
Spells:
Civics:
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.
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.

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.