Jump to content

Clone code causing exception?


Recommended Posts

Well, I have been trying to add in some code for storm troopers lately.  I need to know why the code causes an exception.  It is definitely the clone code, because if I take it out, the game runs.  I copied the code directly from stormtroopers.  I basically just copied and changed stormtrooper code to clonetrooper in GroundCompaniesEmpire.xml, GroundInfantry.xml, and Containers.xml.  If you would be able to help me out with this I would be appreciative.

 

My code for GroundCompaniesEmpire.xml is:

<GroundCompany Name="Imperial_Clonetrooper_Squad">
	<LOD_Bias>5</LOD_Bias>
	<Text_ID>TEXT_IMPERIAL_CLONETROOPER_SQUAD</Text_ID>
	<Encyclopedia_Good_Against> Rebel_Trooper Plex_Soldier </Encyclopedia_Good_Against>
	<Encyclopedia_Vulnerable_To> MPTL Rebel_Infiltrator UC_Rebel_Buildable_Anti_Infantry_Turret </Encyclopedia_Vulnerable_To>
	<Encyclopedia_Text>TEXT_TOOLTIP_CLONETROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY</Encyclopedia_Text>
	<Encyclopedia_Unit_Class>TEXT_ENCYCLOPEDIA_CLASS_INFANTRY</Encyclopedia_Unit_Class>
	<GUI_Row> 1 </GUI_Row>
	<Is_Dummy>Yes</Is_Dummy>
	<Damage>18</Damage>
	<Autoresolve_Health>100</Autoresolve_Health> <!-- changed to reflect the real health of the units-->
	<Affiliation>Empire</Affiliation>
	<Build_Cost_Credits>90</Build_Cost_Credits>
	<Piracy_Value_Credits>50</Piracy_Value_Credits>
	<Build_Time_Seconds>15</Build_Time_Seconds>
	<Build_Time_Reduced_By_Multiple_Factories> Yes </Build_Time_Reduced_By_Multiple_Factories>
	<Build_Tab_Land_Units>Yes</Build_Tab_Land_Units>
	<Tech_Level>1</Tech_Level>
	<Required_Timeline>0</Required_Timeline>
	<Required_Ground_Base_Level>1</Required_Ground_Base_Level>
	<Required_Star_Base_Level>0</Required_Star_Base_Level>
	<Required_Special_Structures>E_Ground_Barracks</Required_Special_Structures>
	<Required_Planets> Kamino </Required_Planets>
	<Behavior>DUMMY_GROUND_COMPANY</Behavior>
	<Formation_Priority>1</Formation_Priority>
	<Is_Escort>yes</Is_Escort>
	<Ship_Class>infantry</Ship_Class>
	<Company_Transport_Unit>Imperial_Landing_Craft</Company_Transport_Unit>
	<Create_Team_Type> Clonetrooper_Team </Create_Team_Type>
        <!-- AI  Changed to 18 troopers in squads of 9 -->
	<Company_Units> Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper</Company_Units>
	<Max_Squad_Size> 9 </Max_Squad_Size>
	<Icon_Name>501.tga</Icon_Name>
	<GUI_Model_Name>CI501.ALO</GUI_Model_Name>
	<Land_Model_Name>EI_TROOPER.ALO</Land_Model_Name>
	<Scale_Factor>5</Scale_Factor>
	<GUI_Offset>0 0 5</GUI_Offset>
	<GUI_Velocity>45</GUI_Velocity>
	<SFXEvent_Build_Started>EHD_Build_Troops</SFXEvent_Build_Started>
	<SFXEvent_Build_Cancelled>EHD_Recruitment_Canceled</SFXEvent_Build_Cancelled>
	<SFXEvent_Build_Complete>Unit_Complete_Storm_Trooper</SFXEvent_Build_Complete>
	<SFXEvent_Fleet_Move>Unit_Fleet_Move_Storm_Trooper</SFXEvent_Fleet_Move>


	<!--<MULTIPLAYER SKIRMISH VALUES BEGIN>-->
	<Tactical_Build_Cost_Multiplayer>300</Tactical_Build_Cost_Multiplayer>
	<Tactical_Build_Time_Seconds>5</Tactical_Build_Time_Seconds>
	<Tactical_Build_Prerequisites />
	<Tactical_Production_Queue>Tactical_Units</Tactical_Production_Queue>
	<!--<Build_Limit_Current_Per_Player>0</Build_Limit_Current_Per_Player>-->
	<!--<Build_Limit_Lifetime_Per_Player>0</Build_Limit_Lifetime_Per_Player>-->  
	<!--<MULTIPLAYER SKIRMISH VALUES END>-->

	<Unit_Abilities_Data SubObjectList="Yes">
		<!-- Primary ability -->
		<Unit_Ability>
			<Type>SPREAD_OUT</Type>
			<Mod_Multiplier>SPEED_MULTIPLIER,	 0.5f</Mod_Multiplier>
			<Mod_Multiplier>TAKE_DAMAGE_MULTIPLIER, 0.5f</Mod_Multiplier>
		</Unit_Ability>

	</Unit_Abilities_Data>

	<Maintenance_Cost>0.05</Maintenance_Cost>
	<Population_Value>1</Population_Value>
	<Score_Cost_Credits>54</Score_Cost_Credits>
</GroundCompany>

 

My code for GroundInfantry.xml is:

