Python Performance and Interface Overhaul (PPIO)

v0.3.1 - minor update
  • Building pedia pages now show how many of a another certain building is required to construct the building.
Spoiler Picture :
Untitled-1.jpg

The word "Own" will only be in front of the first building if there are more than one building that you need a certain amount of, the following buildings will then only have the number needed listed to the left of the building icon.
 
Actually, I think it does. It will be wrong if you look at the pedia before you load/start a game but correct once in game.
I've only looked at that number in the pedia without starting a game, and it shows the correct amount then.
It probably shows the wrong amount when it's scaled by the in-game-options, but can't say for sure without starting a game. ^^
 
It is based on the options you chose last time, or the default if you have never played C2C if you open the pedia from the start up screens.
 
v0.4
  • You can now listen to the tech quote in tech pedia pages.
  • Adjusted game fonts, and made font size in pedia scale by screen resolution.
  • Overhauled the civic pedia page display.
Wow, wow and WOW!

Great idea to be able to get the tech quote to play from the pedia!
 
v0.4
  • You can now listen to the tech quote in tech pedia pages.
  • Adjusted game fonts, and made font size in pedia scale by screen resolution.
  • Overhauled the civic pedia page display.
v0.4.1 - Hotfix
  • Fixed two blatant errors in v0.4
  1. Civics having promotion names.
  2. A technical issue that caused python error messages when opening a select few promotion pages.
 
Last edited:
Using latest version.
It seems like units unlocked section in technology window is broken.
Also it would be nice if improvement pages showed what units can place them and on what terrains they are placeable.
Spoiler :
wLyqYr1.jpg
 
Last edited:
Huh, what error message do you get?
I'm not getting any error messages.

Edit: enabled logs - no idea why it was disabled...

Here is error:
Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 362, in pediaShow

  File "SevoPediaMain", line 69, in pediaShow

  File "SevoPediaMain", line 417, in pediaJump

  File "SevoPediaMain", line 134, in startPedia

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

Sounds like one of most basic errors.

Also font in entire game is suddenly bold

And this is error when trying to open sevopedia ingame.
Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 362, in pediaShow

  File "SevoPediaMain", line 68, in pediaShow

IndexError: pop from empty list
ERR: Python function pediaShow failed, module CvScreensInterface
 
Last edited:
Re-uploaded v0.4.2 in the opening post.
I must have forgotten to include one of the files I changed between v0.4.1 and v0.4.2 when I zipped up v0.4.2 the first time around.
 
Last edited:
If I click something while viewing techs in chronological order, then can "back button" go back to chronology category?
Now it goes to era category after cheking something.
Spoiler :

DmnRlzM.jpg

ziYzhUp.jpg

uyOLvBp.jpg



Some buildings aren't displayed correctly:
Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 405, in pediaJumpToBuilding

  File "SevoPediaMain", line 609, in pediaJump

  File "SevoPediaBuilding", line 156, in interfaceScreen

NameError: global name 'buildingClassType' is not defined
ERR: Python function pediaJumpToBuilding failed, module CvScreensInterface
Spoiler :

MpQFtKc.jpg


It seems like it happened to all buildings when launching sevopedia in game.
 
Last edited:
Here's another one that could be nice to have exposed to python:

bool CvPromotionLineInfo::isBuildUp() const
{
return m_bBuildUp;​
}

I can make a build up sub category by looking at the description name, all build up names start with "Build up".
But that function makes it a bit more flexible in case we wan't to change naming conventions for those types of promos.

That'd be nice. While you're at it, can we split out statuses as well?

I'll try to get these bools exposed later tonight. I SHOULD be able to find the time then.
 
v0.4.3
  • This is a pretty stable version. I tested many functions both in game and from menu, and I made sure I packed all the updated files into the zip. Sorry for the latest unstable versions.
  • Back and Next button functions will now remember if you were in "all eras" or "chronology" sub-categories for techs.
  • Made buildings show correctly how many of a building it requires when in a game with a map size that modifies the amount needed.
  • Bonus pedia pages are a mess atm, WIP.
I'll try to get these bools exposed later tonight. I SHOULD be able to find the time then.
Cool.
 
Last edited:
  • Reports isStatus (promotioninfo) and isBuildup (promotionlineinfo) to python

The important thing to recognize here is the difference between promotionline and promotion infos. Would be nice to divide out statuses.
 
0.4.3.7. has problems.

I tried it without this mod installed and it works just fine.
Do you mean v0.4.3...

It looks like you installed it wrong, are anyone else experiencing this?
If nothing else work for you, try to install the modmod by copying only the "Asset/Python" folder into your "Caveman2Cosmos", just ignore the Resource and XML folders.

Edit: If your C2C mod folder is not installed in the "CIV4/BTS/Mods/Caveman2Cosmos" the Resource and XML folder part will not work, and the mod folder must be named exactly "Caveman2Cosmos".
 
Last edited:
Okay, so, the answer is I'm an idiot and put spaces in the mod folders name.

Unfortunately, my game is saved with that folder name so I can't continue it with the fixed name, and seeing as it's in the mid Transhuman era, I'm most certainly not restarting it. So, no new Sevopedia for me, I guess.
 
Back
Top Bottom