| SW:EaW Modding, Mapping and Editing Want more info about a Mod? Making a Mod? Looking for Modders, Mappers, Skinners, etc.? This is your Spot! |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| ||||
| ||||
| I have been trying to code a Grand Admiral Zaarin hero for the Empire but he doesn't show up in game. I can put him in the map editor and play him on a custom map and everything works fine apart from his icon doesn't appear, all i get is a empty box. I have got an icon in tga format in the textures folder. He is a space only hero and uses his ship the Glory. Here is the coding for Zaarin: Code: <HeroUnit Name="Grand_Admiral_Zaarin"> <Is_Named_Hero>Yes</Is_Named_Hero> <Text_ID>TEXT_HERO_ZAARIN</Text_ID> <Icon_Name>I_BUTTON_ADMIRAL_ZAARIN.tga</Icon_Name> <Mass>1.0</Mass> <Scale_Factor>1.0</Scale_Factor> <!--<Is_Sprite>No</Is_Sprite> --> <Type>Walk</Type> <Affiliation>Empire</Affiliation> <Required_Timeline>4</Required_Timeline> <Required_Ground_Base_Level>0</Required_Ground_Base_Level> <Required_Star_Base_Level>0</Required_Star_Base_Level> <Required_Special_Structures/> <Required_Planets/> <IsBuildable>No</IsBuildable> <Spawn_Planet>Anaxes</Spawn_Planet> <Size_Value>75</Size_Value> <Damage>95</Damage> <Autoresolve_Health>250</Autoresolve_Health> <Attach_To_Flagship_During_Space_Battle>No</Attach_To_Flagship_During_Space_Battle> <Unique_Space_Unit>Glory_Star_Destroyer</Unique_Space_Unit> <Stay_In_Transport_During_Ground_Battle>Yes</Stay_In_Transport_During_Ground_Battle> <SFXEvent_Select>Unit_Select_Piett</SFXEvent_Select> <SFXEvent_Move>Unit_Move_Piett</SFXEvent_Move> <SFXEvent_Fleet_Move>Unit_Fleet_Move_Piett</SFXEvent_Fleet_Move> <SFXEvent_Attack>Unit_Attack_Piett</SFXEvent_Attack> <SFXEvent_Guard>Unit_Guard_Piett</SFXEvent_Guard> <!-- <Death_SFXEvent_Start_Die> Unit_Defeat_Piett </Death_SFXEvent_Start_Die> --> <CategoryMask> SpaceHero </CategoryMask> <Ranking_In_Category> 3 </Ranking_In_Category> <Neutralization_Cost>1000.0</Neutralization_Cost> <Can_Be_Neutralized_By_Major_Heroes>Yes</Can_Be_Neutralized_By_Major_Heroes> <Can_Be_Neutralized_By_Minor_Heroes>Yes</Can_Be_Neutralized_By_Minor_Heroes> <Encyclopedia_Text> TEXT_TOOLTIP_ZAARIN</Encyclopedia_Text> <Encyclopedia_Unit_Class> TEXT_ENCYCLOPEDIA_CLASS_FLEET_COMMANDER </Encyclopedia_Unit_Class> <Abilities SubObjectList="Yes"> <Combat_Bonus_Ability Name="Piet_Combat_Bonus_General"> <Activation_Style>Space_Automatic</Activation_Style> <Unit_Strength_Category>Capital | Corvette | Frigate | Fighter</Unit_Strength_Category> <Applicable_Unit_Categories>Capital | Corvette | Frigate | Fighter</Applicable_Unit_Categories> <Applicable_Unit_Types/> <Health_Bonus_Percentage>0.25</Health_Bonus_Percentage> <Damage_Bonus_Percentage>0.0</Damage_Bonus_Percentage> <Energy_Pool_Bonus_Percentage>0.0</Energy_Pool_Bonus_Percentage> <Shield_Bonus_Percentage>0.0</Shield_Bonus_Percentage> <Defense_Bonus_Percentage>0.0</Defense_Bonus_Percentage> <Movement_Speed_Bonus_Percentage>0.0</Movement_Speed_Bonus_Percentage> <Stacking_Category>0</Stacking_Category> </Combat_Bonus_Ability> <Combat_Bonus_Ability Name="Piet_Combat_Bonus_Star_Destroyer"> <Unit_Strength_Category/> <Activation_Style>Space_Automatic</Activation_Style> <Applicable_Unit_Categories/> <Applicable_Unit_Types>Star_Destroyer</Applicable_Unit_Types> <Health_Bonus_Percentage>0.25</Health_Bonus_Percentage> <Damage_Bonus_Percentage>0.0</Damage_Bonus_Percentage> <Energy_Pool_Bonus_Percentage>0.0</Energy_Pool_Bonus_Percentage> <Shield_Bonus_Percentage>0.0</Shield_Bonus_Percentage> <Defense_Bonus_Percentage>0.0</Defense_Bonus_Percentage> <Movement_Speed_Bonus_Percentage>0.0</Movement_Speed_Bonus_Percentage> <!-- note stacking category, this stacks with other hero combat bonuses --> <Stacking_Category>1</Stacking_Category> </Combat_Bonus_Ability> </Abilities> </HeroUnit> Code: <UniqueUnit Name="Glory_Star_Destroyer"> <Variant_Of_Existing_Type>Generic_Star_Destroyer</Variant_Of_Existing_Type> <Encyclopedia_Good_Against> Corellian_Corvette Corellian_Gunboat Marauder_Missile_Cruiser </Encyclopedia_Good_Against> <Encyclopedia_Vulnerable_To> Y-wing </Encyclopedia_Vulnerable_To> <Icon_Name>i_button_zaarin.tga</Icon_Name> <Is_Named_Hero>Yes</Is_Named_Hero> <Prevents_Story_Campaign_Autoresolve>yes</Prevents_Story_Campaign_Autoresolve> <Text_ID>TEXT_UNIT_SD_GLORY</Text_ID> <Encyclopedia_Text> TEXT_TOOLTIP_ZAARIN</Encyclopedia_Text> <Encyclopedia_Unit_Class> TEXT_ENCYCLOPEDIA_CLASS_FLEET_COMMANDER </Encyclopedia_Unit_Class> <SpaceBehavior> ABILITY_COUNTDOWN, SIMPLE_SPACE_LOCOMOTOR, POWERED, SHIELDED, HIDE_WHEN_FOGGED, REVEAL, TARGETING, UNIT_AI, ASTEROID_FIELD_DAMAGE, ION_STUN_EFFECT, NEBULA, SPAWN_SQUADRON </SpaceBehavior> <Ranking_In_Category>3</Ranking_In_Category> <HardPoints> HP_Star_Destroyer_Weapon_FL, HP_Star_Destroyer_Weapon_FR, HP_Star_Destroyer_Weapon_BL, HP_Star_Destroyer_Weapon_BR, HP_Star_Destroyer_Weapon_ML, HP_Star_Destroyer_Weapon_MR, HP_Star_Destroyer_Shield_Generator, HP_Star_Destroyer_Engines, HP_Star_Destroyer_Fighter_Bay, HP_Star_Destroyer_Tractor_Beam </HardPoints> <Tech_Level>99</Tech_Level> <SFXEvent_Select>Unit_Select_Piett</SFXEvent_Select> <SFXEvent_Move>Unit_Move_Piett</SFXEvent_Move> <SFXEvent_Fleet_Move>Unit_Fleet_Move_Piett</SFXEvent_Fleet_Move> <SFXEvent_Attack>Unit_Attack_Piett</SFXEvent_Attack> <SFXEvent_Guard>Unit_Guard_Piett</SFXEvent_Guard> <SFXEvent_Health_Low_Warning> Unit_Health_Low_Piett </SFXEvent_Health_Low_Warning> <SFXEvent_Health_Critical_Warning> Unit_Health_Critical_Piett </SFXEvent_Health_Critical_Warning> <SFXEvent_Hardpoint_Destroyed> HARD_POINT_WEAPON_LASER, Unit_Lost_Laser_Star_Destroyer </SFXEvent_Hardpoint_Destroyed> <SFXEvent_Hardpoint_Destroyed> HARD_POINT_WEAPON_MISSILE, </SFXEvent_Hardpoint_Destroyed> <SFXEvent_Hardpoint_Destroyed> HARD_POINT_WEAPON_TORPEDO, </SFXEvent_Hardpoint_Destroyed> <SFXEvent_Hardpoint_Destroyed> HARD_POINT_WEAPON_ION_CANNON, Unit_Lost_Ion_Star_Destroyer </SFXEvent_Hardpoint_Destroyed> <SFXEvent_Hardpoint_Destroyed> HARD_POINT_SHIELD_GENERATOR, Unit_Lost_Shields_Piett </SFXEvent_Hardpoint_Destroyed> <SFXEvent_Hardpoint_Destroyed> HARD_POINT_ENGINE, Unit_Lost_Engines_Star_Destroyer </SFXEvent_Hardpoint_Destroyed> <SFXEvent_Hardpoint_Destroyed> HARD_POINT_GRAVITY_WELL, </SFXEvent_Hardpoint_Destroyed> <SFXEvent_Hardpoint_Destroyed> HARD_POINT_FIGHTER_BAY, Unit_Lost_Bay_Star_Destroyer </SFXEvent_Hardpoint_Destroyed> <SFXEvent_Hardpoint_Destroyed> HARD_POINT_TRACTOR_BEAM, Unit_Lost_Tractor_Piett</SFXEvent_Hardpoint_Destroyed> <SFXEvent_Hardpoint_Destroyed> HARD_POINT_ENABLE_SPECIAL_ABILITY, </SFXEvent_Hardpoint_Destroyed> <SFXEvent_Engine_Idle_Loop> Unit_Star_Destroyer_Idle_Engine_Loop </SFXEvent_Engine_Idle_Loop> <SFXEvent_Engine_Moving_Loop> Unit_Star_Destroyer_Moving_Engine_Loop </SFXEvent_Engine_Moving_Loop> <SFXEvent_Engine_Cinematic_Focus_Loop> Unit_Star_Destroyer_Cinematic_Engine_Loop </SFXEvent_Engine_Cinematic_Focus_Loop> <AI_Combat_Power>6000</AI_Combat_Power> <Score_Cost_Credits> 50000 </Score_Cost_Credits> <Build_Cost_Credits>0</Build_Cost_Credits> <CategoryMask> Capital | SpaceHero | AntiFrigate </CategoryMask> <Population_Value>4</Population_Value> <!--<MULTIPLAYER SKIRMISH VALUES BEGIN> --> <Tactical_Build_Cost_Multiplayer>6700</Tactical_Build_Cost_Multiplayer> <Tactical_Build_Time_Seconds>60</Tactical_Build_Time_Seconds> <Tactical_Build_Prerequisites/> <Tactical_Production_Queue>Tactical_Units</Tactical_Production_Queue> <Build_Limit_Current_Per_Player>1</Build_Limit_Current_Per_Player> <Build_Limit_Lifetime_For_All_Allies>-1</Build_Limit_Lifetime_For_All_Allies> <!--<MULTIPLAYER SKIRMISH VALUES END> --> <!-- Hero abilities for Captain Piett added to ship; Hero "moveable" unit removed --> <Unit_Abilities_Data SubObjectList="Yes"> <Unit_Ability> <Type>TRACTOR_BEAM</Type> <Mod_Multiplier>SPEED_MULTIPLIER, 0.6f</Mod_Multiplier> <GUI_Activated_Ability_Name>Piet_Tractor_Beam_Attack_Ability</GUI_Activated_Ability_Name> <!-- GUI Command Bar support --> <Recharge_Seconds>15</Recharge_Seconds> <SFXEvent_Target_Ability>Unit_Tractor_Beam_Star_Destroyer</SFXEvent_Target_Ability> <SFXEvent_Special_Ability_Loop> Unit_Star_Destroyer_Tractor_Beam </SFXEvent_Special_Ability_Loop> </Unit_Ability> </Unit_Abilities_Data> <Abilities SubObjectList="Yes"> <Combat_Bonus_Ability Name="Zaarin_Combat_Bonus_General"> <Activation_Style>Space_Automatic</Activation_Style> <Unit_Strength_Category> Fighter</Unit_Strength_Category> <Applicable_Unit_Categories>Fighter</Applicable_Unit_Categories> <Applicable_Unit_Types/> <Health_Bonus_Percentage>0.50</Health_Bonus_Percentage> <Damage_Bonus_Percentage>0.25</Damage_Bonus_Percentage> <Energy_Pool_Bonus_Percentage>0.0</Energy_Pool_Bonus_Percentage> <Shield_Bonus_Percentage>0.0</Shield_Bonus_Percentage> <Defense_Bonus_Percentage>0.0</Defense_Bonus_Percentage> <Movement_Speed_Bonus_Percentage>0.25</Movement_Speed_Bonus_Percentage> <Stacking_Category>0</Stacking_Category> </Combat_Bonus_Ability> <Combat_Bonus_Ability Name="Piet_Combat_Bonus_Star_Destroyer"> <Unit_Strength_Category/> <Activation_Style>Space_Automatic</Activation_Style> <Applicable_Unit_Categories/> <Applicable_Unit_Types>Star_Destroyer</Applicable_Unit_Types> <Health_Bonus_Percentage>0.25</Health_Bonus_Percentage> <Damage_Bonus_Percentage>0.0</Damage_Bonus_Percentage> <Energy_Pool_Bonus_Percentage>0.0</Energy_Pool_Bonus_Percentage> <Shield_Bonus_Percentage>0.0</Shield_Bonus_Percentage> <Defense_Bonus_Percentage>0.0</Defense_Bonus_Percentage> <Movement_Speed_Bonus_Percentage>0.0</Movement_Speed_Bonus_Percentage> <!-- note stacking category, this stacks with other hero combat bonuses --> <Stacking_Category>1</Stacking_Category> </Combat_Bonus_Ability> <Energy_Weapon_Attack_Ability Name="Piet_Energy_Weapon_Attack_Ability"> <Activation_Style> User_Input </Activation_Style> <Applicable_Unit_Categories>Capital | Corvette | Frigate | Fighter | Bomber | Transport</Applicable_Unit_Categories> <Applicable_Unit_Types/> <Owner_Particle_Effect>Piet_Powerup_Particle_Effect</Owner_Particle_Effect> <Owner_Particle_Bone_Name>HP_trac_bone</Owner_Particle_Bone_Name> <Activation_Min_Range>0</Activation_Min_Range> <Activation_Max_Range>800</Activation_Max_Range> <!-- Modifiers. If 0 - no modifier is applied, 1 - "100% increase or decrease" --> <Damage_Per_Frame>50</Damage_Per_Frame> </Energy_Weapon_Attack_Ability> <Tractor_Beam_Attack_Ability Name="Piet_Tractor_Beam_Attack_Ability"> <Activation_Style> User_Input </Activation_Style> <Applicable_Unit_Categories>Transport | Corvette | Frigate</Applicable_Unit_Categories> <Applicable_Unit_Types>Millennium_Falcon</Applicable_Unit_Types> <Activation_Min_Range>0</Activation_Min_Range> <Activation_Max_Range>800</Activation_Max_Range> <!-- Modifiers. If 0 - no modifier is applied, 1 - "100% increase or decrease" --> <Target_Speed_Decrease_Percent>0.45</Target_Speed_Decrease_Percent> <Stacking_Category>2</Stacking_Category> </Tractor_Beam_Attack_Ability> </Abilities> </UniqueUnit>
__________________ ![]() One year since i first used filefront! ![]() |
|
#2
| ||||
| ||||
| You also need to put a new hero in the following files for the empire: Story_sandbox_10a_empire.xml Story_sandbox_10b_empire.xml Story_sandbox_12u_empire.xml Story_sandbox_15_empire.xml Story_sandbox_21u_empire.xml Story_sandbox_25_empire.xml Story_sandbox_27_empire.xml Story_sandbox_33b_empire.xml Story_sandbox_35_empire.xml Story_sandbox_36u_empire.xml Story_sandbox_44_empire.xml Story_sandbox_50_empire.xml Story_sandbox_56_empire.xml Story_sandbox_60_empire.xml Well, actually, you only need him in the ones that are in FoC, but I don't quite remember which ones those are. Though I know any one with "##u_" in it is, as well as "56". Here is an example of how you'd put in new heroes in one of those: Spoiler:
__________________ ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() My laptop is down, possibly permanently, so I've potentially lost all my work. I'm overly judgmental, so I think most of it was just crap anyway. |
|
#3
| ||||
| ||||
| Also the icon doesn't go into the 'textures' folder. You need to use the MTD editor to insert new icons. |
|
#4
| |||
| |||
| Watch when your adding new icons to your mod, I found you have to add them all at once otherwise the game won't read them all. |
| Bookmarks |
| Tags |
| mod help |
| Thread Tools | |
| Display Modes | |
| |