<GroundInfantry Name="Clonetrooper">
	<LOD_Bias>5</LOD_Bias>
	<Text_ID>TEXT_UNIT_CLONETROOPER</Text_ID>
	<Encyclopedia_Good_Against> Rebel_Trooper Plex_Soldier Underworld_Merc</Encyclopedia_Good_Against>
	<Encyclopedia_Vulnerable_To> MPTL Rebel_Infiltrator Destroyer_Droid </Encyclopedia_Vulnerable_To>
	<Land_Model_Name>CI501.ALO</Land_Model_Name>
	<Land_Terrain_Model_Mapping>
		Temperate, 		CI501.ALO,
		Urban, 			CI501.ALO,
		Arctic, 			CI501.ALO,
		Volcanic, 			CI501.ALO,
		Desert, 			CI501.ALO,
		Forest, 			CI501.ALO,
		Swamp, 			CI501.ALO
	</Land_Terrain_Model_Mapping>
	<Land_Model_Anim_Override_Name>EI_TROOPER.ALo</Land_Model_Anim_Override_Name>
	<Behavior>SELECTABLE</Behavior>
	<LandBehavior>SURFACE_FX,WALK_LOCOMOTOR,IDLE,TARGETING,WEAPON, STUNNABLE, REVEAL,HIDE_WHEN_FOGGED,DAMAGE_TRACKING, GARRISON_UNIT</LandBehavior>
	<Is_Visible_On_Radar>Yes</Is_Visible_On_Radar>
	<Loop_Idle_Anim_00>No</Loop_Idle_Anim_00>
	<Collidable_By_Projectile_Living>Yes</Collidable_By_Projectile_Living>
	<CanCellStack>yes</CanCellStack>
	<Mass>1.0</Mass>
	<Icon_Name>i_button_storm_trooper.tga</Icon_Name>
	<SurfaceFX_Name>Generic_Footprint, Infantry_Terrain_Modifier, High_Ground</SurfaceFX_Name>
	<Garrison_Category> Infantry </Garrison_Category>
        
	<Movement_Animation_Speed> 0.8 </Movement_Animation_Speed>
	<Rotation_Animation_Speed> 20.0 </Rotation_Animation_Speed>
	<Walk_Animation_Speed> .366 </Walk_Animation_Speed>
	<Crouch_Animation_Speed> .537 </Crouch_Animation_Speed>
	<Max_Speed>0.8</Max_Speed>
	<Max_Rate_Of_Turn>20.0</Max_Rate_Of_Turn>
	<Custom_Soft_Footprint_Radius> 3.5 </Custom_Soft_Footprint_Radius>
	<Custom_Hard_XExtent> 2.0 </Custom_Hard_XExtent>
	<Custom_Hard_YExtent> 2.0 </Custom_Hard_YExtent>
	<Space_Layer> Land </Space_Layer>
	<UnitCollisionClass> Infantry </UnitCollisionClass>
	<FormationSpacing> .3 </FormationSpacing> 
	<MinimumPushReturnDistance> 10 </MinimumPushReturnDistance>
	<OverrideAcceleration> 0.05 </OverrideAcceleration>
	<OverrideDeceleration> 0.05 </OverrideDeceleration>
	<FormationOrder> 2 </FormationOrder>

	<Scale_Factor>1.5</Scale_Factor>
	<!--<Is_Sprite>No</Is_Sprite>-->
	<Type>Walk</Type>
	<Deploys>No</Deploys>
	<Affiliation>Empire</Affiliation>
	<!--<Is_Sprite>No</Is_Sprite>-->
	<Political_Control>0</Political_Control>
	<Size_Value>10</Size_Value>
	<Damage>1</Damage>
	<Sensor_Range>20</Sensor_Range>
	<Shield_Points>0</Shield_Points>
	<Tactical_Health>40</Tactical_Health>
	<Shield_Refresh_Rate>0</Shield_Refresh_Rate>
	<Energy_Capacity>0</Energy_Capacity>
	<Energy_Refresh_Rate>0</Energy_Refresh_Rate>
	<Stealth_Capable>No</Stealth_Capable>

	<Armor_Type> Armor_Infantry </Armor_Type>

	<Blob_Shadow_Below_Detail_Level>3</Blob_Shadow_Below_Detail_Level>
	<Blob_Shadow_Scale>10.0, 10.0</Blob_Shadow_Scale>
	<Blob_Shadow_Bone_Name>B_Chest</Blob_Shadow_Bone_Name>
	<Occlusion_Silhouette_Enabled>1</Occlusion_Silhouette_Enabled>
	<Victory_Relevant>yes</Victory_Relevant>
	<Projectile_Types>Proj_Hand_Blaster_Red</Projectile_Types>
	<Land_FOW_Reveal_Range>130.0</Land_FOW_Reveal_Range>

	<Ranged_Target_Z_Adjust>7.0</Ranged_Target_Z_Adjust>
	<Mouse_Collide_Override_Sphere_Radius> 10.0 </Mouse_Collide_Override_Sphere_Radius>

	<Projectile_Fire_Recharge_Seconds>1.0</Projectile_Fire_Recharge_Seconds>

	<Targeting_Fire_Inaccuracy> Infantry, 3.0 </Targeting_Fire_Inaccuracy> <!-- from 1.0 to make them more innacurate -->
	<Targeting_Fire_Inaccuracy> Vehicle, 5.0 </Targeting_Fire_Inaccuracy>
	<Targeting_Fire_Inaccuracy> Air, 70.0 </Targeting_Fire_Inaccuracy>
	<Targeting_Fire_Inaccuracy> Structure, 10.0 </Targeting_Fire_Inaccuracy>

	<SFXEvent_Select>Unit_Select_Storm_Trooper</SFXEvent_Select>
	<SFXEvent_Move>Unit_Move_Storm_Trooper</SFXEvent_Move>
	<SFXEvent_Fleet_Move>Unit_Fleet_Move_Storm_Trooper</SFXEvent_Fleet_Move>
	<SFXEvent_Attack>Unit_Attack_Storm_Trooper</SFXEvent_Attack>
	<SFXEvent_Guard>Unit_Guard_Storm_Trooper</SFXEvent_Guard>
	<SFXEvent_Fire>Unit_Storm_Trooper_Fire</SFXEvent_Fire>
	<Death_SFXEvent_Start_Die>Unit_Stormtrooper_Death</Death_SFXEvent_Start_Die>

	<SFXEvent_Assist_Move> Unit_Assist_Move_Storm_Trooper </SFXEvent_Assist_Move>		
	<SFXEvent_Assist_Attack> Unit_Assist_Attack_Storm_Trooper </SFXEvent_Assist_Attack>

	<SFXEvent_Tactical_Build_Started> EHD_Reinforcements_En_Route </SFXEvent_Tactical_Build_Started>		
	<SFXEvent_Tactical_Build_Complete> EHD_Reinforcements_Available </SFXEvent_Tactical_Build_Complete>		
	<SFXEvent_Tactical_Build_Cancelled> EHD_Reinforcements_Cancelled  </SFXEvent_Tactical_Build_Cancelled>

	<CategoryMask> Infantry </CategoryMask>
	<MovementClass> Infantry </MovementClass>
	<Property_Flags>Fodder</Property_Flags>

	<OccupationStyle>1x1</OccupationStyle>
	<Blob_Shadow_Below_Detail_Level>3</Blob_Shadow_Below_Detail_Level>
	<Blob_Shadow_Scale>5.0, 5.0</Blob_Shadow_Scale>
	<Blob_Shadow_Material_Name>Generic_Shadow</Blob_Shadow_Material_Name>
	<Blob_Shadow_Bone_Name>B_Chest</Blob_Shadow_Bone_Name>
	<No_Reflection_Below_Detail_Level>99</No_Reflection_Below_Detail_Level>
	<No_Refraction_Below_Detail_Level>99</No_Refraction_Below_Detail_Level>
        <Ground_Infantry_Turret_Target> Yes </Ground_Infantry_Turret_Target>
	<Is_Squashable> Yes </Is_Squashable>
	<Create_Team>Yes</Create_Team>
	<AI_Combat_Power>7</AI_Combat_Power>

	<Targeting_Stickiness_Time_Threshold>5.0</Targeting_Stickiness_Time_Threshold>
	<Targeting_Priority_Set>AvoidAntiInfantryTurrets</Targeting_Priority_Set>

	<Targeting_Max_Attack_Distance>140.0</Targeting_Max_Attack_Distance>
	<Idle_Chase_Range>50.0</Idle_Chase_Range>
	<Guard_Chase_Range>200.0</Guard_Chase_Range>
	<Attack_Move_Response_Range>150.0</Attack_Move_Response_Range>
	<Select_Box_Z_Adjust>3.0f</Select_Box_Z_Adjust>

	<Surface_Type_Cover_Damage_Shield>.5</Surface_Type_Cover_Damage_Shield>
	<Weather_Category>Infantry</Weather_Category>

	<Encyclopedia_Text>TEXT_TOOLTIP_STORMTROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY</Encyclopedia_Text>
	<Encyclopedia_Unit_Class>TEXT_ENCYCLOPEDIA_CLASS_INFANTRY</Encyclopedia_Unit_Class>

	<Death_Clone>Damage_Force_Whirlwind, Stormtrooper_Force_Whirlwind_Death_Clone</Death_Clone>
	<Death_Clone>Damage_Crush, Stormtrooper_Crush_Death_Clone</Death_Clone>

	<Death_Clone>Damage_Disruptor_Hand, Infantry_Disruptor_Death_Clone_00</Death_Clone>
	<Death_Clone>Damage_Disruptor_Hand, Infantry_Disruptor_Death_Clone_01</Death_Clone>

	<Death_Clone>Damage_Infection, Infantry_Melt_Death_Clone_00</Death_Clone>
	<Death_Clone>Damage_Remote_Bomb, Stormtrooper_Remote_Bomb_Death_Clone</Death_Clone>

	<Death_Fade_Time>0.25</Death_Fade_Time>
	<Death_Persistence_Duration>0.0</Death_Persistence_Duration>

	<Tactical_Bribe_Cost>25</Tactical_Bribe_Cost>

	<Presence_Induced_Animations>
		Attention, 
			Emperor_Palpatine,
			Darth_Vader,
	</Presence_Induced_Animations>

	<!-- Non-Hero unit abilities description -->
	<Unit_Abilities_Data SubObjectList="Yes">
		<!-- Primary ability -->
		<Unit_Ability>
			<Type>SPREAD_OUT</Type>
			<Mod_Multiplier>SPEED_MULTIPLIER,	 0.5f</Mod_Multiplier>
			<Mod_Multiplier>TAKE_DAMAGE_MULTIPLIER, 0.5f</Mod_Multiplier>
			<SFXEvent_GUI_Unit_Ability_Activated>Unit_Take_Cover_Storm_Trooper</SFXEvent_GUI_Unit_Ability_Activated>		  			</Unit_Ability>
	</Unit_Abilities_Data>

