Female CEO with CEO animation

SaibotLieh

Emperor
Joined
Sep 25, 2009
Messages
1,576
This modcomp adds a female CEO version to each cooperation. This unit cannot be build directly, but instead each time a normal CEO is build there is a certain chance that it becomes the female version. This chance is 15 % without and 50 % with Emancipation. Both gender count toward the maximal limit for CEOs one civ can have from one cooperation at the same time. The unit comes with female sound (mostly) and buttons, no extra files are needed as long as the directory structure is unchanged.
All changes in the files are marked with 'Female CEOs - saibotlieh', except in the .xml files of the sound directory (because comments here leads to errors while loading the mod. This took me quite some nerve to find out :mad:. Search here for 'CEO' instead).
The changes in CvPediaMain.py and CvPediaUnit.py are also marked different ('invisible units'). The addition of those two files is optional. They will make all units with a <Civilopedia>invisible</Civilopedia> entry disappear from the Civilopedia. Of course this happens to be the entry of the female CEOs. Using these files will therefore help to keep the Pedia a bit cleaner. ;)

Link: http://forums.civfanatics.com/downloads.php?do=file&id=13879

Credits/Thanks

davidlallen for pushing me to the right conclusions
The_J for his 'Invisible dummy techs' mod that I've modified to fit to my needs
God-Emperor for the idea to use the Civilopedia entry for turning the units invisible
eggs2121 who had the original idea for this (http://forums.civfanatics.com/showthread.php?t=297895). Further I used some parts of his skins for my creation

Known bugs/issus

The standard CEO have now a 'Replaced by :CEO name:' in their Civilopedia description. So far this seems to do no further harm.

Edit: Changed the criteria for the units to disappear from the Pedia from the cost of -121 to the Civilopedia entry 'invisible'.
 

Attachments

  • FemaleCEO_1.jpg
    FemaleCEO_1.jpg
    70.3 KB · Views: 397
  • FemaleCEO_2.jpg
    FemaleCEO_2.jpg
    118 KB · Views: 272
  • FemaleCEO_3.jpg
    FemaleCEO_3.jpg
    80.2 KB · Views: 254
I just a pink blob.
 
Best try the newer version of this mod. That version is modular and should therefore be easier to use.


I get it with all the girls. Soldier, CEO and Missionaries. And I had this new one as well. Not sure what I have done wrong. I edited the Python and XML as you said. At least I think I did the right ones.

I have been having a lot of trouble trying to get LH and Mods to work.
 
I get it with all the girls. Soldier, CEO and Missionaries. And I had this new one as well. Not sure what I have done wrong. I edited the Python and XML as you said. At least I think I did the right ones.

I have been having a lot of trouble trying to get LH and Mods to work.
Try starting small. First try to get one mod started. Then add stuff to it. Did you already check the instruction I've given you in my leaderhead thread?
 
Try starting small. First try to get one mod started. Then add stuff to it. Did you already check the instruction I've given you in my leaderhead thread?

If I open the Mission/Ceo mod and Soldiers mod separately they show up fine. Looks great :goodjob:.

I tried to add Soldiers files to the Mission/Ceo mod and the Mission/Ceo still come out fine but the soldiers come out as red blobs.

I also edited the Mission/Ceo python with the Soldiers entry but didn't help. Incl.

Code:
# Female Modern Soldiers - saibotlieh - start

		iplayer = gc.getPlayer(city.getOwner())
		iUnitType = unit.getUnitType()
		UnitInfo = gc.getUnitInfo(iUnitType)
		sUnitType = UnitInfo.getType()
		sMixedUnitType = 'UNIT_MIXED'+sUnitType[4:]
		iMixedUnitType = gc.getInfoTypeForString(sMixedUnitType)
		
		if iMixedUnitType > -1:
			if iplayer.isCivic(gc.getInfoTypeForString('CIVIC_EMANCIPATION')):
				iFemaleChance = 50
			else:
				iFemaleChance = 15
			
			NumOfFemales = 0
			iRnd = CyGame().getSorenRandNum(100, "First Person Female")
			if iRnd < iFemaleChance:
				NumOfFemales+=1
			iRnd = CyGame().getSorenRandNum(100, "Second Person Female")
			if iRnd < iFemaleChance:
				NumOfFemales+=1
			iRnd = CyGame().getSorenRandNum(100, "Third Person Female")
			if iRnd < iFemaleChance:
				NumOfFemales+=1
				
			if NumOfFemales > 0:
				if NumOfFemales == 2:
					iMixedUnitType = gc.getInfoTypeForString(sMixedUnitType+'12')
				if NumOfFemales == 3:
					iMixedUnitType = gc.getInfoTypeForString(sMixedUnitType+'03')
				
				oldunit = unit				
				pMixedUnit = iplayer.initUnit(iMixedUnitType,oldunit.getX(),oldunit.getY(),UnitAITypes.NO_UNITAI,DirectionTypes.DIRECTION_SOUTH)
				pMixedUnit.convert(oldunit)
				oldunit.kill(false,oldunit.getOwner())
							 
# Female Modern Soldiers - saibotlieh - end

After # Female Missionaries - saibotlieh - end

Haven't check your LH mod entry yet.
 
If I open the Mission/Ceo mod and Soldiers mod separately they show up fine. Looks great :goodjob:.

I tried to add Soldiers files to the Mission/Ceo mod and the Mission/Ceo still come out fine but the soldiers come out as red blobs.

I also edited the Mission/Ceo python with the Soldiers entry but didn't help. Incl.

Code:
# Female Modern Soldiers - saibotlieh - start

		iplayer = gc.getPlayer(city.getOwner())
		iUnitType = unit.getUnitType()
		UnitInfo = gc.getUnitInfo(iUnitType)
		sUnitType = UnitInfo.getType()
		sMixedUnitType = 'UNIT_MIXED'+sUnitType[4:]
		iMixedUnitType = gc.getInfoTypeForString(sMixedUnitType)
		
		if iMixedUnitType > -1:
			if iplayer.isCivic(gc.getInfoTypeForString('CIVIC_EMANCIPATION')):
				iFemaleChance = 50
			else:
				iFemaleChance = 15
			
			NumOfFemales = 0
			iRnd = CyGame().getSorenRandNum(100, "First Person Female")
			if iRnd < iFemaleChance:
				NumOfFemales+=1
			iRnd = CyGame().getSorenRandNum(100, "Second Person Female")
			if iRnd < iFemaleChance:
				NumOfFemales+=1
			iRnd = CyGame().getSorenRandNum(100, "Third Person Female")
			if iRnd < iFemaleChance:
				NumOfFemales+=1
				
			if NumOfFemales > 0:
				if NumOfFemales == 2:
					iMixedUnitType = gc.getInfoTypeForString(sMixedUnitType+'12')
				if NumOfFemales == 3:
					iMixedUnitType = gc.getInfoTypeForString(sMixedUnitType+'03')
				
				oldunit = unit				
				pMixedUnit = iplayer.initUnit(iMixedUnitType,oldunit.getX(),oldunit.getY(),UnitAITypes.NO_UNITAI,DirectionTypes.DIRECTION_SOUTH)
				pMixedUnit.convert(oldunit)
				oldunit.kill(false,oldunit.getOwner())
							 
# Female Modern Soldiers - saibotlieh - end

After # Female Missionaries - saibotlieh - end

Haven't check your LH mod entry yet.
The red blob means that there is something wrong with the path to the graphic files. The python code has nothing to do with that. Can you post the full folder path to the female soldier graphic folder? It should look something like this:
Code:
D:\games\Firaxis Games\Sid Meier's Civilization 4\Beyond the Sword\Mods\Female Missionaries\Assets\Modules\Female Modern Soldiers\Custom Units\Art\Units\Female_Paratrooper
 
E:\Program Files (x86)\Games\Sid Meier's Civilization 4 Complete\Beyond the Sword\Mods\Female Modern Soldiers\Assets\Modules\Female Modern Soldiers\Custom Units\Art\Units\Female_Paratrooper

Couldn't find the paratrooper in missionaries. Just Missionaries and CEO. Coping Soldiers over created the blob for them.

But I also have created what you said in the other thread.

C:\Users\Don\Documents\My Games\Beyond the Sword\MODS\Favourites\Female Modern Soldiers\Assets\Modules\Female Modern Soldiers\Custom Units\Art\Units\Female_Paratrooper

But I haven't tried it yet.

UPDATE: Got it working with your advice in the other thread. THANKS FOR YOUR PATIENCE!
 
Top Bottom