[b][i] iBuildingManufacturingPlant = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_MANUFACTURING_PLANT')[/i][/b]
iBuildingStarFortress = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_STAR_FORTRESS')
aiIncreasedCostList = [iBuildingTrainingCompound, iBuildingFactory, [b][i]iBuildingManufacturingPlant[/i][/b], iBuildingStarFortress]
[b][i] iBuildingRoboMinerPlant = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_ROBO_MINER_PLANT')
iBuildingRobotFactory = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_ROBOTFACTORY')
iBuildingDeepCoreMine = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_DEEPCOREMINE')[/i][/b]
iBuildingStarFortress = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_STAR_FORTRESS')
aiIncreasedCostList = [iBuildingTrainingCompound, iBuildingFactory, [b][i]iBuildingRoboMinerPlant, iBuildingRobotFactory, iBuildingDeepCoreMine[/i][/b], iBuildingStarFortress]
All that aside then I spotted 2 problems in the CvFinalFrontierEvents.py file.
In line 1474 a variable is declared pointing to a non-existant building (BUILDING_MANUFACTURING_PLANT) - and the variable is used in line 1476. This causes Python pop ups on the city screen.
I removed the erroneous entries and replaced them with the following (for the new production boosting buildings):Code:[B][I] iBuildingManufacturingPlant = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_MANUFACTURING_PLANT')[/I][/B] iBuildingStarFortress = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_STAR_FORTRESS') aiIncreasedCostList = [iBuildingTrainingCompound, iBuildingFactory, [B][I]iBuildingManufacturingPlant[/I][/B], iBuildingStarFortress]
In line 1648 a variable is defined for the 'BARBARIAN_TRAIT' which doesn't exist - and it is used in line 1650 to check if new units should be given extra starting XP.Code:[B][I] iBuildingRoboMinerPlant = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_ROBO_MINER_PLANT') iBuildingRobotFactory = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_ROBOTFACTORY') iBuildingDeepCoreMine = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_DEEPCOREMINE')[/I][/B] iBuildingStarFortress = CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'BUILDING_STAR_FORTRESS') aiIncreasedCostList = [iBuildingTrainingCompound, iBuildingFactory, [B][I]iBuildingRoboMinerPlant, iBuildingRobotFactory, iBuildingDeepCoreMine[/I][/B], iBuildingStarFortress]
This cause Python popups whenever a new unit is build and gives ALL new units for ALL players extra XP.
To fix this I merely re-added the 'BARBARIAN_TRAIT' (doing nothing apart from being in the game) and gave it to all the Barbarian leaders.
Hey JEELEN, just downloaded Patchf and I like the way this mod is going.
I did find a few small issues.
1: There is one python exception left at the start of the game. In CvFinalFrontierEvents.py lines 94 and 101 need to be commented out or removed. Line 94 calls TECH_HAPPY_0 which isn't a valid TechType and line 101 then calls the variable that is set on line 94. No where else in the file uses those two lines so there should be no problems with removing them and my tests have confirmed that so far.
2: There is an extra "Assets" directory under the real "MOO2Civ (Patch4f)\Assets" directory.
3: There are redundant CIV4UnitClassInfos.xml and CIV4UnitInfos.xml files in the "MOO2Civ (Patch4f)\Assets" directory.
4: The mods opening page uses the default Final Frontier image, have you thought about using a MOO2Civ main menu image?
CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'[b][i]BUILDING_PLANET_MISSILEBASE[/i][/b]'),
CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'[b][i]BUILDING_PLANET_GROUNDBATTERIES[/i][/b]'),
CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'[b][i]BUILDING_PLANET_STAR_FORTRESS[/i][/b]'),
CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'[b][i]BUILDING_MISSILEBASE[/i][/b]'),
CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'[b][i]BUILDING_GROUNDBATTERIES[/i][/b]'),
CvUtil.findInfoTypeNum(gc.getBuildingInfo,gc.getNumBuildingInfos(),'[b][i]BUILDING_STAR_FORTRESS[/i][/b]'),
Meanwhile, I've been playing a game on a Huge FF Flatmap on Hard level.