</GroundInfantry>

 

My code for Containers.xml is:

<Container Name="Clonetrooper_Team">
	<Select_Box_Scale>65</Select_Box_Scale>
	<Text_ID>TEXT_IMPERIAL_CLONETROOPER_SQUAD</Text_ID>
	<Encyclopedia_Good_Against> Rebel_Trooper Plex_Soldier </Encyclopedia_Good_Against>
	<Encyclopedia_Vulnerable_To> MPTL Rebel_Infiltrator UC_Rebel_Buildable_Anti_Infantry_Turret </Encyclopedia_Vulnerable_To>
	<Encyclopedia_Text>TEXT_TOOLTIP_CLONETROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY</Encyclopedia_Text>
	<Encyclopedia_Unit_Class>TEXT_ENCYCLOPEDIA_CLASS_INFANTRY</Encyclopedia_Unit_Class>
	<Show_Name>No</Show_Name>
	<Behavior>TEAM,SELECTABLE,UNIT_AI</Behavior>
	<LandBehavior>REVEAL, LAND_TEAM_CONTAINER_LOCOMOTOR, TEAM_TARGETING, GARRISON_UNIT</LandBehavior>
	<SpaceBehavior>REVEAL</SpaceBehavior>
	<Land_FOW_Reveal_Range>200.0</Land_FOW_Reveal_Range>
	<Space_FOW_Reveal_Range>800.0</Space_FOW_Reveal_Range>
	<MovementClass>Infantry</MovementClass>
	<Garrison_Category> Infantry </Garrison_Category>
	<CategoryMask>Infantry</CategoryMask>

	<Max_Speed> .8 </Max_Speed>
	<Max_Rate_Of_Turn>12.0</Max_Rate_Of_Turn>
	<Space_Layer> Land </Space_Layer>
	<UnitCollisionClass> Infantry </UnitCollisionClass>
	<FormationSpacing> 1 </FormationSpacing> 
	<MovementClass> Infantry </MovementClass>
	<OccupationStyle>1x1</OccupationStyle>
	<Is_Squashable> true </Is_Squashable>
	<MovementPredictionInterval> 4.0 </MovementPredictionInterval>	
	<ContainerArrangement> Rows </ContainerArrangement>
	<FormationOrder> 2 </FormationOrder>
	<Override_Acceleration> .1 </Override_Acceleration>
	<Override_Deceleration> .1 </Override_Deceleration>

	<Is_Visible_On_Radar>Yes</Is_Visible_On_Radar>
	<Radar_Icon_Scale_Land>80</Radar_Icon_Scale_Land>
	<Radar_Icon_Scale_Space>200</Radar_Icon_Scale_Space>

	<Icon_Name>501.tga</Icon_Name>

	<Targeting_Max_Attack_Distance>140.0</Targeting_Max_Attack_Distance>
	<Idle_Chase_Range>50.0</Idle_Chase_Range>
	<Guard_Chase_Range>200.0</Guard_Chase_Range>
	<Attack_Move_Response_Range>130.0</Attack_Move_Response_Range>
	<Autonomous_Move_Extension_Vs_Attacker>200.0</Autonomous_Move_Extension_Vs_Attacker>
	<Tactical_Bribe_Cost>45</Tactical_Bribe_Cost>		

	<!-- Non-Hero unit abilities description -->
	<Unit_Abilities_Data SubObjectList="Yes">
		<!-- Primary ability -->
		<Unit_Ability>
			<Type>SPREAD_OUT</Type>
			<Mod_Multiplier>SPEED_MULTIPLIER,	 0.5f</Mod_Multiplier>
			<Mod_Multiplier>TAKE_DAMAGE_MULTIPLIER, 0.5f</Mod_Multiplier>
		</Unit_Ability>
	</Unit_Abilities_Data>


