problems with uu

Joined
Jan 16, 2006
Messages
2,267
I added a unique to my civilization in my mod and it doesn't show up in the civilopedia that it is the unique of that civilization. Also I changed the flag for Japan in worldbuilder but it doesn't show up in the game.(this if for Genghis khan scenario by the way)

<Units>
<Unit>
<UnitClassType>UNITCLASS_MACEMAN</UnitClassType>
<UnitType>UNIT_JAPAN_SAMURAI</UnitType>
</Unit>
</Units>

FlagDecal=Art/Interface/TeamColor/FlagDECAL_Dot.dds
 
I don't understand the problem with the flag. For the UU, I think it is normal that it doesn't appear automically in the pedia. You should add it yourselt in the strategy text. Does the UU work properly in game ?
 
I haven't tested with it fighting yet but it appears in worldbuilder icons and on the map. I'm worried that because it doesn't show up in the civilopedia, Japan can't build it.
 
ohcrapitsnico said:
I added a unique to my civilization in my mod and it doesn't show up in the civilopedia that it is the unique of that civilization. Also I changed the flag for Japan in worldbuilder but it doesn't show up in the game.(this if for Genghis khan scenario by the way)

<Units>
<Unit>
<UnitClassType>UNITCLASS_MACEMAN</UnitClassType>
<UnitType>UNIT_JAPAN_SAMURAI</UnitType>
</Unit>
</Units>

FlagDecal=Art/Interface/TeamColor/FlagDECAL_Dot.dds




here is a good tutorial on adding UU's/Buttons/Civs/Flags:


http://forums.civfanatics.com/showthread.php?t=148507


it is a tutorial on how to create a new civ... but it also explains about creating flags... UUs... flag buttons.... etc.. :goodjob:


ohcrapitsnico said:
...Also I changed the flag for Japan in worldbuilder but it doesn't show up in the game...


does your flag have an alpha channel incoporated in the dds file?

(if your flag is not showing up... but the leaderhead/civ's secondary color is showing up on flag banner... it probably means there is no alpha channel in the flag... or the alpha channel is the wrong color :( )

as for the unique UU you have to add it to your civilization info....

CIV4CivilizationsInfo.xml :p

unsure if those are the correct answers... but if you check out that link... it explains alot... (ive created 3 diff civs with 8 diff UU and 3 diff flags and it worked :cool: )


if these are not the problems.. please post more info (or the xml files/mod itself and I will check them out:) )


Hope this helps ;)
 
I did specify for a samurai unique unit in the civinfo xml but it doesn't show up. I did the same thing for another civilization and it worked fine and showed up in the civilopedia fine. The units work fine. On the flag the civ's previous flag appears not a blank one.:sad:
 
ohcrapitsnico said:
I did specify for a samurai unique unit in the civinfo xml but it doesn't show up. I did the same thing for another civilization and it worked fine and showed up in the civilopedia fine....

does your custom civ appear in the civopedia?

maybe you should rename the UU and use the new name for reference...

check out my previously posted links... they can help :mischief:

or post your files so I can d/l and try to fix em myself ;)




ohcrapitsnico said:
...I did the same thing for another civilization and it worked fine and showed up in the civilopedia fine. The units work fine. On the flag the civ's previous flag appears not a blank one.:sad:...

where did you place the new dds file?
it needs to be in customassets folder or a NEW mod folder (loading up mod) to work

check out those tutorials :king:
 
By the way I'm not using anything new or added, everything I'm using is from the game itself. I didn't add new civs, I just changed existing ones. I'll let you take a look at the files, I hope you have warlords, because that is what this is from.

