Odd thingy . . . fighter/infantry abilities. -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 12 years ago

So I'm messing around. I want to watch a big battle instead of fight it, so I peek at the XML to toy with it. Before I know it I'm wrapped up in a project to edit every unit in eight or nine files. Space fighters/vettes/frigates/caps, ground infantry/vehicles/some other stuff, and Uniques.

So toying around with things, finding a makework task to get myself used to the format, I'm giving (almost) every unit the 'hunt' ability. (Almost all hero units except Vader, Han, and Bobba have two abilities, and it looks like, though I haven't tested this, that you can't add more than two activatable abilities without breaking the unit display. Any confirmation?)

Problem is, after making the same edit to all the units in all these files . . . adding land/space behaviour 'hunt', and adding the hunt ability . . . everything seems to hunt passably, with two exceptions.

One, artillery. Sometimes it doesn't want to undeploy, and if you manually do so, it looks like you have to manually move it then re-activate hunt -- even then it takes a few moments to kick in. Therefore, it may be this delay that's causing stationary units after merely de/reactivating hunt. Though with the pauses I've seen, I don't think this is causing the undeploy problem. They're also sort of stupid hunters.

Well, I can't help that. They weren't made with hunting in mind. I prefer using them defensively, or to micromanage their supporting role, anyway, though it IS fun unleashing 15 or 16 MPTL's and watching them blow stuff up.

Two, infantry. I've made all the same changes to infantry. The Rebel infiltrator and the Imperial scouter work, too. (On, or off the bike) Mere infantry or rocket infantry? Field commanders? Nothing.

Three, though I haven't tested space extensively yet, (Haven't tried every single unit) fighters. Same problem as infantry - tested Tie Fighter, Bomber, Pirate Fighter, IPV(IPC? IPD? The pirate laser vette), Corellian Vette. None of the fighters hunt. All of the vettes did.

I even have a theory . . . squad units don't work. Every single 'squad unit' fails. (Infantry, plex, field coms, fighters.) All the 'loner units are good. (Scouter, Infiltrator, vettes, t4b, so forth.)

Oh, one other. I used search-and-replace carefully to make the same change repeatedly, so the spotter has hunt, too. Oops. Activating it does nothing though. I guess due to the lack of weaponry.

So . . . is there something I need to do to the 'squad unit'? Stormtroopers all have hunt, but the squad only has the landbehaviour part . . . since they are a variant, I figure having hunt in only one location would work. . . they also have the 'spread out' ability individually, and not repeated in the 'squad unit' and the squad DOES have that in play. What am I missing?




Droid

I'm Crazy

50 XP

13th March 2006

0 Uploads

729 Posts

0 Threads

#2 12 years ago

TIEs have hunt. Thus proving squad units work. :) Check the TIEs and copy 'em for the fighters :)




ViceMan

Illmatic.™

50 XP

7th March 2006

0 Uploads

168 Posts

0 Threads

#3 12 years ago

Y-Wings won't hunt, the ability won't appear above their icon even if you add it. That's due to the squadron being in a container, remove the container and hunt appears but ion cannon shot won't, so I just removed hunt for the TIE-Bombers to even things up.




Guest

I didn't make it!

0 XP

 
#4 12 years ago
D803TIEs have hunt. Thus proving squad units work. :) Check the TIEs and copy 'em for the fighters :)[/quote] Yeah, I know it's possible . . . I just dunno how. I'll go over that unit again, though . . . it IS my only lead. [quote=ViceMan]Y-Wings won't hunt, the ability won't appear above their icon even if you add it. That's due to the squadron being in a container, remove the container and hunt appears but ion cannon shot won't, so I just removed hunt for the TIE-Bombers to even things up