</Container>

 

Also, a few questions.  When I get an exception, it tells me to check two files, except.txt and logfile.txt.  I found except.txt but can't make any sense of it.  However, logfile.txt is a different story.  I searched my whole hard drive, but no logfile.txt file.  Where is it?

 

What is the difference between GUI_Model_Name, Land_Model_Name, Land_Terrain_Model_Mapping, and Land_Model_Anim_Override_Name.  I would, for the clonetroopers, assume that I put eitrooper.alo as the land_override thing.  What model should I use for GUI_model_name, and land_terrain_model_mapping.  The clone file is just a single .alo file, so I need to override the regular stormtrooper model with the clone body, correct? If you could tell me what the differences are between all of them, it would be a great help to me.

 

Thanks

Link to comment
Share on other sites

For one thing, if you're using my skins, you got the model name wrong. It's CI_501.ALO(I think)  ;D

 

I've been having trouble with my own clones too. They won't show up. It's not the building, not the sound, not the planet...What's wrong?

 

EDIT: Oh yeah, unless you have some sweet idea behind it, I wish to encourage you to use more skins than just the 501st.

 

ANOTHER EDIT: Wait! You put Eitrooper.ALO as the land override? You're supposed to put EI_TROOPER! (In V2 I'll include new clone anims ;D) And the land Land_Terrain_Model_Map is VERY cool. You can set different models for different places. Thus, different armor on different worlds.

 

YET ANOTHER EDIT: I should really think before I post. ::) Except.txt and logfile.txt are gibberish, utterly pointless junk that makes the computer happy.

