更换图标




如何更换图标?总是有人些喜欢问这些低级问题。


方法:我拿格林机枪作为例子。
  protoy.xml - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)
	<Unit id ='774' name ='xpGatlingGun'>
<DBID>1165</DBID>
<DisplayNameID>45211</DisplayNameID>
<EditorNameID>45212</EditorNameID>
<PopulationCount>4</PopulationCount>
<ObstructionRadiusX>0.9900</ObstructionRadiusX>
<ObstructionRadiusZ>0.9900</ObstructionRadiusZ>
<FormationCategory>Protected</FormationCategory>
<MaxVelocity>4.0000</MaxVelocity>
<MaxRunVelocity>6.0000</MaxRunVelocity>
<MovementType>land</MovementType>
<TurnRate>8.0000</TurnRate>
<AnimFile>units\artillery\gatling_gun\gatling_gun.xml</AnimFile>
<ImpactType>Wood</ImpactType>
<Icon>units\artillery\organ_gun\organ_gun_icon_64x64</Icon>
<PortraitIcon>units\artillery\organ_gun\organ_gun_portrait</PortraitIcon>
<RolloverTextID>45210</RolloverTextID>
<ShortRolloverTextID>45209</ShortRolloverTextID>
<InitialHitpoints>150.0000</InitialHitpoints>
<MaxHitpoints>150.0000</MaxHitpoints>
<LOS>26.0000</LOS>
<ProjectileProtoUnit>InvisibleProjectile</ProjectileProtoUnit>
<UnitAIType>RangedCombative</UnitAIType>
<TrainPoints>45.0000</TrainPoints>
<Bounty>40.0000</Bounty>
<BuildBounty>40.0000</BuildBounty>
<Cost resourcetype ='Wood'>100.0000</Cost>
<Cost resourcetype ='Gold'>300.0000</Cost>
<AllowedAge>2</AllowedAge>
<Armor type ='Ranged' value ='0.7500'></Armor>
<UnitType>LogicalTypeHealed</UnitType>
<UnitType>LogicalTypeNeededForVictory</UnitType>
<UnitType>LogicalTypeHandUnitsAutoAttack</UnitType>
<UnitType>LogicalTypeLandMilitary</UnitType>
<UnitType>LogicalTypeValidSPCUnitsDeadCondition</UnitType>
<UnitType>LogicalTypeGarrisonInShips</UnitType>
<UnitType>LogicalTypeRangedUnitsAutoAttack</UnitType>
<UnitType>LogicalTypeVillagersAttack</UnitType>
<UnitType>LogicalTypeHandUnitsAttack</UnitType>
<UnitType>LogicalTypeRangedUnitsAttack</UnitType>
<UnitType>LogicalTypeMinimapFilterMilitary</UnitType>
<UnitType>ConvertsHerds</UnitType>
<UnitType>CountsTowardMilitaryScore</UnitType>
<UnitType>HasBountyValue</UnitType>
<UnitType>Ranged</UnitType>
<UnitType>AbstractArtillery</UnitType>
<UnitType>Unit</UnitType>
<UnitType>Military</UnitType>
<UnitType>UnitClass</UnitType>
<Flag>CollidesWithProjectiles</Flag>
<Flag>ApplyHandicapTraining</Flag>
<Flag>CorpseDecays</Flag>
<Flag>ShowGarrisonButton</Flag>
<Flag>DontRotateObstruction</Flag>
<Flag>ObscuredByUnits</Flag>
<Flag>RotateInPlace</Flag>
<Flag>ConstrainOrientation</Flag>
<Flag>OrientUnitWithGround</Flag>
<Flag>Tracked</Flag>
<Command page ='10' column ='1'>Stop</Command>
<Command page ='10' column ='0'>Garrison</Command>
<Command page ='10' column ='2'>Delete</Command>
<Tactics>organGun.tactics</Tactics>
<ProtoAction>
<Name>CannonAttack</Name>
<Damage>30.000000</Damage>
<DamageType>Siege</DamageType>
<MinRange>0.000000</MinRange>
<MaxRange>24.000000</MaxRange>
<ROF>4.000000</ROF>
<DamageCap>60.000000</DamageCap>
<DamageBonus type ='AbstractArtillery'>0.500000</DamageBonus>
<DamageArea>2.000000</DamageArea>
<DamageFlags>GAIAEnemy</DamageFlags>
<DamageBonus type ='AbstractCavalry'>0.500000</DamageBonus>
<DamageBonus type ='Ship'>0.500000</DamageBonus>
<DamageBonus type ='Building'>0.500000</DamageBonus>
<DamageBonus type ='AbstractLightInfantry'>0.500000</DamageBonus>
<DamageBonus type ='xpArrowKnight'>0.500000</DamageBonus>
</ProtoAction>
</Unit>
把上面两句的红色路径分别复制,用AOE3ED把这两张图片提取出来,用Photoshop修改。(去art文件夹的art5.bar提取,如果art5.bar找不到就去art4.bar、art3.bar、art2.bar、art1.bar寻找)






修改好了将文件改名保存,并转回ddt格式。



将protoy格林机枪的图标路径修改成你新图标的路径,路径你自己定义,将图标放进去就可以了,(如果你不会的话请将你电脑砸了,你不适合使用电脑。)
例如我修改成ui\units\gatling_gun_iconui\units\gatling_gun_portrait
  protoy.xml - 记事本 ____ X
