Python Performance and Interface Overhaul (PPIO)

Better! :lol: But still got these:
Code:
Traceback (most recent call last):
  File "BugEventManager", line 313, in _handleDefaultEvent
  File "CvEventManager", line 189, in onInit
AttributeError: 'module' object has no attribute 'init'
Traceback (most recent call last):
  File "BugEventManager", line 313, in _handleDefaultEvent
  File "CvEventManager", line 523, in onGameStart
  File "CvEventManager", line 465, in gameStart
NameError: global name 'aList' is not defined
 
Line 189 calls on the "ScreenResolution.init(dir)" right?

I have an ultrawide resolution of 2560x1080, maybe that is affecting things?
 
I have an ultrawide resolution of 2560x1080, maybe that is affecting things?
It can't be that.

Try renaming init to whatever you like (e.g. lalalalalala) in both the ScreenResolution.py line 9, and in CvEventmanager line 189.
upper case and lower case matter in python, make sure it's the same in both files.
 
Changed it to "pleasework". Same errors.
Code:
Traceback (most recent call last):
  File "BugEventManager", line 313, in _handleDefaultEvent
  File "CvEventManager", line 189, in onInit
AttributeError: 'module' object has no attribute 'pleasework'
 
Changed it to "pleasework". Same errors.
Can you search through all vanilla files and C2C files for "ScreenResolution.py".
The search should only find one file, if it finds more then one of them must be deleted.
I suspect you might have installed an older version of the modmod in your beyond the sword vanilla folder and may have to reinstall beyond the sword.
 
Last edited:
That must be it! I found one dated from August 5 in Sid Meier's Civilization IV Beyond the Sword\Beyond the Sword\Assets\Python\EntryPoints.

I'll let you know as soon as I finish reinstalling civ 4.

EDIT: Yep, that was the issue. Sorry for the headache Toffer... :sad:
 
Last edited:
EDIT: Yep, that was the issue. Sorry for the headache Toffer... :sad:
No problem, I'm glad we figured it out, and that there wasn't anything seriously wrong with the modmod.

PPIO v0.5.9.6.4
  • Reworked the plot list coding, deviating completly from original design and structure.
  • Performance improvements when interacting with plot list.
  • A noticeable reduction in plot list memory footprint, removed a lot of caching.
  • Adjusted positioning of tooltip for plot list icons.
  • Right clicking plot list icons now takes you to the units pedia page.
  • Plot list now scroll rows instead of columns.
  • The scroll buttons are new and positioned below the plot list at the middle of the screen.
  • The plot list icons now have three different scaling levels so that smalest resolutions can get a bit more icons in the list and the big resolutions have a bit less than what it used to be.
I can't guarantee that there won't be any glitches, hopefully not too much.

@KaTiON_PT: Since you have an ultra-wide resolution I would suggest you reduce the max amount of rows for the plot list, there's a setting obviously named in the global defines.
1-2 rows is probably enough for you and it will improve performance when there is enough units on the plot to fill all the default 4 rows, and then some, in the plot list.
 
Last edited:
What this plot list is?

By the way it would be nice if building selling window had filters for :food::hammers::commerce::science::culture::gold::espionage::gp: and for crime, air/water pollution, disease, education, tourism and flammability.
 
What this plot list is?
When you select a city or a unit, a list of all the unit sharing the plot with the selected entity appears, right above the bottom bar in the middle of the screen.
That is the plot list.
By the way it would be nice if building selling window had filters for :food::hammers::commerce::science::culture::gold::espionage::gp: and for crime, air/water pollution, disease, education, tourism and flammability.
Something for me to think about.
Right now I'm analyzing the code for the domestic screen. Not sure what I'm going to do there yet. Only made some optimization changes so far.
 
PPIO v0.5.9.6.5
  • Preliminary work on the domestic advisor screen.
  • BEWARE, you will need to delete the folder " CustomDomAdv " within the " UserSettings " folder when updating to this version.
 
PPIO v0.5.9.6.5
  • Preliminary work on the domestic advisor screen.
  • BEWARE, you will need to delete the folder " CustomDomAdv " within the " UserSettings " folder when updating to this version.
There are two files with similar name.
I deleted TXT one:
Got this error on my empty test map scenario.
Traceback (most recent call last):

File "CvScreensInterface", line 1086, in handleInput

File "CvMainInterface", line 5434, in handleInput

File "CvScreensInterface", line 139, in showDomesticAdvisor

File "CvDomesticAdvisor", line 612, in interfaceScreen

File "CvDomesticAdvisor", line 673, in drawScreen

File "CvDomesticAdvisor", line 1554, in drawContents

UnboundLocalError: local variable 'iCities' referenced before assignment
ERR: Python function handleInput failed, module CvScreensInterface

Deleted both custdomadvisor and customdomadvisor - still error.
Spoiler :

Civ4BeyondSword 2018-09-19 19-27-31-52.jpg

 
PPIO v0.5.9.6.5.1 ▬ Hotfix
  • Fixed a code oversight in the case when you have zero cities and open the domestic advisor screen.
Total city productivity window would be nice too.
Spoiler :
bsPtxwx.jpg



Commerce and Great People total+Generation can be added to that too (its old screenshot)
 
Total city productivity window would be nice too.
Spoiler :
bsPtxwx.jpg



Commerce and Great People total+Generation can be added to that too (its old screenshot)
I'll refine the default pages after I feel I've finished the technical coding for the domestic advisor screen.
I added your "Property Watch" page as a test to check how easy it would be to add new default pages.

Feel free to upload your CustomDomAdv.txt with suggestion pages for the default page set.
 
I have wierd bug. In city screen there is no buildings icons whatsoever
 

Attachments

  • 1.png
    1.png
    1.7 MB · Views: 55
Sorry, if this was mentioned somewhere earlier. Updated to the latest SVN, tried several variants of PPIO, but everytime upon loading my savegame I see an unclosing cityscreen.
 

Attachments

  • Новый точечный рисунок.jpg
    Новый точечный рисунок.jpg
    717.8 KB · Views: 135
Sorry, if this was mentioned somewhere earlier. Updated to the latest SVN, tried several variants of PPIO, but everytime upon loading my savegame I see an unclosing cityscreen.
You need clean install if this modmod.
 
Back
Top Bottom