"I feel fantastic and I'm

Still Alive

and when you're dying I will be

Still Alive

and when you're dead I will be

Still Alive

STILL ALIVE"~GLaDOS

Anybody who thinks Palpatine is a sepratist knows NOTHING about star Wars

When in doubt- rocket it.

Dowload The Underworld's Might beta from Filefront!

Link to comment
Share on other sites

Yes, I did use the wrong name...doh.  I eventually plan to add more than just the 501, I am just trying to get something that works, that I can base other infantry on.  eitrooper.alo was a typo on my part, it was ei_trooper.alo.  I fixed all the CI501 errors to be CI_501.  I still, however, get an exception upon starting.

 

Just to make sure...GUI_Model_Name and Land_Model_Name are both what I want the unit to look like, the Land_Terrain_Model_Mapping is for different models in terrains, and the override is the animation I want to use, correct?

 

My code for GroundCompaniesEmpire.xml is:

<GroundCompany Name="Imperial_Clonetrooper_Squad">
	<LOD_Bias>5</LOD_Bias>
	<Text_ID>TEXT_IMPERIAL_CLONETROOPER_SQUAD</Text_ID>
	<Encyclopedia_Good_Against> Rebel_Trooper Plex_Soldier </Encyclopedia_Good_Against>
	<Encyclopedia_Vulnerable_To> MPTL Rebel_Infiltrator UC_Rebel_Buildable_Anti_Infantry_Turret </Encyclopedia_Vulnerable_To>
	<Encyclopedia_Text>TEXT_TOOLTIP_CLONETROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY</Encyclopedia_Text>
	<Encyclopedia_Unit_Class>TEXT_ENCYCLOPEDIA_CLASS_INFANTRY</Encyclopedia_Unit_Class>
	<GUI_Row> 1 </GUI_Row>
	<Is_Dummy>Yes</Is_Dummy>
	<Damage>18</Damage>
	<Autoresolve_Health>100</Autoresolve_Health> <!-- changed to reflect the real health of the units-->
	<Affiliation>Empire</Affiliation>
	<Build_Cost_Credits>90</Build_Cost_Credits>
	<Piracy_Value_Credits>50</Piracy_Value_Credits>
	<Build_Time_Seconds>15</Build_Time_Seconds>
	<Build_Time_Reduced_By_Multiple_Factories> Yes </Build_Time_Reduced_By_Multiple_Factories>
	<Build_Tab_Land_Units>Yes</Build_Tab_Land_Units>
	<Tech_Level>1</Tech_Level>
	<Required_Timeline>0</Required_Timeline>
	<Required_Ground_Base_Level>1</Required_Ground_Base_Level>
	<Required_Star_Base_Level>0</Required_Star_Base_Level>
	<Required_Special_Structures>E_Ground_Barracks</Required_Special_Structures>
	<Required_Planets> Kamino </Required_Planets>
	<Behavior>DUMMY_GROUND_COMPANY</Behavior>
	<Formation_Priority>1</Formation_Priority>
	<Is_Escort>yes</Is_Escort>
	<Ship_Class>infantry</Ship_Class>
	<Company_Transport_Unit>Imperial_Landing_Craft</Company_Transport_Unit>
	<Create_Team_Type> Clonetrooper_Team </Create_Team_Type>
        <!-- AI  Changed to 18 troopers in squads of 9 -->
	<Company_Units> Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper, Squad_Clonetrooper</Company_Units>
	<Max_Squad_Size> 9 </Max_Squad_Size>
	<Icon_Name>501.tga</Icon_Name>
	<GUI_Model_Name>CI_501.ALO</GUI_Model_Name>
	<Land_Model_Name>CI_501.ALO</Land_Model_Name>
	<Scale_Factor>5</Scale_Factor>
	<GUI_Offset>0 0 5</GUI_Offset>
	<GUI_Velocity>45</GUI_Velocity>
	<SFXEvent_Build_Started>EHD_Build_Troops</SFXEvent_Build_Started>
	<SFXEvent_Build_Cancelled>EHD_Recruitment_Canceled</SFXEvent_Build_Cancelled>
	<SFXEvent_Build_Complete>Unit_Complete_Storm_Trooper</SFXEvent_Build_Complete>
	<SFXEvent_Fleet_Move>Unit_Fleet_Move_Storm_Trooper</SFXEvent_Fleet_Move>


	<!--<MULTIPLAYER SKIRMISH VALUES BEGIN>-->
	<Tactical_Build_Cost_Multiplayer>300</Tactical_Build_Cost_Multiplayer>
	<Tactical_Build_Time_Seconds>5</Tactical_Build_Time_Seconds>
	<Tactical_Build_Prerequisites />
	<Tactical_Production_Queue>Tactical_Units</Tactical_Production_Queue>
	<!--<Build_Limit_Current_Per_Player>0</Build_Limit_Current_Per_Player>-->
	<!--<Build_Limit_Lifetime_Per_Player>0</Build_Limit_Lifetime_Per_Player>-->  
	<!--<MULTIPLAYER SKIRMISH VALUES END>-->

	<Unit_Abilities_Data SubObjectList="Yes">
		<!-- Primary ability -->
		<Unit_Ability>
			<Type>SPREAD_OUT</Type>
			<Mod_Multiplier>SPEED_MULTIPLIER,	 0.5f</Mod_Multiplier>
			<Mod_Multiplier>TAKE_DAMAGE_MULTIPLIER, 0.5f</Mod_Multiplier>
		</Unit_Ability>

	</Unit_Abilities_Data>

	<Maintenance_Cost>0.05</Maintenance_Cost>
	<Population_Value>1</Population_Value>
	<Score_Cost_Credits>54</Score_Cost_Credits>
