Infernals capturing a city still causes oos in 2.51. Any progress on getting this fixed?
Unfortunately not. I hope to get the fix for the OOS logs not being generated into the next release.
If you are going for the easy route, you need to edit CvEventmanager.py as follows:
Find the part that looks like this:
Code:## EVENTLIST self.EventHandlerMap = { 'mouseEvent' : self.onMouseEvent,
Change the 'mouseEvent' line to look like this:
Then do the same for the next 80 or so similar lines. It really helps if you use a regex-capable search & replace tool.Code:'mouseEvent' : CvEventManager.onMouseEvent.__get__(self,CvEventManager),
The next part is not strictly necessary; just a little future-proofing:
Change all occurences of "self.beginEvent(" with "CvEventManager.beginEvent(self,".
You probably also want to replace OOSLogger.py with the one from C2C that you linked to, as it contains a little more functionality.
Traceback (most recent call last):
File "BugEventManager", line 361, in _handleDefaultEvent
File "Civ4lerts", line 908, in onBeginActivePlayerTurn
File "Civ4lerts", line 946, in check
AttributeError: WorstEnemy instance has no attribute 'enemies'
I tried this and ended up getting errors in Civ4lerts.
Code:Traceback (most recent call last): File "BugEventManager", line 361, in _handleDefaultEvent File "Civ4lerts", line 908, in onBeginActivePlayerTurn File "Civ4lerts", line 946, in check AttributeError: WorstEnemy instance has no attribute 'enemies'
I'm guessing that the reset function in Civ4lerts.py is not being called but I really dont understand all of this python stuff.
When are you getting this error?
Pretty much from the start. I'm attaching my copy of the CvEventManager that was giving me errors (changing the extension to .txt so the forums will let me upload it). Maybe you can spot something that I did wrong.
Looks fine to me. Seems to work fine too when I test it.
OK. I uploaded fe79's fix as well as the OOSLogger from c2c in revision 1616.
I'm not set up to test multiplayer, so I could use some help from anyone willing to test this fix.
If you can let me know how to get setup to test I could do it. I was able to download the trunk of more naval ai with svn. But I'm not sure what to do next.
IIRC the most pressing ones are the random Kuriotate OOS and the Infernal capture city OOS, right?
i have a few questions,
1.so the mod mp stable?
2. does it have better ai fixes then c2c?
3. is it better then kmods?
4. have you considered platyping ui?
5. may i use your code in my mods in the future?
Actually all you need to do is replace those two files, CvEventManager and OOSLogger. No DLL compile required.
If you do want to compile the DLL, check out this guide - http://forums.civfanatics.com/showthread.php?t=405444
Yes, as far as I know.