文件(F)  编辑(E)  格式(O)  查看(V)  帮助(H)
	<Unit id ='774' name ='xpGatlingGun'>
<DBID>1165</DBID>
<DisplayNameID>45211</DisplayNameID>
<EditorNameID>45212</EditorNameID>
<PopulationCount>4</PopulationCount>
<ObstructionRadiusX>0.9900</ObstructionRadiusX>
<ObstructionRadiusZ>0.9900</ObstructionRadiusZ>
<FormationCategory>Protected</FormationCategory>
<MaxVelocity>4.0000</MaxVelocity>
<MaxRunVelocity>6.0000</MaxRunVelocity>
<MovementType>land</MovementType>
<TurnRate>8.0000</TurnRate>
<AnimFile>units\artillery\gatling_gun\gatling_gun.xml</AnimFile>
<ImpactType>Wood</ImpactType>
<Icon>ui\units\gatling_gun_icon</Icon>
<PortraitIcon>ui\units\gatling_gun_portrait</PortraitIcon>
<RolloverTextID>45210</RolloverTextID>
<ShortRolloverTextID>45209</ShortRolloverTextID>
<InitialHitpoints>150.0000</InitialHitpoints>
<MaxHitpoints>150.0000</MaxHitpoints>
<LOS>26.0000</LOS>
<ProjectileProtoUnit>InvisibleProjectile</ProjectileProtoUnit>
<UnitAIType>RangedCombative</UnitAIType>
<TrainPoints>45.0000</TrainPoints>
<Bounty>40.0000</Bounty>
<BuildBounty>40.0000</BuildBounty>
<Cost resourcetype ='Wood'>100.0000</Cost>
<Cost resourcetype ='Gold'>300.0000</Cost>
<AllowedAge>2</AllowedAge>
<Armor type ='Ranged' value ='0.7500'></Armor>
<UnitType>LogicalTypeHealed</UnitType>
<UnitType>LogicalTypeNeededForVictory</UnitType>
<UnitType>LogicalTypeHandUnitsAutoAttack</UnitType>
<UnitType>LogicalTypeLandMilitary</UnitType>
<UnitType>LogicalTypeValidSPCUnitsDeadCondition</UnitType>
<UnitType>LogicalTypeGarrisonInShips</UnitType>
<UnitType>LogicalTypeRangedUnitsAutoAttack</UnitType>
<UnitType>LogicalTypeVillagersAttack</UnitType>
<UnitType>LogicalTypeHandUnitsAttack</UnitType>
<UnitType>LogicalTypeRangedUnitsAttack</UnitType>
<UnitType>LogicalTypeMinimapFilterMilitary</UnitType>
<UnitType>ConvertsHerds</UnitType>
<UnitType>CountsTowardMilitaryScore</UnitType>
<UnitType>HasBountyValue</UnitType>
<UnitType>Ranged</UnitType>
<UnitType>AbstractArtillery</UnitType>
<UnitType>Unit</UnitType>
<UnitType>Military</UnitType>
<UnitType>UnitClass</UnitType>
<Flag>CollidesWithProjectiles</Flag>
<Flag>ApplyHandicapTraining</Flag>
<Flag>CorpseDecays</Flag>
<Flag>ShowGarrisonButton</Flag>
<Flag>DontRotateObstruction</Flag>
<Flag>ObscuredByUnits</Flag>
<Flag>RotateInPlace</Flag>
<Flag>ConstrainOrientation</Flag>
<Flag>OrientUnitWithGround</Flag>
<Flag>Tracked</Flag>
<Command page ='10' column ='1'>Stop</Command>
<Command page ='10' column ='0'>Garrison</Command>
<Command page ='10' column ='2'>Delete</Command>
<Tactics>organGun.tactics</Tactics>
<ProtoAction>
<Name>CannonAttack</Name>
<Damage>30.000000</Damage>
<DamageType>Siege</DamageType>
<MinRange>0.000000</MinRange>
<MaxRange>24.000000</MaxRange>
<ROF>4.000000</ROF>
<DamageCap>60.000000</DamageCap>
<DamageBonus type ='AbstractArtillery'>0.500000</DamageBonus>
<DamageArea>2.000000</DamageArea>
<DamageFlags>GAIAEnemy</DamageFlags>
<DamageBonus type ='AbstractCavalry'>0.500000</DamageBonus>
<DamageBonus type ='Ship'>0.500000</DamageBonus>
<DamageBonus type ='Building'>0.500000</DamageBonus>
<DamageBonus type ='AbstractLightInfantry'>0.500000</DamageBonus>
<DamageBonus type ='xpArrowKnight'>0.500000</DamageBonus>
</ProtoAction>
</Unit>
最后将文件按照你在protoy.xml定义的路径,将图标放回帝国3目录的art文件夹里面。







不会使用AOE3ED怎么办? AOE3ED应该如何使用? 点下面的按钮100次我就告诉你。

我不会告诉你这个图标不是我自己弄的,而是官方制作的,在art4.bar里面就有这两个图标。

如果更换科技图标也是同理: Techtreey的图标定义为:
<Icon>icon\123\456</Icon>