</GroundCompany>

 

My code for GroundInfantry.xml is:

<GroundInfantry Name="Clonetrooper">
	<LOD_Bias>5</LOD_Bias>
	<Text_ID>TEXT_UNIT_CLONETROOPER</Text_ID>
	<Encyclopedia_Good_Against> Rebel_Trooper Plex_Soldier Underworld_Merc</Encyclopedia_Good_Against>
	<Encyclopedia_Vulnerable_To> MPTL Rebel_Infiltrator Destroyer_Droid </Encyclopedia_Vulnerable_To>
	<Land_Model_Name>CI_501.ALO</Land_Model_Name>
	<Land_Terrain_Model_Mapping>
		Temperate, 		CI_501.ALO,
		Urban, 			CI_501.ALO,
		Arctic, 			CI_501.ALO,
		Volcanic, 			CI_501.ALO,
		Desert, 			CI_501.ALO,
		Forest, 			CI_501.ALO,
		Swamp, 			CI_501.ALO
	</Land_Terrain_Model_Mapping>
	<Land_Model_Anim_Override_Name>EI_TROOPER.ALo</Land_Model_Anim_Override_Name>
	<Behavior>SELECTABLE</Behavior>
	<LandBehavior>SURFACE_FX,WALK_LOCOMOTOR,IDLE,TARGETING,WEAPON, STUNNABLE, REVEAL,HIDE_WHEN_FOGGED,DAMAGE_TRACKING, GARRISON_UNIT</LandBehavior>
	<Is_Visible_On_Radar>Yes</Is_Visible_On_Radar>
	<Loop_Idle_Anim_00>No</Loop_Idle_Anim_00>
	<Collidable_By_Projectile_Living>Yes</Collidable_By_Projectile_Living>
	<CanCellStack>yes</CanCellStack>
	<Mass>1.0</Mass>
	<Icon_Name>i_button_storm_trooper.tga</Icon_Name>
	<SurfaceFX_Name>Generic_Footprint, Infantry_Terrain_Modifier, High_Ground</SurfaceFX_Name>
	<Garrison_Category> Infantry </Garrison_Category>
        
	<Movement_Animation_Speed> 0.8 </Movement_Animation_Speed>
	<Rotation_Animation_Speed> 20.0 </Rotation_Animation_Speed>
	<Walk_Animation_Speed> .366 </Walk_Animation_Speed>
	<Crouch_Animation_Speed> .537 </Crouch_Animation_Speed>
	<Max_Speed>0.8</Max_Speed>
	<Max_Rate_Of_Turn>20.0</Max_Rate_Of_Turn>
	<Custom_Soft_Footprint_Radius> 3.5 </Custom_Soft_Footprint_Radius>
	<Custom_Hard_XExtent> 2.0 </Custom_Hard_XExtent>
	<Custom_Hard_YExtent> 2.0 </Custom_Hard_YExtent>
	<Space_Layer> Land </Space_Layer>
	<UnitCollisionClass> Infantry </UnitCollisionClass>
	<FormationSpacing> .3 </FormationSpacing> 
	<MinimumPushReturnDistance> 10 </MinimumPushReturnDistance>
	<OverrideAcceleration> 0.05 </OverrideAcceleration>
	<OverrideDeceleration> 0.05 </OverrideDeceleration>
	<FormationOrder> 2 </FormationOrder>

	<Scale_Factor>1.5</Scale_Factor>
	<!--<Is_Sprite>No</Is_Sprite>-->
	<Type>Walk</Type>
	<Deploys>No</Deploys>
	<Affiliation>Empire</Affiliation>
	<!--<Is_Sprite>No</Is_Sprite>-->
	<Political_Control>0</Political_Control>
	<Size_Value>10</Size_Value>
	<Damage>1</Damage>
	<Sensor_Range>20</Sensor_Range>
	<Shield_Points>0</Shield_Points>
	<Tactical_Health>40</Tactical_Health>
	<Shield_Refresh_Rate>0</Shield_Refresh_Rate>
	<Energy_Capacity>0</Energy_Capacity>
	<Energy_Refresh_Rate>0</Energy_Refresh_Rate>
	<Stealth_Capable>No</Stealth_Capable>

	<Armor_Type> Armor_Infantry </Armor_Type>

	<Blob_Shadow_Below_Detail_Level>3</Blob_Shadow_Below_Detail_Level>
	<Blob_Shadow_Scale>10.0, 10.0</Blob_Shadow_Scale>
	<Blob_Shadow_Bone_Name>B_Chest</Blob_Shadow_Bone_Name>
	<Occlusion_Silhouette_Enabled>1</Occlusion_Silhouette_Enabled>
	<Victory_Relevant>yes</Victory_Relevant>
	<Projectile_Types>Proj_Hand_Blaster_Red</Projectile_Types>
	<Land_FOW_Reveal_Range>130.0</Land_FOW_Reveal_Range>

	<Ranged_Target_Z_Adjust>7.0</Ranged_Target_Z_Adjust>
	<Mouse_Collide_Override_Sphere_Radius> 10.0 </Mouse_Collide_Override_Sphere_Radius>

	<Projectile_Fire_Recharge_Seconds>1.0</Projectile_Fire_Recharge_Seconds>

	<Targeting_Fire_Inaccuracy> Infantry, 3.0 </Targeting_Fire_Inaccuracy> <!-- from 1.0 to make them more innacurate -->
	<Targeting_Fire_Inaccuracy> Vehicle, 5.0 </Targeting_Fire_Inaccuracy>
	<Targeting_Fire_Inaccuracy> Air, 70.0 </Targeting_Fire_Inaccuracy>
	<Targeting_Fire_Inaccuracy> Structure, 10.0 </Targeting_Fire_Inaccuracy>

	<SFXEvent_Select>Unit_Select_Storm_Trooper</SFXEvent_Select>
	<SFXEvent_Move>Unit_Move_Storm_Trooper</SFXEvent_Move>
	<SFXEvent_Fleet_Move>Unit_Fleet_Move_Storm_Trooper</SFXEvent_Fleet_Move>
	<SFXEvent_Attack>Unit_Attack_Storm_Trooper</SFXEvent_Attack>
	<SFXEvent_Guard>Unit_Guard_Storm_Trooper</SFXEvent_Guard>
	<SFXEvent_Fire>Unit_Storm_Trooper_Fire</SFXEvent_Fire>
	<Death_SFXEvent_Start_Die>Unit_Stormtrooper_Death</Death_SFXEvent_Start_Die>

	<SFXEvent_Assist_Move> Unit_Assist_Move_Storm_Trooper </SFXEvent_Assist_Move>		
	<SFXEvent_Assist_Attack> Unit_Assist_Attack_Storm_Trooper </SFXEvent_Assist_Attack>

	<SFXEvent_Tactical_Build_Started> EHD_Reinforcements_En_Route </SFXEvent_Tactical_Build_Started>		
	<SFXEvent_Tactical_Build_Complete> EHD_Reinforcements_Available </SFXEvent_Tactical_Build_Complete>		
	<SFXEvent_Tactical_Build_Cancelled> EHD_Reinforcements_Cancelled  </SFXEvent_Tactical_Build_Cancelled>

	<CategoryMask> Infantry </CategoryMask>
	<MovementClass> Infantry </MovementClass>
	<Property_Flags>Fodder</Property_Flags>

	<OccupationStyle>1x1</OccupationStyle>
	<Blob_Shadow_Below_Detail_Level>3</Blob_Shadow_Below_Detail_Level>
	<Blob_Shadow_Scale>5.0, 5.0</Blob_Shadow_Scale>
	<Blob_Shadow_Material_Name>Generic_Shadow</Blob_Shadow_Material_Name>
	<Blob_Shadow_Bone_Name>B_Chest</Blob_Shadow_Bone_Name>
	<No_Reflection_Below_Detail_Level>99</No_Reflection_Below_Detail_Level>
	<No_Refraction_Below_Detail_Level>99</No_Refraction_Below_Detail_Level>
        <Ground_Infantry_Turret_Target> Yes </Ground_Infantry_Turret_Target>
	<Is_Squashable> Yes </Is_Squashable>
	<Create_Team>Yes</Create_Team>
	<AI_Combat_Power>7</AI_Combat_Power>

	<Targeting_Stickiness_Time_Threshold>5.0</Targeting_Stickiness_Time_Threshold>
	<Targeting_Priority_Set>AvoidAntiInfantryTurrets</Targeting_Priority_Set>

	<Targeting_Max_Attack_Distance>140.0</Targeting_Max_Attack_Distance>
	<Idle_Chase_Range>50.0</Idle_Chase_Range>
	<Guard_Chase_Range>200.0</Guard_Chase_Range>
	<Attack_Move_Response_Range>150.0</Attack_Move_Response_Range>
	<Select_Box_Z_Adjust>3.0f</Select_Box_Z_Adjust>

	<Surface_Type_Cover_Damage_Shield>.5</Surface_Type_Cover_Damage_Shield>
	<Weather_Category>Infantry</Weather_Category>

	<Encyclopedia_Text>TEXT_TOOLTIP_CLONETROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY</Encyclopedia_Text>
	<Encyclopedia_Unit_Class>TEXT_ENCYCLOPEDIA_CLASS_INFANTRY</Encyclopedia_Unit_Class>

	<Death_Clone>Damage_Force_Whirlwind, Stormtrooper_Force_Whirlwind_Death_Clone</Death_Clone>
	<Death_Clone>Damage_Crush, Stormtrooper_Crush_Death_Clone</Death_Clone>

	<Death_Clone>Damage_Disruptor_Hand, Infantry_Disruptor_Death_Clone_00</Death_Clone>
	<Death_Clone>Damage_Disruptor_Hand, Infantry_Disruptor_Death_Clone_01</Death_Clone>

	<Death_Clone>Damage_Infection, Infantry_Melt_Death_Clone_00</Death_Clone>
	<Death_Clone>Damage_Remote_Bomb, Stormtrooper_Remote_Bomb_Death_Clone</Death_Clone>

	<Death_Fade_Time>0.25</Death_Fade_Time>
	<Death_Persistence_Duration>0.0</Death_Persistence_Duration>

	<Tactical_Bribe_Cost>25</Tactical_Bribe_Cost>

	<Presence_Induced_Animations>
		Attention, 
			Emperor_Palpatine,
			Darth_Vader,
	</Presence_Induced_Animations>

	<!-- Non-Hero unit abilities description -->
	<Unit_Abilities_Data SubObjectList="Yes">
		<!-- Primary ability -->
		<Unit_Ability>
			<Type>SPREAD_OUT</Type>
			<Mod_Multiplier>SPEED_MULTIPLIER,	 0.5f</Mod_Multiplier>
			<Mod_Multiplier>TAKE_DAMAGE_MULTIPLIER, 0.5f</Mod_Multiplier>
			<SFXEvent_GUI_Unit_Ability_Activated>Unit_Take_Cover_Storm_Trooper</SFXEvent_GUI_Unit_Ability_Activated>		  			</Unit_Ability>
	</Unit_Abilities_Data>