Here is text in the wbs with the flag problem which is under Uighurs which I changed to japan(it won't say japan but uighurs), the flag I wanted changed to the default Japanese flag:
Spoiler :
BeginPlayer
Team=6
LeaderType=MOD_LEADER_BARTCHOUQ
LeaderName=Regent Hojo Tokimune
CivDesc=The Kamakura Shogunate
CivShortDesc=Kamakura Shogunate
CivAdjective=Japanese
FlagDecal=Art/Interface/TeamColor/FlagDECAL_Dot.dds
WhiteFlag=0
CivType=MOD_CIVILIZATION_UIGHURS
Color=PLAYERCOLOR_ORANGE
ArtStyle=ARTSTYLE_ASIAN
PlayableCiv=0
MinorNationStatus=0
StartingGold=10
StateReligion=
StartingEra=ERA_MEDIEVAL
CivicOption=CIVICOPTION_GOVERNMENT, Civic=CIVIC_DESPOTISM
CivicOption=CIVICOPTION_LEGAL, Civic=CIVIC_BUREAUCRACY
CivicOption=CIVICOPTION_LABOR, Civic=CIVIC_SLAVERY
CivicOption=CIVICOPTION_ECONOMY, Civic=CIVIC_DECENTRALIZATION
CivicOption=CIVICOPTION_RELIGION, Civic=CIVIC_PAGANISM
Handicap=HANDICAP_NOBLE
EndPlayer



Here is the enitre xml part of the unit(samurai):
Spoiler :
<UnitInfo>
<Class>UNITCLASS_MACEMAN</Class>
<Type>UNIT_JAPAN_SAMURAI</Type>
<UniqueNames/>
<Special>NONE</Special>
<Capture>NONE</Capture>
<Combat>UNITCOMBAT_MELEE</Combat>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_COUNTER</DefaultUnitAI>
<Invisible>NONE</Invisible>
<SeeInvisible>NONE</SeeInvisible>
<Description>MOD_TXT_KEY_UNIT_SAMURAI</Description>
<Civilopedia>TXT_KEY_UNIT_JAPAN_SAMURAI_PEDIA</Civilopedia>
<Strategy>TXT_KEY_UNIT_JAPAN_SAMURAI_STRATEGY</Strategy>
<Advisor>ADVISOR_MILITARY</Advisor>
<bAnimal>0</bAnimal>
<bFood>0</bFood>
<bNoBadGoodies>0</bNoBadGoodies>
<bOnlyDefensive>0</bOnlyDefensive>
<bNoCapture>0</bNoCapture>
<bRivalTerritory>0</bRivalTerritory>
<bMilitaryHappiness>1</bMilitaryHappiness>
<bMilitarySupport>1</bMilitarySupport>
<bMilitaryProduction>1</bMilitaryProduction>
<bPillage>1</bPillage>
<bSabotage>0</bSabotage>
<bDestroy>0</bDestroy>
<bStealPlans>0</bStealPlans>
<bInvestigate>0</bInvestigate>
<bCounterSpy>0</bCounterSpy>
<bFound>0</bFound>
<bGoldenAge>0</bGoldenAge>
<bInvisible>0</bInvisible>
<bFirstStrikeImmune>0</bFirstStrikeImmune>
<bNoDefensiveBonus>0</bNoDefensiveBonus>
<bIgnoreBuildingDefense>0</bIgnoreBuildingDefense>
<bCanMoveImpassable>0</bCanMoveImpassable>
<bFlatMovementCost>0</bFlatMovementCost>
<bIgnoreTerrainCost>0</bIgnoreTerrainCost>
<bNukeImmune>0</bNukeImmune>
<bPrereqBonuses>0</bPrereqBonuses>
<bPrereqReligion>0</bPrereqReligion>
<bMechanized>0</bMechanized>
<UnitClassUpgrades/>
<UnitClassTargets/>
<UnitCombatTargets/>
<UnitClassDefenders/>
<UnitCombatDefenders/>
<UnitAIs>
<UnitAI>
<UnitAIType>UNITAI_ATTACK</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
<UnitAI>
<UnitAIType>UNITAI_RESERVE</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
<UnitAI>
<UnitAIType>UNITAI_COUNTER</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
<UnitAI>
<UnitAIType>UNITAI_CITY_COUNTER</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
</UnitAIs>
<NotUnitAIs/>
<Builds/>
<ReligionSpreads/>
<GreatPeoples/>
<Buildings/>
<ForceBuildings/>
<HolyCity>NONE</HolyCity>
<ReligionType>NONE</ReligionType>
<StateReligion>NONE</StateReligion>
<PrereqReligion>NONE</PrereqReligion>
<PrereqBuilding>NONE</PrereqBuilding>
<PrereqTech>NONE</PrereqTech>
<TechTypes/>
<BonusType>BONUS_IRON</BonusType>
<PrereqBonuses/>
<ProductionTraits/>
<Flavors/>
<iAIWeight>0</iAIWeight>
<iCost>70</iCost>
<iHurryCostModifier>0</iHurryCostModifier>
<iMinAreaSize>-1</iMinAreaSize>
<iMoves>1</iMoves>
<iAirRange>0</iAirRange>
<iNukeRange>-1</iNukeRange>
<iWorkRate>0</iWorkRate>
<iBaseDiscover>0</iBaseDiscover>
<iDiscoverMultiplier>0</iDiscoverMultiplier>
<iBaseHurry>0</iBaseHurry>
<iHurryMultiplier>0</iHurryMultiplier>
<iBaseTrade>0</iBaseTrade>
<iTradeMultiplier>0</iTradeMultiplier>
<iGreatWorkCulture>0</iGreatWorkCulture>
<TerrainImpassables/>
<FeatureImpassables/>
<iCombat>9</iCombat>
<iAirCombat>0</iAirCombat>
<iAirCombatLimit>0</iAirCombatLimit>
<iXPValueAttack>4</iXPValueAttack>
<iXPValueDefense>2</iXPValueDefense>
<iFirstStrikes>3</iFirstStrikes>
<iChanceFirstStrikes>1</iChanceFirstStrikes>
<iInterceptionProbability>0</iInterceptionProbability>
<iEvasionProbability>0</iEvasionProbability>
<iWithdrawalProb>20</iWithdrawalProb>
<iCollateralDamage>0</iCollateralDamage>
<iCollateralDamageLimit>0</iCollateralDamageLimit>
<iCollateralDamageMaxUnits>0</iCollateralDamageMaxUnits>
<iCityAttack>0</iCityAttack>
<iCityDefense>0</iCityDefense>
<iAnimalCombat>0</iAnimalCombat>
<iHillsAttack>0</iHillsAttack>
<iHillsDefense>0</iHillsDefense>
<TerrainNatives/>
<FeatureNatives/>
<TerrainDefenses/>
<FeatureDefenses/>
<UnitClassAttackMods/>
<UnitClassDefenseMods/>
<UnitCombatMods>
<UnitCombatMod>
<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
<iUnitCombatMod>50</iUnitCombatMod>
</UnitCombatMod>
</UnitCombatMods>
<UnitCombatCollateralImmunes/>
<DomainMods/>
<BonusProductionModifiers/>
<iBombRate>0</iBombRate>
<iBombardRate>0</iBombardRate>
<SpecialCargo>NONE</SpecialCargo>
<DomainCargo>NONE</DomainCargo>
<iCargo>0</iCargo>
<iConscription>3</iConscription>
<iCultureGarrison>6</iCultureGarrison>
<iExtraCost>0</iExtraCost>
<iAsset>3</iAsset>
<iPower>7</iPower>
<UnitMeshGroups>
<iGroupSize>3</iGroupSize>
<fMaxSpeed>1.75</fMaxSpeed>
<iMeleeWaveSize>3</iMeleeWaveSize>
<iRangedWaveSize>3</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>3</iRequired>
<EarlyArtDefineTag>ART_DEF_UNIT_JAPAN_SAMURAI</EarlyArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
<Button>,Art/Interface/Buttons/Units/Samurai.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,5,6</Button>
<HotKey/>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<FreePromotions/>
<LeaderPromotion>NONE</LeaderPromotion>
<iLeaderExperience>0</iLeaderExperience>
</UnitInfo>



Here is the xml entry for the civ:
Spoiler :
<CivilizationInfo>
<Type>MOD_CIVILIZATION_UIGHURS</Type>
<Description>MOD_TXT_KEY_CIV_UIGHURS_DESC</Description>
<ShortDescription>MOD_TXT_KEY_CIV_UIGHURS_SHORT_DESC</ShortDescription>
<Adjective>MOD_TXT_KEY_CIV_UIGHURS_ADJECTIVE</Adjective>
<Civilopedia>TXT_KEY_GENGHIS_CIV_UIGHUR_TURKS_PEDIA</Civilopedia>
<DefaultPlayerColor>PLAYERCOLOR_ORANGE</DefaultPlayerColor>
<ArtDefineTag>MOD_ART_DEF_CIVILIZATION_UIGHURS</ArtDefineTag>
<ArtStyleType>ARTSTYLE_ASIAN</ArtStyleType>
<bPlayable>0</bPlayable>
<bAIPlayable>1</bAIPlayable>
<Cities>
<City>TXT_KEY_CITY_NAME_IDUNNO</City>
</Cities>
<Buildings/>
<Units>
<Unit>
<UnitClassType>UNITCLASS_MACEMAN</UnitClassType>
<UnitType>UNIT_JAPAN_SAMURAI</UnitType>
</Unit>
</Units>
<FreeUnitClasses/>
<FreeBuildingClasses/>
<FreeTechs/>
<DisableTechs/>
<InitialCivics>
<CivicType>CIVIC_DESPOTISM</CivicType>
<CivicType>CIVIC_BARBARISM</CivicType>
<CivicType>CIVIC_TRIBALISM</CivicType>
<CivicType>CIVIC_DECENTRALIZATION</CivicType>
<CivicType>CIVIC_PAGANISM</CivicType>
</InitialCivics>
<Leaders>
<Leader>
<LeaderName>MOD_LEADER_BARTCHOUQ</LeaderName>
<bLeaderAvailability>1</bLeaderAvailability>
</Leader>
</Leaders>
<CivilizationSelectionSound>AS3D_MONGOL_SELECT</CivilizationSelectionSound>
<CivilizationActionSound>AS3D_MONGOL_ORDER</CivilizationActionSound>
</CivilizationInfo>

Thanks for lookin at this stuff for me:thanx:
 
Sorry I dont have warlords so I dont know if I can help much :sad:

(I may get it later... but I want to make sure there are better tutorials about the xml changes that I need to update my mod :( )


I dont want to give you any wrong info... so I will not comment on it at this time...

sorry I cant help you at this time:(
 
That's fine, anyways I find it a mystery because its only with that peticular civ, I added another uu to it and the same thing happened, I added a uu to another civ and everything was fine.
 
ohcrapitsnico said:
That's fine, anyways I find it a mystery because its only with that peticular civ, I added another uu to it and the same thing happened, I added a uu to another civ and everything was fine.


it could be hardcoded :confused:
 
Back
Top Bottom