Problems with python and the v1.61 patch

TheLopez

Deity
Joined
Jan 16, 2006
Messages
2,525
Location
Oregon
Is anyone else having issues running just the plain vanilla game after applying the v1.61 patch? At first I thought it might be my mod comp that I was testing for compatibility but the files that are throwing up the error are not included in my mod. :mad:

Here are some of the errors I'm getting:
Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 598, in forceScreenRedraw

  File "CvMainInterface", line 695, in redraw

  File "CvMainInterface", line 2193, in updateCityScreen

AttributeError: 'CyCity' object has no attribute 'getVisibleDefenseModifier'
ERR: Python function forceScreenRedraw failed, module CvScreensInterface
Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 66, in numPlotListButtons

AttributeError: CvMainInterface instance has no attribute 'numPlotListButtons'
ERR: Python function numPlotListButtons failed, module CvScreensInterface
 
TheLopez said:
Is anyone else having issues running just the plain vanilla game after applying the v1.61 patch? At first I thought it might be my mod comp that I was testing for compatibility but the files that are throwing up the error are not included in my mod. :mad:

Here are some of the errors I'm getting:
Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 598, in forceScreenRedraw

  File "CvMainInterface", line 695, in redraw

  File "CvMainInterface", line 2193, in updateCityScreen

AttributeError: 'CyCity' object has no attribute 'getVisibleDefenseModifier'
ERR: Python function forceScreenRedraw failed, module CvScreensInterface
Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 66, in numPlotListButtons

AttributeError: CvMainInterface instance has no attribute 'numPlotListButtons'
ERR: Python function numPlotListButtons failed, module CvScreensInterface


I suggest you have some version mixes :

- getVisibleDefenseModifier is removed from API. I used in my MSDA and already exchanged it.

- numPlotListButtons is a new method in the CvMainInterface, which doesn't exist in the old main interface.

You need to clean up a bit, I'm afraid.
 
Ok, got it to work. Here's how I did it:
1) Move the python and XML directories from the assets directory to somewhere else
2) Reinstall patch
3) Move the new python and XML directories into the same place where the old ones were placed. This will overwrite any of the old files
4) Move the merged python and XML directories back into the assests folder.
 
I had this same problem with my mod. Luckily it was easy to fix. I just compared the new patched version of the files in question to my modded ones then copied and pasted the new lines over my old ones. Basically i only had to update two things:

1) The contents in the section
Code:
def forceScreenRedraw (argsList):
in CvScreensInterface.py

and

2) Change around this line
Code:
iDefenseModifier = pHeadSelectedCity.getVisibleDefenseModifier()
in CvMainInterface.py to
Code:
iDefenseModifier = pHeadSelectedCity.getDefenseModifier(False)

It all worked good after that.

-Naf
 
The problem was that I didn't have any mods loaded and I was getting those errors... but the problem is fixed now :D and I have started updating my components to be compatible with the v1.61 patch.
 
Back
Top Bottom