God-Emperor
Deity
The variable "iImprovement" doesn't appear anywhere in the regular Final Frontier Plus version of CvFinalFrontierEvents.py, but it is in the B5 version (I happen to have v1.4 installed) in the onImprovementBuilt function. That function is 2 functions after the onModNetMessage function there (with onUnitBuilt in between).
My guess: Your indentation is off such that the line that says "def onImprovementBuilt(self, argsList):" (and the rest of the function, too) appears to the Python to be inside the onModNetMessage function. The line that says "def onModNetMessage(self, argsList):" is indented with one tab so the line that says "def onImprovementBuilt(self, argsList):" is indented more than that (and either you don't have the no longer needed onUnitBuildImprovement function or it is also indented too far) if my guess is right. There could also be problems with the onImprovementBuilt which ought to have a line that says "iImprovement, iX, iY = argsList". But this is all just a guess that is based on very little actual information.
Anyhow, in order to diagnose this better we need to see what is on line 395 of your new CvFinalFrontierEvents.py. We also need several lines before that line for context - 15 or so might be good enough.
My guess: Your indentation is off such that the line that says "def onImprovementBuilt(self, argsList):" (and the rest of the function, too) appears to the Python to be inside the onModNetMessage function. The line that says "def onModNetMessage(self, argsList):" is indented with one tab so the line that says "def onImprovementBuilt(self, argsList):" is indented more than that (and either you don't have the no longer needed onUnitBuildImprovement function or it is also indented too far) if my guess is right. There could also be problems with the onImprovementBuilt which ought to have a line that says "iImprovement, iX, iY = argsList". But this is all just a guess that is based on very little actual information.
Anyhow, in order to diagnose this better we need to see what is on line 395 of your new CvFinalFrontierEvents.py. We also need several lines before that line for context - 15 or so might be good enough.