[Help] Making different XML's for every EaW/FoC unit/hero/starship -1 reply

  • 1
  • 2

Please wait...

shadow0

The One brings the worst!

50 XP

3rd January 2007

0 Uploads

1,244 Posts

0 Threads

#1 8 years ago

Hey all, I am trying to make it so that every unit has there own XML, (for example, Stormtroopers), so instead of Groundinfantry, Groundcompaniesempire and Containers they will all be collected in Units_Land_Galactic_Empire_Stormtroopers. But everytime I do this, my game crashes, can anyone please help me >.<? I use the Alliance 4.5 Mod (what? I like the models and it got tons and tons of units, allthough the XML code is a mess D:) Also, here is the code of the Stormtrooper XML, maybe you can point me to any wrongs in there?

Spoiler: Show
<?xml version="1.0"?> 5 TEXT_UNIT_STORMTROOPER Rebel_Trooper Plex_Soldier Underworld_Merc MPTL Rebel_Infiltrator Destroyer_Droid EI_TROOPER_nsh.ALO Temperate, EI_TROOPER_nsh.ALO, Urban, EI_TROOPER_nsh.ALO, Arctic, Ei_trooper_snowE11.alo, Volcanic, EI_TROOPER_Sandx.ALO, Desert, EI_TROOPER_Sandx.ALO, Forest, EI_TROOPER_nsh.ALO, Swamp, EI_TROOPER_nsh.ALO SELECTABLE SURFACE_FX,WALK_LOCOMOTOR,IDLE,TARGETING,WEAPON, STUNNABLE, REVEAL,HIDE_WHEN_FOGGED,DAMAGE_TRACKING, GARRISON_UNIT, ABILITY_COUNTDOWN Yes No Yes yes 1.0 i_button_storm_trooper.tga Generic_Footprint, Infantry_Terrain_Modifier, High_Ground Infantry 0.8 20.0 .366 .537 0.8 20.0 3.5 2.0 2.0 Land Infantry .3 10 0.05 0.05 2 1.2 Walk No Empire, HarkovSide, Zaarinside 0 10 1 20 0 40 0 0 0 No Armor_Infantry 3 10.0, 10.0 B_Chest 1 yes Proj_Hand_Blaster_Red 130.0 7.0 10.0 1.0 Infantry, 3.0 Vehicle, 5.0 Air, 70.0 Structure, 10.0 Unit_Select_Storm_Trooper Unit_Move_Storm_Trooper Unit_Fleet_Move_Storm_Trooper Unit_Attack_Storm_Trooper Unit_Guard_Storm_Trooper Unit_Storm_Trooper_Fire Unit_Stormtrooper_Death Unit_Assist_Move_Storm_Trooper Unit_Assist_Attack_Storm_Trooper EHD_Reinforcements_En_Route EHD_Reinforcements_Available EHD_Reinforcements_Cancelled Infantry Infantry Fodder 1x1 3 5.0, 5.0 Generic_Shadow B_Chest 99 99 Yes Yes Yes 7 5.0 AvoidAntiInfantryTurrets 140.0 50.0 200.0 150.0 3.0f .5 Infantry TEXT_TOOLTIP_STORMTROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY TEXT_ENCYCLOPEDIA_CLASS_INFANTRY Damage_Force_Whirlwind, Stormtrooper_Force_Whirlwind_Death_Clone Damage_Crush, Stormtrooper_Crush_Death_Clone Damage_Disruptor_Hand, Infantry_Disruptor_Death_Clone_00 Damage_Disruptor_Hand, Infantry_Disruptor_Death_Clone_01 Damage_Infection, Infantry_Melt_Death_Clone_00 Damage_Remote_Bomb, Stormtrooper_Remote_Bomb_Death_Clone 0.25 0.0 25 Attention, Emperor_Palpatine, Darth_Vader, SPREAD_OUT SPEED_MULTIPLIER, 0.5f TAKE_DAMAGE_MULTIPLIER, 0.5f Unit_Take_Cover_Storm_Trooper Stormtrooper FW_DIE Stormtrooper Crushed Stormtrooper Unit_Stormtrooper_Bomb_Death Stormtrooper HINT No 5 TEXT_IMPERIAL_STORMTROOPER_SQUAD Rebel_Trooper Plex_Soldier MPTL Rebel_Infiltrator UC_Rebel_Buildable_Anti_Infantry_Turret TEXT_TOOLTIP_STORMTROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY TEXT_ENCYCLOPEDIA_CLASS_INFANTRY 1 Yes 18 100 Empire, Pirates, HarkovSide, Zaarinside 60 50 15 Yes Yes 1 0 1 0 E_Ground_Barracks DUMMY_GROUND_COMPANY 1 yes infantry Imperial_Landing_CraftA Stormtrooper_Team Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper 9 i_button_storm_trooper.tga EI_TROOPER_nsh.ALO EI_TROOPER_nsh.ALO 5 0 0 5 45 EHD_Build_Troops EHD_Recruitment_Canceled Unit_Complete_Storm_Trooper Unit_Fleet_Move_Storm_Trooper 300 5 Tactical_Units SPREAD_OUT SPEED_MULTIPLIER, 0.5f TAKE_DAMAGE_MULTIPLIER, 0.5f 0.05 1 54 Imperial_Stormtrooper_Squad Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper 6 No 9 9 Imperial_Stormtrooper_Squad Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper 6 No 3 3 Imperial_Stormtrooper_Squad Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper,Squad_Stormtrooper, Squad_Stormtrooper, Squad_Stormtrooper 9 6 No 9 65 TEXT_IMPERIAL_STORMTROOPER_SQUAD Rebel_Trooper Plex_Soldier MPTL Rebel_Infiltrator UC_Rebel_Buildable_Anti_Infantry_Turret TEXT_TOOLTIP_STORMTROOPER TEXT_TOOLTIP_UNIT_CAPTURE_ABILITY TEXT_ENCYCLOPEDIA_CLASS_INFANTRY No TEAM,SELECTABLE,UNIT_AI REVEAL, LAND_TEAM_CONTAINER_LOCOMOTOR, TEAM_TARGETING, GARRISON_UNIT,ABILITY_COUNTDOWN REVEAL 200.0 800.0 Infantry Infantry Infantry .8 12.0 Land Infantry 1 Infantry 1x1 true 4.0 Rows 2 .1 .1 Yes 80 200 i_button_storm_trooper.tga 140.0 50.0 200.0 130.0 200.0 25 ObjectScript_Summon_AutoFire2 SPREAD_OUT SPEED_MULTIPLIER, 0.5f TAKE_DAMAGE_MULTIPLIER, 0.5f Unit_Take_Cover_Storm_Trooper

