You must be logged in to post messages.
Please login or register

Modding and Scripting
Moderated by Yeebaagooon, TAG

Hop to:    
Welcome! You are not logged in. Please Login or Register.9 replies
Age of Mythology Heaven » Forums » Modding and Scripting » Changing unit looks?
Bottom
Topic Subject:Changing unit looks?
Red Storm
Mortal
posted 11 January 2003 12:28 PM EDT (US)         
How do you change the texture or color used by the units. I've seen poeple make gray giants and cheezy giants, so how do you do it?
AuthorReplies:
DarkKnight_
Mortal
(id: PW_DarkKnight)
posted 11 January 2003 12:57 PM EDT (US)     1 / 9       
I believe you need to script it's new textures. here's a new unit rodya was making:

However changing a texture will be MUCH shorter...but you can't play multiplayer with it, you'd need to change it back everytime.

Quote:

<unit id="636" name="Rodya">
<footprint>Footprint Military</footprint>
<maxcontained>1</maxcontained>
<containedattack>0.0500</containedattack>
<los>20.0000</los>
<dbid>7100</dbid>
<obstructionradiusx>0.9900</obstructionradiusx>
<obstructionradiusz>0.9900</obstructionradiusz>
<soundvariant>Crush</soundvariant>
<birthreplacement>Hero Birth</birthreplacement>
<deadreplacement>Hero Death</deadreplacement>
<ballisticsplashproto>Splash</ballisticsplashproto& gt;
<ballisticbounceproto>Dust Large</ballisticbounceproto>
<formationcategory>Mobile</formationcategory>
<movementtype>land</movementtype>
<turnrate>9.0000</turnrate>
<unitaitype>HandCombative</unitaitype>
<populationcount>4</populationcount>
<buildlimit>1</buildlimit>
<allowedage>4</allowedage>
<bounty resourcetype="Favor">2.1600</bounty>
<bountyfactor resourcetype="Favor">1.0000</bountyfactor>
<rolloverbonusdamageid>17280</rolloverbonusdamageid >
<rolloveruseagainstid>17349</rolloveruseagainstid&g t;
<rolloverupgradeatid>17591</rolloverupgradeatid>
<buttonpos row="0" column="3"></buttonpos>
<unittype>LogicalTypeCanBeHealed</unittype>
<unittype>LogicalTypeAffectedByRestoration</unittyp e>
<unittype>LogicalTypeMilitaryUnitsAndBuildings</uni ttype>
<unittype>LogicalTypeParticipatesInBattlecries</uni ttype>
<unittype>LogicalTypeTornadoAttack</unittype>
<unittype>LogicalTypeValidFlamingWeaponsTarget</uni ttype>
<unittype>LogicalTypeConvertsHerds</unittype>
<unittype>LogicalTypeValidBoltTarget</unittype>
<unittype>LogicalTypeFimbulWinterTCEvalType</unitty pe>
<unittype>LogicalTypeEarthquakeAttack</unittype>
<unittype>LogicalTypeFavoriteUnit</unittype>
<unittype>LogicalTypeValidSpyTarget</unittype>
<unittype>LogicalTypeGreekHeroes</unittype>
<unittype>LogicalTypeValidShiftingSandsTarget</unit type>
<unittype>LogicalTypePredatorsAttack</unittype>
<unittype>LogicalTypeNeededForVictory</unittype>
<unittype>LogicalTypeHandUnitsAutoAttack</unittype& gt;
<unittype>LogicalTypeValidFrostTarget</unittype>
<unittype>LogicalTypeLandMilitary</unittype>
<unittype>LogicalTypeValidSPCUnitsDeadCondition</un ittype>
<unittype>LogicalTypeAffectedByHealingSpring</unitt ype>
<unittype>LogicalTypeUnitsNotBuildings</unittype> ; ;
<unittype>LogicalTypeRangedUnitsAutoAttack</unittyp e>
<unittype>LogicalTypeVillagersAttack</unittype>
<unittype>LogicalTypeHandUnitsAttack</unittype>
<unittype>LogicalTypeRangedUnitsAttack</unittype> ; ;
<unittype>LogicalTypeGarrisonOnBoats</unittype>
<unittype>LogicalTypeValidMeteorTarget</unittype> ; ;
<unittype>LogicalTypeMinimapFilterMilitary</unittyp e>
<unittype>LogicalTypeIdleHero</unittype>
<unittype>LogicalTypeIdleMilitary</unittype>
<unittype>Unit</unittype>
<unittype>UnitClass</unittype>
<unittype>Military</unittype>
<unittype>Hero</unittype>
<flag>CorpseDecays</flag>
<flag>ApplyHandicapTraining</flag>
<flag>ObscuredByUnits</flag>
<flag>CollidesWithProjectiles</flag>
<flag>DontRotateObstruction</flag>
<flag>ShowGarrisonButton</flag>
<flag>HideGarrisonFlag</flag>
<flag>Tracked</flag>
<contain external="1">Relic</contain>
<action name="HandAttack">
<param name="MaximumRange" value1="0.1" />
<param name="Rate" type="All" value1="5.0" />
<param name="AttackAction" />
<param name="Damage" type="Crush" value1="3.0" />
<param name="DamageBonus" type="MythUnit" value1="10" />
<param name="Damage" type="Hack" value1="25.0" />
<param name="DamageBonus" type="Hero" value1="3" />
</action>
<action name="Gore">
<param name="MaximumRange" value1="1.0" />
<param name="ChargeAction" />
<param name="AttackAction" />
<param name="Damage" type="Hack" value1="80" />
<param name="NoWorkOnFrozenUnits" />
<param name="NoWorkOnStoneUnits" />
<param name="Rate" type="AbstractVillager" value1="1.0" />
<param name="Rate" type="AbstractInfantry" value1="1.0" />
<param name="Rate" type="Toxotes" value1="1.0" />
<param name="DamageBonus" type="MythUnit" value1="1.5" />
<param name="Rate" type="Peltast" value1="1.0" />
<param name="Poison" type="Slinger" value1="1.0" />
</action>
<action name="Heal">
<param name="MaximumRange" value1="10" />
<param name="Rate" type="LogicalTypeCanBeHealed" value1="2.0" />
</action>
<action name="PickUp">
<param name="TypedRange" type="Relic" value1="1.0" />
</action>
<action name="DropOff">
<param name="Rate" type="Temple" value1="1.0" />
<param name="TypedRange" type="Temple" value1="1.0" />
</action>
<action name="Regenerate">
<param name="Persistent" />
<param name="Rate" type="All" value1="1.2" />
</action>
<armor damagetype="Hack" percentflag="1">0.25</armor>
<armor damagetype="Pierce" percentflag="1">0.75</armor>
<armor damagetype="Crush" percentflag="1">0.96</armor>
<cost resourcetype="Gold">300.0000</cost>
<cost resourcetype="Favor">10.0000</cost>
<displaynameid>48013</displaynameid>
<rollovercounterwithid>17389</rollovercounterwithid >
<rollovertextid>49001</rollovertextid>
<allowedculture>Norse</allowedculture>
<icon>Special N Einheriar icon</icon>
<portraiticon>Special N Einheriar Icon 64</portraiticon>
<trainpoints>30.0000</trainpoints>
<maxvelocity>3.4000</maxvelocity>
<rechargetime>10.0000</rechargetime>
<initialhitpoints>640.0000</initialhitpoints>
<maxhitpoints>640.0000</maxhitpoints>
</unit>



