Python Performance and Interface Overhaul (PPIO)

The weather is simply chaos everywhere around the world right now! Wishing the best for those in the path of devestation!

Thanks for the clarifications as well. This kind of repetitive stuff does challenge the ability to focus after a while! That's one of the chief struggles with the recosting also.
 
v0.5.2
  • Added a new sub category to the "Special" category called "Worker Builds" that lists all worker build actions.
  • Overhauled the improvement sub category.
  • Added a content count to the index that tells you how many entries are therein.
 
Last edited:
Is it possible to have Group Wonders separated from Great Wonders and National Wonders in the Pedia?

And if possible to be able to have all buildings of a group listed together. i.e.
Elite Universities

Military Academies

etc.

I have blue socks too.
 
Last edited:
Is it possible to have Group Wonders separated from Great Wonders and National Wonders in the Pedia?

And if possible to be able to have all buildings of a group listed together. i.e.
Elite Universities

Military Academies

etc.

I have blue socks too.
It depends on how they are identified as such in the XML. Great Wonders are identified by a 1 in one field/tag of the Building Class XML. If you can describe how to tell via the XML tags in the Building Class and the Building Infos then it becomes possible. to make a separate group for Group Wonders.

If you want them in sub-groups then you need to describe how the sub-group is identified. It could be based on "not in the same city as" for example. If those fields are used.
 
Code:
       <SpecialBuildingInfo>
           <Type>SPECIALBUILDING_GROUP_ELITE_MILITARY_ACADEMIES</Type>
           <Description>TXT_KEY_SPECIALBUILDING_GROUP_ELITE_MILITARY_ACADEMIES</Description>
           <ObsoleteTech>NONE</ObsoleteTech>
           <TechPrereq>NONE</TechPrereq>
           <TechPrereqAnyone>NONE</TechPrereqAnyone>
           <iMaxPlayerInstances>1</iMaxPlayerInstances>
           <bValid>1</bValid>
           <Button>Art/Interface/Buttons/Buildings/BeachResort.dds</Button>
       </SpecialBuildingInfo>

To create a group wonder set, a group must be defined in the SPECIALBUILDING infos. By using the iMaxPlayerInstances tag there, you can define how many of the wonders in that set a particular player can build. Yes, this means it is possible to make a group wonder set that allows a player to select 2 or 3 of the buildings in that set to be built before they reach the limit of how many buildings in the set can be constructed for a particular player. The defined SpecialBuildingType tag is in use on each of the buildings in the group.

They are ALSO, generally speaking, World Wonders and thus in the buildingclass definitions they are given the iMaxGlobalInstance tag usage, usually set to '1', like any other world wonder.

Thus only one player may build the building anywhere, but by so doing, that player eliminates his own ability to build any of the other world wonders in that set. This ensures the rest of the buildings in the set are left to be built by other players in the game, thus ensuring that such world wonders cannot all be monopolized by a leading player.

It can also be used to ensure that all players end up with different specialties and abilities granted by the differing buildings in the group, making each player very different in the game.
 
Last edited:
I was just about to edit and say that if I was designing it I would do it that way but make sure it fits so that you can also have group National wonders and group buildings. Which I think that does.

That way it could be a tool for enforcing specialization if C2C wanted to go that way.
 
I was just about to edit and say that if I was designing it I would do it that way but make sure it fits so that you can also have group National wonders and group buildings. Which I think that does.

That way it could be a tool for enforcing specialization if C2C wanted to go that way.
I THINK you can do that. Hasn't been tested nor tried but it should work.
 
Is it possible to have Group Wonders separated from Great Wonders and National Wonders in the Pedia?

And if possible to be able to have all buildings of a group listed together. i.e.
Elite Universities

Military Academies
It should be possible to seperate them to a new sub-category, but it may be harder to list them together if they do not start with the same letter.
I have blue socks too.
who doesn't?
 
Last edited:
I can't open sevopedia in main menu - it seems like you forgot to upload some file. I'm using latest SVN.
Spoiler :

Traceback (most recent call last):

File "CvScreensInterface", line 328, in pediaShow

File "SevoPediaMain", line 67, in pediaShow

File "SevoPediaMain", line 414, in pediaJump

File "SevoPediaMain", line 133, in startPedia

TypeError: __init__() takes exactly 2 arguments (4 given)
ERR: Python function pediaShow failed, module CvScreensInterface


It doesn't work when opening game too:
Spoiler :

Traceback (most recent call last):

File "CvScreensInterface", line 328, in pediaShow

File "SevoPediaMain", line 66, in pediaShow

IndexError: pop from empty list
ERR: Python function pediaShow failed, module CvScreensInterface


Font in game is different than it used to be...
 
I can't open sevopedia in main menu - it seems like you forgot to upload some file. I'm using latest SVN.
You are quite right, I forgot to add the SevoPediaImprovement.py.
Re uploaded v0.5.2.
I hope it works now, thanks for notifying me.
My free time for modding has been limited lately so I haven't taken the time needed to do a clean test of the files I upload, sorry for the inconvenience..
 
It seems like worker build page is broken when wieving it in game
Spoiler :

Traceback (most recent call last):

File "CvScreensInterface", line 394, in pediaJumpToRoute

File "SevoPediaMain", line 611, in pediaJump

File "SevoPediaBuild", line 128, in interfaceScreen

NameError: global name 'szEraTime' is not defined
ERR: Python function pediaJumpToRoute failed, module CvScreensInterface
 
Now entire civilopedia doesn't open properly - it appears half transparent without index list in game.
 
Hmm, I'm stumped, it doesn't happen for me and I'm sure I included all the files this time...

Could you provide more info about when and how it happens?
I can't replicate it now. Probably it was one off random glitch.

Also where is content count index?
Added a content count to the index that tells you how many entries are therein.

Spoiler :

Traceback (most recent call last):

File "CvScreensInterface", line 337, in pediaMain

File "SevoPediaMain", line 439, in pediaJump

File "SevoPediaMain", line 666, in showContents

File "SevoPediaMain", line 938, in placePromotionTree

AttributeError: SevoPediaMain instance has no attribute 'H_CATEGORIES'
ERR: Python function pediaMain failed, module CvScreensInterface

Upgrade trees aren't working.

It seems like not all spaces were removed - some resources, leaders, techs and one special building have pink square at their name in index.
Bonuses: Ancient Relics, Cotton and Guinea Pigs,
Techs: Animal Husbandry, Animal Riding, Metal Casting, Bronze Working, Iron Working, Code of Laws, Siege Warfare, Civil Service, Printing Press, Divine Right, Scientific Method, Replaceable Parts, Steam Power, Military Science, Assembly Line, Astronautics, and String Analysis.
It seems like second half of tech tree almost avoided using white spaces in art definitions.
Like half of leaders have pink icons.
Only one building - special one name civic (martial law) has pink icon.
Some heroes have pink icons.
Tornado feature has pink icon.
 
Last edited:
Actually it is much worse as every leader in Custom Leaderheads needs to be done. That whole folder in fact.

edit I'll tackle Custom Leaderheads. The whole folder will need to be deleted and reinstalled in SVN. Luckily it is not too difficult, just tedious.

I thought I had a package that would do it all at once. It even says it did but when I checked it had not.

I have also changed New_Cultures slightly to make it a bit easier to merge in later.

edit2 I noted while fixing this that playing Caveman2Cosmos is still illegal in Germany. Do we have a warning that this is the case on the main page? Will there be a version that is legal?
 
Last edited:
Back
Top Bottom