Err: failed to load python module CvEventInterface

Uty

I hate you, Milkman Dan
Joined
Apr 13, 2005
Messages
124
Location
Newark, Delaware
Hey folks. I'm working on a mod (I see I'm not the only one) and decided to start out simple. The ultimate goal is to improve the military advisor screen. Just to get things started I wanted to change some text on that screen to read "hello, world." (After that I get started with the real work, which needs to be done in Python)

In my install dir, I made a "MyMod" subdirectory within Mods. Here's the structure I filled in.

MyMod
|
--Assets
--Python
--|
----Screens
----EntryPoints // Added this during the second try, after I got the error

I havn't made any XML files or anything, so I didn't make XML directories. Same for art or any other oddities. I made a quick change to CvMilitaryAdvisor.py and put that in MyMod/Python/Screens. Civ was started, and my mod showed up in the list. I picked that, and Civ restarted. During the load a popup appeared noting "Failed to load python module CvEventInterface.py" I made the MyMod/Python/EntryPoints subdirectory and populated it with Assets/Python/EntryPoints/CvEventInterface.py ... I reloaded the module and got the same error.

To my knowledge you only have to provide the files that you have changed. Then the game loads the files you have not overridden from Assets. Are there other files that need to be included, or other steps that I need to take?

Thanks
 
It doesn't always state the file that actually has the error. If the game tries to load a python file that loads another python file which has an error it'll only tell you it couldn't load the first file. Which is true, it can't load it, because that file can't load the file with the error. In this case either your mod or another mod you're using is causing the problem. Problably your mod. Problably the error isn't actually in CvEventInterface.
 
Back
Top Bottom