Container . . . container . . . I see this in the settings, though I don't know exactly what the implications of a container are. :confused: Besides. This can't be the reason - ywings are commented as needing it for a targeted ability - the ion shot - but x-wings have no such ability. Nor Tie fighters, nor infantry. But they all suffer from the lack of hunt working. [Edit: Sorry. Tie BOMBERS. Tie BOMBERS don't hunt. Of course Tie Fighters work.] Anyway . . . when I stop fooling with Prince of Persia 3 for a day or so, and after further investigating the tie fighters, as suggested above, I'm going to try adding Hunt to the squadron and ground Companies files, and see what happens. At least, that's my idea right now. [Edit #2: Of course, I could just set all max. squad sizes to '1'. That would probably do it.] Okay. I haven't tried the edit yet - I only just found the data, but haven't had time to change it - I go to work in two hours. Maybe I'll have tried it by then. If so I'll edit this post up, or pop up another. Abilities are defined in ground vehicles, infantry, space fighters, vettes, caps, etc .xml. And in squadrons/groundcompanies.xml AND in containers.xml, where a container is defined for squad units with targeted abilities, it seems. Like Red Squad's x-wings, and of course, y-wings. So I have a third place to alter abilities lists. Here's a question. Since I haven't done anything but my own work thus far, I'm not really sure what's required of a single XML file. Do I have to require the ENTIRE XML, plus alterations, or only the altered portions? Is there any way I can reduce the size of these files, or something, because load time's not pretty right now. Well, I made all my changes. But now SW:EaW is going on about DX and D3D9 being a bitch. Something wrong with the rasterizer in D3D9, and DX's saying my computer 'only has a reduced-functionality reference set installed', install the developer's something or other for a full reference set. Blech. What the Bleepety-effing-bleep happened? I removed my changes, and it did no good. Will try reinstalling the nucked-up components. I hate when I post on boards with young'uns around . . . sometimes, you just gotta cuss. And doing it in the privacy of your own home just isn't as satisfying. Worrysome. [COLOR=red]"Worrysome" - This you are. I have just had to merge three consecutive posts by you. Could you please not bump on posts? - Wait for a reply, and *then* post. Thanks.[/COLOR]




ViceMan

Illmatic.™

50 XP

7th March 2006

0 Uploads

168 Posts

0 Threads

#5 12 years ago

TIE Bombers do hunt, at least they do in my game. As far as I know the only fighter unable to hunt is the Y-Wing, I think the container makes the squadron behave like a single unit with a single mind, I don't think they can break formation like other squadrons, for TIE's and such each unit in the squadron can target different enemies, although the squadron stays together they are independent units, but add a container to the squadron and they essentially become one unit, rendering the hunt ability useless. Remove the container and hunt will work fine, but you'll have no ion cannon shot. I know, i've tried it.




Guest

I didn't make it!

0 XP

 
#6 12 years ago

Well . . . . I've since set this problem aside . . . I'm having the same problem. Nothing I do, save breaking ion shot, can make those damn y-wings hunt. Damn lackwits. :) Anyway. If I can work up motivation for this again, I'll try giving red team hunt -- which, due to 'lucky shot,' a targeted ability like the ion shot -- which is the stated reason for putting the y's in a container -- also seem to be in a container. If it succeeds on Red Team . . . then . . . there must just be something hard-coded about y's or ion shot or something that doesn't work with hunt. Of course, if it doesn't, that's proof positive that it's the containers that break hunt. Scientific method, folks, scientific method. It's great, it's wonderful, it makes proof for things that aren't proven, and . . . . It's boring as hell, in the process. Oh well. If I can find the motivation to wander away from other things . . .




ViceMan

Illmatic.™

50 XP

7th March 2006

0 Uploads

168 Posts

0 Threads

#7 12 years ago

Actually, contradicting what I said in my previous post, it is possible for Y-Wings to have hunt. All you need to do is change the unit info in Containers.XML so it looks like this. (Copy/paste all of this over the exising unit info.) Darth_Vader_TIE_Fighter_Container Star_Destroyer Victory_Destroyer Acclamator_Assault_Ship TIE_Fighter Tartan_Patrol_Cruiser Pirate_Fighter TEXT_TOOLTIP_Y_WING TEXT_ENCYCLOPEDIA_CLASS_BOMBER TEXT_Y_WING_SQUADRONi_button_y_wing.tgaRV_ywing.ALO1200 0 045 TEAM, TEAM_LOCOMOTOR, SELECTABLE, TARGETING, UNIT_AI HUNT, REVEAL, ABILITY_COUNTDOWNBomber | AntiFrigate | AntiCapital5.01.5yes1.5ION_CANNON_SHOT20.0Y_Wing_Container_Ion_Cannon_ShotProj_Ion_Cannon_Medium_Laser_BlueHUNT User_Input All Then in SpaceUnitsFighters.XML Replace the spacebehavior and ability lines with these. HUNT, REVEAL, ABILITY_COUNTDOWN ION_CANNON_SHOT20.0Y_Wing_Container_Ion_Cannon_ShotProj_Ion_Cannon_Medium_Laser_BlueHUNT Then in Squadrons.XML add "HUNT" to the spacebehaviour line and this under the ion cannon shot ability: HUNT As for Red Squadron hunt I think that IS impossible because they have two abilities already. Ugh, now i'm just rambling, think i've had one too many.:beer:




CWarren410

I don't spend enough time here

50 XP

25th January 2006

0 Uploads

29 Posts

0 Threads

#8 12 years ago

This did not work. The "hunt" button appears but does nothing and also the game crashes with an error.