</GroundInfantry>

 

and my code for Containers.xml is:

<Container Name="Clonetrooper_Team">
	<Select_Box_Scale>65</Select_Box_Scale>
	<Text_ID>TEXT_IMPERIAL_CLONETROOPER_SQUAD</Text_ID>
	<Encyclopedia_Good_Against> Rebel_Trooper Plex_Soldier </Encyclopedia_Good_Against>
	<Encyclopedia_Vulnerable_To> MPTL Rebel_Infiltrator UC_Rebel_Buildable_Anti_Infantry_Turret </Encyclopedia_Vulnerable_To>
	<Encyclopedia_Text>TEXT_TOOLTIP_CLONETROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY</Encyclopedia_Text>
	<Encyclopedia_Unit_Class>TEXT_ENCYCLOPEDIA_CLASS_INFANTRY</Encyclopedia_Unit_Class>
	<Show_Name>No</Show_Name>
	<Behavior>TEAM,SELECTABLE,UNIT_AI</Behavior>
	<LandBehavior>REVEAL, LAND_TEAM_CONTAINER_LOCOMOTOR, TEAM_TARGETING, GARRISON_UNIT</LandBehavior>
	<SpaceBehavior>REVEAL</SpaceBehavior>
	<Land_FOW_Reveal_Range>200.0</Land_FOW_Reveal_Range>
	<Space_FOW_Reveal_Range>800.0</Space_FOW_Reveal_Range>
	<MovementClass>Infantry</MovementClass>
	<Garrison_Category> Infantry </Garrison_Category>
	<CategoryMask>Infantry</CategoryMask>

	<Max_Speed> .8 </Max_Speed>
	<Max_Rate_Of_Turn>12.0</Max_Rate_Of_Turn>
	<Space_Layer> Land </Space_Layer>
	<UnitCollisionClass> Infantry </UnitCollisionClass>
	<FormationSpacing> 1 </FormationSpacing> 
	<MovementClass> Infantry </MovementClass>
	<OccupationStyle>1x1</OccupationStyle>
	<Is_Squashable> true </Is_Squashable>
	<MovementPredictionInterval> 4.0 </MovementPredictionInterval>	
	<ContainerArrangement> Rows </ContainerArrangement>
	<FormationOrder> 2 </FormationOrder>
	<Override_Acceleration> .1 </Override_Acceleration>
	<Override_Deceleration> .1 </Override_Deceleration>

	<Is_Visible_On_Radar>Yes</Is_Visible_On_Radar>
	<Radar_Icon_Scale_Land>80</Radar_Icon_Scale_Land>
	<Radar_Icon_Scale_Space>200</Radar_Icon_Scale_Space>

	<Icon_Name>501.tga</Icon_Name>

	<Targeting_Max_Attack_Distance>140.0</Targeting_Max_Attack_Distance>
	<Idle_Chase_Range>50.0</Idle_Chase_Range>
	<Guard_Chase_Range>200.0</Guard_Chase_Range>
	<Attack_Move_Response_Range>130.0</Attack_Move_Response_Range>
	<Autonomous_Move_Extension_Vs_Attacker>200.0</Autonomous_Move_Extension_Vs_Attacker>
	<Tactical_Bribe_Cost>45</Tactical_Bribe_Cost>		

	<!-- Non-Hero unit abilities description -->
	<Unit_Abilities_Data SubObjectList="Yes">
		<!-- Primary ability -->
		<Unit_Ability>
			<Type>SPREAD_OUT</Type>
			<Mod_Multiplier>SPEED_MULTIPLIER,	 0.5f</Mod_Multiplier>
			<Mod_Multiplier>TAKE_DAMAGE_MULTIPLIER, 0.5f</Mod_Multiplier>
		</Unit_Ability>
	</Unit_Abilities_Data>


</Container>
[code]

Thanks
[/code]

Edited by agentanorexia
Link to comment
Share on other sites

Actually, it's just a reskin. ;D

Thanks

 

Did you try any other skins, or just the 501st? You can use the terrain model mapping to change the model for different areas.

 

If you release your mod to the internet, please credit me and Dfeeds(he made most of the 501st, I made all the rest by myself)

"I feel fantastic and I'm

Still Alive

and when you're dying I will be

Still Alive

and when you're dead I will be

Still Alive

STILL ALIVE"~GLaDOS

Anybody who thinks Palpatine is a sepratist knows NOTHING about star Wars

When in doubt- rocket it.

Dowload The Underworld's Might beta from Filefront!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

Copyright (c) 1999-2022 by SWRebellion Community - All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Star Wars(TM) is a registered trademark of LucasFilm, Ltd. We are not affiliated with LucasFilm or Walt Disney. This is a fan site and online gaming community (non-profit). Powered by Invision Community

×
×
  • Create New...