Python Performance and Interface Overhaul (PPIO)

More errors when starting new game:

Traceback (most recent call last):
File "BugEventManager", line 313, in _handleDefaultEvent
File "CvEventManager", line 523, in onGameStart
File "CvEventManager", line 506, in gameStart
AttributeError: 'NoneType' object has no attribute 'getBuildingClassType'
 
I got this at game start:

Traceback (most recent call last):
File "BugEventManager", line 313, in _handleDefaultEvent
File "CvEventManager", line 189, in onInit
AttributeError: 'module' object has no attribute 'init'
A clean install is nessesarry for the last version. Simply overwriting a preinstalled old version of this modmod will cause errors.

If you didn't do a clean install then you could try to delete the ScreenResolution.py file within the python\EntryPoint folder, and see if that is enough to fix your issue.
 
No errors now after clean install :) but "Inverse shift on queue" still broken :(

Suggestion: remove "Requires...." from specialist tooltips, most are really long and I doubt nobody will actually read that part.
 
Suggestion: remove "Requires...." from specialist tooltips, most are really long and I doubt nobody will actually read that part.
While this info might still be interesting, it would probably be better indeed if the info was shown with the respective building instead where it would show - at most - one type of specialist enabled by this building, I think.
 
Using 0.5.9.6.3.4 with the latest SVN 10176.

Did a clean install as recommended and got this upon loading the mod.
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'
 
Using 0.5.9.6.3.4 with the latest SVN 10176.

Did a clean install as recommended and got this upon loading the mod.
Do you have a file called ScreenResolution.py in " Python\EntryPoints ".
If so, then you did not do a clean install.
------------------------------------------------------
Does the ScreenResolution.py in Python\DataStorage contain a line like this: " def init(dir): " ?

is line 189 in your CvEventManager: " ScreenResolution.init(dir) " ?

If so then I don't understand how you can get the error you get.
 
Last edited:
Really did a clean install, as I deleted the entire C2C folder and exported it again from the latest SVN.

No screen ScreenResolution.py in Python\EntryPoints, I have it in Python\DataStorage as you've said.

I can confirm I have that "def init(dir):" in line 9.

And in CvEventManager I have "ScreenResolution.init(dir)".

I'll do a clean install once again.
 
Really did a clean install, as I deleted the entire C2C folder and exported it again from the latest SVN.

No screen ScreenResolution.py in Python\EntryPoints, I have it in Python\DataStorage as you've said.

I can confirm I have that "def init(dir):" in line 9.

And in CvEventManager I have "ScreenResolution.init(dir)".

I'll do a clean install once again.
Strange... then everything seems to be in order.

The error you got was identical to the one Fermongu got, and his error went away after a clean install.
Come back to me if you still have the problem after a second clean install, I'll figure out the problem with you.
Hmm looks like it's in core, it says "CFG error: failed to initialize the primary control theme."
?? that is the error you would get if the C2C mod folder is wrongly named when using this modmod..

By core, do you mean without having my modmod installed? Perhaps do an SVN "clean up" of your SVN folder.
 
Last edited:
Looks right to me. :\

The interesting part is that if I place you modmod in the exe doesn't crash and succeeds in starting.
By core, do you mean in the SVN? Perhaps do an SVN "clean up" of your SVN folder.
I'll do that.
 

Attachments

  • Caveman2Cosmos.png
    Caveman2Cosmos.png
    46.7 KB · Views: 35
Even with the cleanup. :sad:

Do you have the latest SVN already, the one pepper2000 committed this night? Wondering if that has anything to do.

EDIT: I'll download the entire SVN again and see if that corrects it. If not then I will post this issue on the bug reports thread.
 
Last edited:
I can confirm it was something in SVN 10176, raxo2222 has since committed some changes and 10177 works in my machine again. :crazyeye:
 
Last edited:
Bug report for PPIO v0.5.9.6.3.5:

This appeared as the game finished loading a new map (when the bug menu that lists options usually appears).
Code:
Traceback (most recent call last):
  File "BugEventManager", line 313, in _handleDefaultEvent
  File "CvEventManager", line 523, in onGameStart
  File "CvEventManager", line 506, in gameStart
AttributeError: 'NoneType' object has no attribute 'getBuildingClassType'
 
Got a large error log. :sad:

Says I can't find module CvEventInterface.

Other notable ones:
Code:
Traceback (most recent call last):
  File "CvAppInterface", line 35, in forceBUGModuleInit
  File "BugInit", line 84, in initForced
  File "BugInit", line 103, in loadMod
  File "BugUtil", line 233, in error
  File "BugUtil", line 250, in log
  File "BugUtil", line 264, in logToScreen
RuntimeError: unidentifiable C++ exception
Code:
Traceback (most recent call last):
  File "CvAppInterface", line 51, in onSave
AttributeError: 'module' object has no attribute 'onEvent'
Code:
Traceback (most recent call last):
  File "CvAppInterface", line 67, in preGameStart
AttributeError: 'module' object has no attribute 'getEventManager'
 

Attachments

Back
Top Bottom