ViceMan

Illmatic.™

50 XP

7th March 2006

0 Uploads

168 Posts

0 Threads

#9 12 years ago

Worked for me. You've probably missed something. Try copy/pasting all of this in. Containers.XML Darth_Vader_TIE_Fighter_Container Star_Destroyer Victory_Destroyer Acclamator_Assault_Ship TIE_Fighter Tartan_Patrol_Cruiser Pirate_Fighter TEXT_TOOLTIP_Y_WING TEXT_ENCYCLOPEDIA_CLASS_BOMBER TEXT_Y_WING_SQUADRONi_button_y_wing.tgaRV_ywing.ALO1200 0 045 TEAM, TEAM_LOCOMOTOR, SELECTABLE, TARGETING, UNIT_AI HUNT, REVEAL, ABILITY_COUNTDOWNBomber | AntiFrigate | AntiCapital5.01.5yes1.5ION_CANNON_SHOT20.0Y_Wing_Container_Ion_Cannon_ShotProj_Ion_Cannon_Medium_Laser_BlueHUNT User_Input All SpaceUnitsFighters.XML TEXT_UNIT_Y_WINGTEXT_TOOLTIP_Y_WING TEXT_ENCYCLOPEDIA_CLASS_BOMBER Star_Destroyer Victory_Destroyer Acclamator_Assault_Ship TIE_Fighter Tartan_Patrol_Cruiser Pirate Fighter rv_ywing.alo0.770-1 50.0 00.20.99no204033.02.01.31.03.070500.0Yes1.50.1Rebel0230603500300bomber Armor_Bomber Shield_Fighter2noyesY-Wing_Bombing_Run00370138 HUNT, FIGHTER_LOCOMOTOR, SELECTABLE, TARGETING, POWERED, SHIELDED, HIDE_WHEN_FOGGED, AMBIENT_SFX, DAMAGE_TRACKING, REVEAL, NEBULA Yes512.0130.0600.0500.0Small_Explosion_SpaceUnit_Y_Wing_Death_SFXSmall_Damage_Space HP_BOMBER_01, HP_BOMBER_03 Unit_Y_Wing_Fire Unit_Select_Y_WingUnit_Move_Y_WingUnit_Fleet_Move_Y_WingUnit_Attack_Y_WingUnit_Guard_Y_Wing Unit_Asteroids_Y_Wing Unit_Nebula_Y_Wing Unit_Health_Low_Y_Wing Unit_Health_Critical_Y_Wing HARD_POINT_WEAPON_LASER, Unit_HP_LASER_Y_Wing HARD_POINT_WEAPON_MISSILE, Unit_HP_MISSILE_Y_Wing HARD_POINT_WEAPON_TORPEDO, Unit_HP_TORP_Y_Wing HARD_POINT_WEAPON_ION_CANNON, Unit_HP_ION_Y_Wing HARD_POINT_SHIELD_GENERATOR, Unit_HP_SHIELDS_Y_Wing HARD_POINT_ENGINE, Unit_HP_ENGINES_Y_Wing HARD_POINT_GRAVITY_WELL, Unit_HP_GRAV_Y_Wing Unit_Y_Wing_Fly_By 5 10 Unit_Y_Wing_Cinematic_Engine_Loop Bomber | AntiCapital SmallShip i_button_y_wing.tgayes Yes Yes0.6 15.0 Space -1.050.0Yes752.0Bomber5.0Yes0.22.0fSmall_Explosion_SpaceUnit_Y_Wing_Spinning_BytrueION_CANNON_SHOTUnit_Attack_Y_WingHUNT500.00 Squadrons.XML TEXT_Y_WING_SQUADRON Star_Destroyer Victory_Destroyer Acclamator_Assault_Ship TIE_Fighter Tartan_Patrol_Cruiser Pirate_Fighter 1 Yes2Nosyes20015Rebel021020YesYesYes40002DUMMY_SPACE_FIGHTER_SQUADRONY-Wing, Y-Wing, Y-Wing10.0,0.0,0.00.0,15.0,0.00.0,-15.0,0.0i_button_y_wing.tgaRV_ywing.ALO1200 0 045RHD_Build_VehicleRHD_Unit_CanceledUnit_Complete_Y_Wing325.01000.0200.0300.0300.0 SmallShip Y_Wing_Squadron_Container 6 ION_CANNON_SHOTHUNTTEXT_TOOLTIP_Y_WING TEXT_ENCYCLOPEDIA_CLASS_BOMBER 55017Tactical_Units1 700

If that doesn't do it I don't know what will, all I know is that it does work. I'll take a screenie if you don't believe me.