DK
The King of Cheese
Mortal
posted 11 January 2003 01:04 PM EDT (US)     2 / 9       
Actually, that lets you make new units. I think he means change the current one's textures :S

For that, you need to DL AOMED. It's in the Maximus thread by Ra. Then you use to it extract textures.bar, then extract the DDT of the unit you want, and then you can edit the BMP file. This is really vague, look around the forum for more details or check out the AoMed help.


  • >> LKS_Cheeselord >>
  • Proud member of LKS. Click here to join.
  • Member of Arcane Studios, DGDN, and LKSware
  • PROJECTS: Magic Rugs - Cheese Giant - Anim Editor
  • Fear the power of CHEESE!
  • DarkKnight_
    Mortal
    (id: PW_DarkKnight)
    posted 11 January 2003 01:11 PM EDT (US)     3 / 9       
    Yes, I know. He still needs to do somethign similiar. Like I said, it would be MUCH shorter...

    DK
    Red Storm
    Mortal
    posted 11 January 2003 05:44 PM EDT (US)     4 / 9       
    Yeah I tried to extract the textures.bar file, but AOMED kept freezing when I tried it. It doesn't freeze when I try any other .bar file though.
    Shadows
    HG Angel
    (id: shadows166)
    posted 11 January 2003 06:24 PM EDT (US)     5 / 9       
    This should be in the mod forum. And it shall.

    Outlander
    Mortal
    posted 11 January 2003 06:39 PM EDT (US)     6 / 9       
    Dumb question. Where do we do this scripting you mentioned?
    The King of Cheese
    Mortal
    posted 11 January 2003 08:44 PM EDT (US)     7 / 9       
    You need to extract data.bar and look for proto.xml

  • >> LKS_Cheeselord >>
  • Proud member of LKS. Click here to join.
  • Member of Arcane Studios, DGDN, and LKSware
  • PROJECTS: Magic Rugs - Cheese Giant - Anim Editor
  • Fear the power of CHEESE!
  • Outlander
    Mortal
    posted 11 January 2003 11:47 PM EDT (US)     8 / 9       
    Thanks
    rodya_255
    Mortal
    posted 12 January 2003 01:42 AM EDT (US)     9 / 9       
    yeah,

    um, that "script" o' mine allows for a new unit..

    um, i think DarkKnight ment to post my HALF ARS of an anim. script i did... but that does not change the textures or the colors.. only "attaches" new weapons and such to units that already exist...

    ... coulda done, HAVE DONE, better anim. but for some reason i deleted it a while back.. and the one DK has is one i made like in 2 min.... not nearly at all or any of my best... actually... hahah I didnt even change the unit... hahahaha.. its just an ordinary mercenary.


    someone once asked me: "Why do you like Shakira so much?"
    I replied: "cuz..... *Latin beat starts*
    I LIKE IT LIKE THAT!!! I--LIKE--IT LIKE--DAT!!!
    *chorus* *HE LIKES-IT LIKE THAT!!!....... "
    <<<<see 4 urself>>>>
    You must be logged in to post messages.
    Please login or register

    Hop to:    

    Age of Mythology Heaven | HeavenGames