ADD A NEW WEAPON TO THE ADMIN.INI OF USAF

A page inspired by McFly's "ADD A PLANE" tutorial

To add a new missile/bomb/fuel tank or whatever to USAF, you will need a few resources:

1) Obtain/create the weapons 3D file in .P3D format along with a matching skin.

2) Create a new weapon icon for the Loadout screen.

Eventually, you must use the Designers Mission Editor (DME) program. As it is a sub-program of the User Mission Editor (UME), you must have installed the UME when you installed the USAF game. McFly has instructions on how to make a shortcut to the DME.

Are you sitting comfortably? Then we'll begin...

Using the GBU-28 as an example:

Preparation) In the ..\USAF\Resource\Menu\Bmp\Loadout\Weapons\ folder, create a new weapon icon and name it "LoadoutGBU-28.bmp" Browse through this folder, and using your favorite graphics editing program, you can copy and edit one of the existing ones to make your new one. These must be 58 x 30 pixels at either 256 or 16M color depth.

Preparation) In the..\USAF\Resource\3DObjects\Weapons\ folder, create a new weapon folder, call it "GBU28". Put the gbu28.P3D file and the gbu-28.bmp skin file in this new folder.

Open the DME program, and on the the left side panel, click on the TABLES tab. You will likely be prompted to "Save changes to Admin.ini?" Click NO. You will likely be immediately prompted again to "Browse/Open Mission file". Click CANCEL.

Now, in the left panel you will see an alphabetical list of tables and a button labelled "Save Admin and Mission files" I DO NOT reccommend clicking this button at any time. Whenever I did, the DME always created a corrupted copy of my last UME mission file from my ..\missions\UME\ folder and dumped it into my ..\missions\ folder. I have no explanation for this at all. To save my changes, I simply close the DME. More on this later.

1) In the left panel of the TABLES tab, scroll down and click on "NameEnum". It is here that you must add names to the lists presented in dropdown menus later on. In the right panel you will be presented with a long list which can be sorted alphabetically/numerically by clicking on the bars at the top of each column. Sort the "Name" column if it's not already, then scroll down this list until you find "GBU27". A single click will highlight this line, and a double click will open the "Automatic Record Editor"

We are going to use a "copy and use as a template" kind of approach for many of the neccesary steps.

Single click to highlight the "GBU27" line. Look near the top left of the DME, you will see some buttons on a menu bar, one of which is labelled "Duplicate" when you hover your mouse pointer over it. The "Duplicate" button is about the only one I ever use. With "GBU27" line highlighted, click duplicate. The list will refresh, so scroll down and you should now have 2 lines for GBU27. Double click on one of them to open the "Automatic Record Editor" and change the Name value to "GBU-28" and the ShortName value to "GBU28". Mind the hyphens. The checkmark on "IsWeapon" should remain. Click OK, and the list will refresh again. Sort by Name if neccesary and scoll down to confirm your new entries are there. Done in the NameEnum table.

2) In the left panel of the TABLES tab, scroll down and click on "GraphicRep". Sort and scroll down this list until you find "GBU-27", highlight and duplicate it. Again, double click on one of the duplicates to open the "Automatic Record Editor" and change values to:

Name: GBU-28
2DFileName: \Bmp\Loadout\Weapons\LoadoutGbu-28.bmp
3DFileName: Weapons\gbu28\gbu28.p3d
Description: [none]
SizeFactor: 3.0

Leave the checkmarks unchanged. Click OK, and the list will refresh again. Sort by Name if neccesary and scoll down to confirm your new entries are there. Done in the GraphicsRep table.

3) In the left panel of the TABLES tab, scroll down and click on "WeaponExt". Sort and scroll down this list until you find "GBU-27", highlight and duplicate it. Again, double click on one of the duplicates to open the "Automatic Record Editor" This is where the dropdown menus start to come into play. Since my fingers are getting tired, here's a screenshot of what to change the values to:

Click OK, and the list will refresh again. Sort by Name if neccesary and scoll down to confirm your new entries are there. Done in the WeaponExt table.

4) In the left panel of the TABLES tab, scroll down and click on "WeaponConfiguration". This table defines what weapons will be available to load on an aircraft from the games loadout screens. Sort this list by "CarrierPtr" and scroll down a bit, you should see all the F-15E's available weapons neatly grouped together. Find "GBU27_for_F-15E", highlight and duplicate it. Again, double click on one of the duplicates to open the "Automatic Record Editor" Change Name to "GBU28_for_F-15E", in the "WeaponPtr" dropdown box select "GBU28". For the weapons stations S2, S5 and S8, enter 1. For all other weapon stations enter 0 as the GBU-28 cannot be carried on any of them. Click OK, and the list will refresh again. Sort by CarrierPtr if neccesary and scoll down to confirm your new entries are there. Done in the WeaponConfiguration table.

5) Copy step 4 to equip the F-111F

Almost done. At this point DO NOT touch that button labelled "Save Admin and Mission files" mentioned earlier. Instead, close the DME as you any other Windows program, you will be prompted "Save changes to Admin.ini?" Click YES. Next you will likely be prompted "Do you want to compile Admin.ini?" Always click No to this one, but no harm done if you accidentally click yes.

That should do it. Start USAF and play any training mission with an F-15E to check out the new GBU-28 LGB.