Sevopedia Unit Screen cannot show correct unit styled icon

jade8880

Chieftain
Joined
Aug 14, 2003
Messages
86
I am using Sevopedia in game, and a lot of styled units. The styled unit icons can be corretly showed in Tech Advisor Screen.

Spoiler Tech Advisor Screen :
TechTree.jpg


Styled units are showed in "Rocketry" and "Advanced Flight."

But the Unit pedia shows the icon of the general un-styled unit.

Spoiler Unit Pedia :


SevopediaUnit.jpg



Any idea?

Thanks.
 
This Git commit of mine should have you covered – except for the category listing (2nd column in your screenshot). My notes say that this too could be fixed through SevopedaMain.py, but that it'll take more effort, and that the approach in this MNAI commit might be helpful in this case.

(On a side note, I guess the Pedia is intended as a pretty static source of information, so it may be on purpose that it doesn't take into account the player's civ.)
 
This Git commit of mine should have you covered – except for the category listing (2nd column in your screenshot). My notes say that this too could be fixed through SevopedaMain.py, but that it'll take more effort, and that the approach in this MNAI commit might be helpful in this case.

(On a side note, I guess the Pedia is intended as a pretty static source of information, so it may be on purpose that it doesn't take into account the player's civ.)
Thank you for the reply.

I put your mod into Civ VI Remaster Mod and gave it a try. It looks right in the Unit Pedia, Tech Pedia, and Unit Upgrade Tree. However, CvMainInterface.py does not work for me. Here is screeshot:
Spoiler Modified CvMainInterface.py :

2024-01-09.jpg



Basically the interface disappears. Likely it was caused by Civ VI Remaster Mod. But coding is really beyond me so I have no clue.
 
This usually means that the redrawing of the main interface was cut short due to some uncaught Python exception. To find out the cause, LoggingEnabled needs to be set to 1 in My Games\Beyond the Sword\CivilizationIV.ini (before launching Civ) so that PythonErr.log (same place, under Logs) can be consulted. E.g. if the indentation before the changed line isn't right, it may say:
Spoiler :
Code:
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "<string>", line 52, in load_module
  File "CvEventInterface", line 17, in ?
  File "<string>", line 52, in load_module
  File "BugEventManager", line 102, in ?
  File "<string>", line 52, in load_module
  File "CvEventManager", line 12, in ?
  File "<string>", line 52, in load_module
  File "CvScreensInterface", line 3, in ?
  File "<string>", line 35, in load_module
  File "<string>", line 13, in _get_code
  File "
CvMainInterface
", line 
3063

    
screen.changeImageButton(szString,
    
	
^
IndentationError
: 
unindent does not match any outer indentation level
 
Top Bottom