davidlallen
Deity
I am working on a mod which does not use bug/bull/bat and it does not use the "sevopedia" mod. I would like to add a top level entry to the civilopedia. I am sure there are a number of steps but I am stuck at the first one.
In the vanilla pedia, I tried to mod just the *order* of the entries. The first few top level entries are Techs, Units, Buildings, Wonders. I want to prove I can have some effect, by changing the order to Techs, Buildings, Units, Wonders. I cannot make this work.
In BTS python/screens/cvpediamain.py, there is a list of the top level entries:
OK, I swap the order of unit and building, and run. Sure enough the *visual* order of the entries changes like I want. It now shows techs, buildings, units, wonders. However, clicking on the buildings text brings up the unit listing, and clicking on the units text brings up the building listing. So the link target areas have not changed. I can totally mix up the visual order, but clicking on the first line always brings the tech screen, the second line always brings the unit screen, etc. regardless of what text is there.
What do I additionally change, in order to affect the link target areas? If I could figure that out, I could clearly change the visual order and the link target order in sync.
I thought it might be the order of the screen numbering in python/screens/cvscreenenums.py. In *sevo* pedia, I have been successful in moving items by changing this order. However, in vanilla, it does not seem to have any effect. I tried the following:
But this had no effect at all, as far as I can tell. At this early stage in my development, I don't want to spend time to throw in more modcomps, so I would like to get this working on top of vanilla. Any suggestions?
In the vanilla pedia, I tried to mod just the *order* of the entries. The first few top level entries are Techs, Units, Buildings, Wonders. I want to prove I can have some effect, by changing the order to Techs, Buildings, Units, Wonders. I cannot make this work.
In BTS python/screens/cvpediamain.py, there is a list of the top level entries:
Code:
self.listCategories = [ self.szCategoryTech,
self.szCategoryUnit,
self.szCategoryBuilding,
self.szCategoryWonder,
[...]
What do I additionally change, in order to affect the link target areas? If I could figure that out, I could clearly change the visual order and the link target order in sync.
I thought it might be the order of the screen numbering in python/screens/cvscreenenums.py. In *sevo* pedia, I have been successful in moving items by changing this order. However, in vanilla, it does not seem to have any effect. I tried the following:
Code:
# Civilopedia Pages start at 200
PEDIA_START = 200
PEDIA_MAIN = 199#CivilopediaPageTypes.CIVILOPEDIA_PAGE_MAIN + PEDIA_START
# davidlallen: note unit and building are reversed below
PEDIA_TECH = CivilopediaPageTypes.CIVILOPEDIA_PAGE_TECH + PEDIA_START
PEDIA_UNIT = CivilopediaPageTypes.CIVILOPEDIA_PAGE_BUILDING + PEDIA_START
PEDIA_BUILDING = CivilopediaPageTypes.CIVILOPEDIA_PAGE_UNIT + PEDIA_START
PEDIA_TERRAIN = CivilopediaPageTypes.CIVILOPEDIA_PAGE_TERRAIN + PEDIA_START
PEDIA_FEATURE = CivilopediaPageTypes.CIVILOPEDIA_PAGE_FEATURE + PEDIA_START