Jump to content

How to mod Aircraft?


Lorebot

Recommended Posts

So I've been trying to give the Foxtrot back some of its teeth by readding some hardpoints to the craft.

Trouble is that every way I've tried to do it results in a CTD in the ship loadout screen when I click on the new hardpoints.

I'd like to enable the 2 forward hardpoints as normal slots. So I went into the .xml and changed the Normal column to 2 and then further down the row added ;AV.SIDEWINDER;AV.SIDEWINDER to the Loadout column. I figured these 2 changes would do the trick. Once in the game my Foxtrot displays the 2 forward hardpoints, but they're blank and clicking on them causes a CTD.

So I figured maybe it had something to do with mixing slots, no other craft does it. So I went in and gave it 0 Normal and 4 Heavy slots. Then changed the loadout for only AV.AVALANCHE. Start the game and the same thing happens, 2 forward hardpoints are blank and clicking on them causes a CTD.

The Slots and WeaponPositions columns seem to still be set up for 4 hardpoints, and they show up in the loadout screen so I'm not sure what the issue is. The Foxtrot still works fine as long as you don't click on the 2 blank hardpoints. You can launch it and fight with it, it rearms, refuels, and repairs properly. The extra 2 hardpoint slots appear in the air combat window, they're just blank.

So clearly I'm missing something. Anyone got any ideas on how to make this change work properly?

Link to comment
Share on other sites

I could do that if I wanted to carry 4 of the same thing. The advantage of having 4 hardpoints is that I can mix-up the loadout more. 3 Torps and 1 Missile or 3 Missiles and a Torp aren't possible with just doubling up on weapon ammo. Granted the main reason for this is to let the Foxtrot carry 4 Torps to handle the larger alien ships easier, so doubling up on ammo would satisfy that. But atm I'm sort of more interested in why this is causing a CTD than actually getting the desired results.

I want to know if I'm doing something wrong or if they changed something about the aircrafts so you can't alter them this way.

Link to comment
Share on other sites

It's because the UI doesn't support more than two hardpoints at the moment. The older aircraft equip screen did, but the new one has had two hardpoints removed from the screen. Thus, when the game looks for the UI support for four hardpoints and doesn't find it, it freaks out and crashes.

Link to comment
Share on other sites

Removing a functioning UI element for balance reasons is overkill. If it's a balance issue then just restrict access...but in a game with so much access for the community to build mods and make changes it's damned inconsiderate to remove it entirely.

Link to comment
Share on other sites

Hello Lorebot,

I doubt the 4 hardpoints is removed in the UI, because it is the maximum. Those in 19.5 aircraft.xml file that was changed. If you could look for old thread, someone figured out several tricks with hard points. I do not know if those tricks are still viable or not.

Regardless of tricks, there are three entries in xml involved with certain hardpoints.

one is for what kind of hardpoint,

one for where the hardpoint is located

one for "default" installed hardpoint.

R

edited: condor has 3 hardpoint. evident that is not UI change.

Edited by rynait
proof
Link to comment
Share on other sites

Gizmo, for the record if you change aircrafts.xml to give the Foxtrot 4 Heavy hardpoints the slots do indeed appear on the loadout screen where they're supposed to be. The screen coordinates for the slots are still there in the table, they've just been disabled by lowering the hardpoints to 2 instead of 4.

The problem is that they reappear blank and if you click on them the game crashes.

I'm not sure why it crashes, but something somewhere was changed that's making it behave this way and I'd love to know what and find out if I can undo it or not :(

Link to comment
Share on other sites

Hello,

figured out why modded foxtrots (changing to 4 hardpoints) was not working (in 19.5).

well changing the aircraft.xml did work (change the two stat, the amount of hardpoint allowed, and what is default load ie av.avalanche)

the clue:

the "already" built foxtrots will have difficulties (crash/no selection) with added 2 hardpoints. you must build new foxtrots and it will handle 4 hardpoints with no problems.

R

Link to comment
Share on other sites

In general any changes to existing items in the xml should be considered to be incompatible with current games.

There are some changes that will play nicely but anything beyond a basic value change (like increasing weapon damage) is very likely to kill your current game.

Link to comment
Share on other sites

Hello, folks.

I'm curious about creating or editing a few of the values in the aircraft.xml file, and I was hoping someone here could help.

There are three lines of consequence: Weapon Positions, Loadout, and Slot Positions.

Weapon Positions seems a little convoluted; it looks like a 90 degree leftward rotation of the x-y plot of the airplane's hardpoints (including cannon/s) on its image in-game, starting from a nose-down position (for all purposes of this post, we will assume the image is in this nose-down configuration because without this rotation, we have values in Y,X form, and no one likes that). This puts the origin at the bottom left corner, the nose of the plane in the general center at approximately 33 X units, and the maximum X,Y somewhere greater than 48,44. More likely, Xmax is 66ish units and if Xmax's edge forms the short edge of an approximately 30-60-90 triangle we would have Ymax at around 114 (I did this in a hurry without opening the game or files for visual clues and only looked at the Foxtrot entry for mathematical pointers, if there are errors feel free to point them out). Remember, the nose is pointing down.

Loadout is much more self-explanatory. It seems to be the default weapon loadout, assuming you acquire the aircraft without any weapon upgrades. This section is also a little confusing, however, because it's not in the same order as the hardpoints I just described. In every case I remember, missiles/torpedoes always list before cannons regardless of the order in Weapon Positions.

Finally, Slot Positions. This one has me totally stumped. At first it looked like a list of degrees, perhaps firing arcs, but there's the occasional entry greater than 360 (see the 440 on the Foxtrot). There are, in every case, two entries for every hardpoint delineated by semicolons, suggesting to me that these are not coordinates, but information in and of themselves. What information I can't figure out. I'm hoping someone else has cracked this one.

Sorry to resurrect a relatively old post as a new user. Thanks for any information you may have.

Edit: Huh, seems like I was way off. Thanks Rynait (below)

Edited by anesah
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...