Merging 2 event managers

Hmm, I don't see a problem there. Make sure that the only module importing CvCustomEventManager is CvEventInterface. Perhaps you have a cyclical import (A imports B imports C imports A), and that can throw Python for a loop (no pun intended).

If that's not it, make sure you don't have duplicate copies of the same module in your Python hierarchy. Make sure those files you're posting are actually in your Python hierarchy. :)

If you still cannot find the problem, zip up your Python folder and post it. I'll see if I can take a look at it in the next few days.
 
well looking through it again, I did find a little discrepancy, I tried fixing it myself, but of course anything I touch in python just crashes and burns.

Code:
import MongolCamp
import WinterModEventManager

gc = CyGlobalContext()
class CvCustomEventManager(CvEventManager.CvEventManager, object):

	CustomEvents = {}
		
	def __init__(self, *args, **kwargs):

Code:
import MongolCamp
import WinterModEventManager

gc = CyGlobalContext()
class CvCustomEventManager(Cv[COLOR="Blue"]Custom[/COLOR]EventManager.Cv[COLOR="Blue"]Custom[/COLOR]EventManager, object):

	CustomEvents = {}
		
	def __init__(self, *args, **kwargs):

it didn't do anything, and in fact I got the exact same log even after changing that

just as a note, that change is reflected in this folder I attached

and of course nobody but me will be able to test this unless you have downloaded the most recent working version of ACW. Its just a pre-release so kevinman4404 could help me, so I doubt anyone has it.
 
Nope, definitely undo that change. That line says that the CvCustomEventManager class is a more specialized form of the CvEventManager class. Your change makes it say that it is a more specialized form of itself. ;) That's not allowed in any programming language I've seen.
 
Okay, right away I see that you have two CvEventInterface.py modules. :nono: It must go into the EntryPoints folder only in order to override the one in Civ4's Assets folder.
 
so just delete the one in the main python folder and it'll work?
 
well, at least i got a different log this time

Code:
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "<string>", line 52, in load_module
  File "CvEventInterface", line 14, in ?
  File "CvCustomEventManager", line 43, in __init__
AttributeError
: 
'module' object has no attribute 'WinterModEventManager'

Failed to load python module CvEventInterface.
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface
ERR: Call function onEvent failed. Can't find module CvEventInterface

and this is line 43 of the cvCustomEventManager;

Code:
WinterModEventManager.WinterModEventManager(self)
 
Back
Top Bottom