World Wonder movies not playing? Can somebody look at this code...

Grave

1 Goat = 400 Horses
Joined
May 5, 2002
Messages
1,530
Location
Louisiana
None of my World Wonder movies play! :mad:


I have an Inquisition mod that I use that was a modification of Master Lexx's Inquisition mod. This seems to be the python code that triggers the Inquisition:

Code:
	def onBuildingBuilt(self, argsList):
		'Building Completed'
		pCity, iBuildingType = argsList
		game = CyGame()
		iInquisition = gc.getInfoTypeForString('BUILDING_INQUISITION')
		iActivePlayer = CyGame().getActivePlayer()
		iOwner = pCity.getOwner()
		if iBuildingType == iInquisition:
			if (not CyGame().isNetworkMultiPlayer()) and (not iOwner == iActivePlayer): 
				#check for MP or else everybody active -> snyc loss
				pCity.setHasRealBuilding(iInquisition, False)
			else:
				szReligionList = [ ]
				StateBelief = gc.getPlayer(pCity.getOwner()).getStateReligion()
				for i in range(gc.getNumReligionInfos()):
					if (not StateBelief == i and pCity.isHasReligion(i) and not pCity.isHolyCityByType(i)):
						szReligionList.append(i)
				if len(szReligionList) != 0:
					iTarget = szReligionList[CyRandom().get(len(szReligionList), "Get a random number for religion removal.")]
					pCity.setHasReligion(iTarget, False, True, True)
					for i in range(gc.getNumBuildingInfos()):
						if gc.getBuildingInfo(i).getPrereqReligion() == iTarget:
							pCity.setHasRealBuilding(i, False)
							pCity.setHasRealBuilding(iInquisition, False)
				if pCity.isHolyCityByType(i):
					pCity.setHasRealBuilding(iInquisition, False)
			if pCity.isHasRealBuilding(iInquisition):
				pCity.setHasRealBuilding(iInquisition, False)
             	if iBuildingType == Inquisition:
                    cf.Inquisit(pCity)
                    pCity.setHasRealBuilding(Inquisition, False)

		if ((not self.bMultiPlayer) and (pCity.getOwner() == CyGame().getActivePlayer()) and isWorldWonderClass(gc.getBuildingInfo(iBuildingType).getBuildingClassType())):
			# If this is a wonder...
			popupInfo = CyPopupInfo()
			popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_PYTHON_SCREEN)
			popupInfo.setData1(iProjectType)
			popupInfo.setData2(pCity.getID())
			popupInfo.setData3(2)
			popupInfo.setText(u"showWonderMovie")
			popupInfo.addPopup(pCity.getOwner())


If you look at the original python code that came with the game, it seems like this would be the one that triggers the wonder movies. It looks like this:

Code:
	def onBuildingBuilt(self, argsList):
		'Building Completed'
		pCity, iBuildingType = argsList
		game = CyGame()
		if ((not CyGame().isNetworkMultiPlayer()) and (pCity.getOwner() == CyGame().getActivePlayer()) and isWorldWonderClass(gc.getBuildingInfo(iBuildingType).getBuildingClassType())):
			# If this is a wonder...
			popupInfo = CyPopupInfo()
			popupInfo.setButtonPopupType(ButtonPopupTypes.BUTTONPOPUP_PYTHON_SCREEN)
			popupInfo.setData1(iBuildingType)
			popupInfo.setData2(pCity.getID())
			popupInfo.setData3(0)
			popupInfo.setText(u"showWonderMovie")
			popupInfo.addPopup(pCity.getOwner())

		CvAdvisorUtils.buildingBuiltFeats(pCity, iBuildingType)

		if (not self.__LOG_BUILDING):
			return
		CvUtil.pyPrint('%s was finished by Player %d Civilization %s' 
			%(PyInfo.BuildingInfo(iBuildingType).getDescription(), pCity.getOwner(), gc.getPlayer(pCity.getOwner()).getCivilizationDescription(0)))


However, even after I removed all the Inquisition code, just to see if the movies would pop back up... nothing happens!



So for all you python experts... what is it I'm doing wrong?? How can I get my Wonder movies playing again?
 
Back
Top Bottom