*Edit: Also I was wondering anybody knows where I can find the Old Republic (KotOR) Soldiers by Z3r0x?( I think 't was Z3r0x)? And last, are there any TFU Models freely released? or an mod having some of those units ;)?




xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#2 8 years ago

Well, let's see. I know that if you don't make sure that the individual XML files are all referenced individually in that one master XML sheet (whatever it's called) you're going to run into issues. You would also have to make sure it doesn't reference the ground infantry XML file anymore too, unless you keep that empty, then it doesn't matter. That's all I can think of off-hand.




shadow0

The One brings the worst!

50 XP

3rd January 2007

0 Uploads

1,244 Posts

0 Threads

#3 8 years ago

Yea I tried that (I added it to the Gameobjectfiles) and removed it from the GroundInfantry etcetc :-/

So I decided to test it on Structures, but when I do that with structures (I use the base code of the Droid Works to add a whole new structure) and that runs smoothly :s

So, I'mma giving it another try :P

Also do you know why my new buildings don't show there icons? I removed them from RaW and added them to the Alliance mod using the MTD Editor, I made sure the name is correct, but my new icons don't appear at all :-/




xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#4 8 years ago

shadow0;5633429Yea I tried that (I added it to the Gameobjectfiles) and removed it from the GroundInfantry etcetc :-/

So I decided to test it on Structures, but when I do that with structures (I use the base code of the Droid Works to add a whole new structure) and that runs smoothly :s

So, I'mma giving it another try :P

Also do you know why my new buildings don't show there icons? I removed them from RaW and added them to the Alliance mod using the MTD Editor, I made sure the name is correct, but my new icons don't appear at all :-/

Well, I'm working on getting a working editor on my Mac, so I'll get back to you on this once I've taken a look at it myself.




shadow0

The One brings the worst!

50 XP

3rd January 2007

0 Uploads

1,244 Posts

0 Threads

#5 8 years ago

Cool, thanks :) can't wait till the day you can teach me what I am doing wrong xD




xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#6 8 years ago

Well, first things first.

You did remove the data from: GROUNDCOMPANIESEMPIRE.XML and GROUNDINFANTRY.XML

and added Units_Land_Galactic_Empire_Stormtroopers to GAMEOBJECTFILES.XML

preferably very near to wherever is within GAMEOBJECTFILES.XML (don't ask me why, that just seems to make a difference sometimes, so I'd recommend putting them right next to the other new Imperial units)

I would also be certain to leave GROUNDCOMPANIESEMPIRE.XML and GROUNDINFANTRY.XML within GAMEOBJECTFILES.XML even if they are "empty".

If that doesn't help, I'm not sure what could be the problem. That's a lot of data to look at for potential errors, so you might want to simply re-copy paste everything more carefully just in case, rather than look through it all for a potential error.




shadow0

The One brings the worst!

50 XP

3rd January 2007

0 Uploads

1,244 Posts

0 Threads

#7 8 years ago

Okej, I guess I will try that again :)

Thanks for your time and help nonetheless, it's appreciated :D




jedi_consulor

Girl Gamers,were Awesome!

50 XP

13th July 2006

0 Uploads

1,246 Posts

0 Threads

#8 8 years ago

The code from 'that' mod, is pretty complicated, you really shouldn't edit anyone's mod, if your not sure what your doing. Besides the majority of mod authors will not support any changes made to the structure of their files anyway.




shadow0

The One brings the worst!

50 XP

3rd January 2007

0 Uploads

1,244 Posts

0 Threads

#9 8 years ago

I know and I know what I am doing (most of the time ;P) it's just I like the Alliance mod, but the things I dislike I want to change, it's only for personal use to, so theres no problems there.

Besides, slowly (very slowly) I'm getting a sort of hang for it ;P I added a few CIS Structures and made them droids buildable for all factions on all planets, so meh :P either I will learn or give up ^^




DragonShadow

shady dragon-person

50 XP

15th April 2006

0 Uploads

444 Posts

0 Threads

#10 8 years ago

When precisely does the game crash when you do this? On startup, when you build the unit, when you try to use the unit in battle, etc. Knowing that might help narrow down the possible causes.

Honestly i would probably start with vanilla and take what you want from Alliance rather than try and modify Alliance itself (files are way too disorganized).




  • 1
  • 2