

                     HEX CODES FOR SWOTL .EXP/.SPC FILES

DEBUG ADDRESS         DESCRIPTION/FUNCTION
~~~~~~~~~~~~~         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0100 to 010B -------  Name of aircraft
01C0   -------------  A/C ID #: 01=Bf-109G-6, 02=Bf-109G-10, 03=FW-190A-5,
                        04=FW-190A-8, 05=Me-262, 06=Me-163, 07=Go-229,
                        08=P-47C, 09=P-47D, 0A=P-51B, 0B=P-51D, 0C=B-17F,
                        0D=B-17G, 0E=P-38H, 0F=P-38J, 10=P-80, 11=He-162,
                        12=D0-335
01D0  --------------  IFF Byte: 00=USA, 01=GER
0110  --------------  Point value of plane when shot down.
0111  --------------  Controls autopilot: 01=None, 02=Autopilot
0112  --------------  Number of engines. ties to 0113
0113  --------------  Engine type/sound 00=Props, 01=Jet, 02=Rocket
0114  --------------  Controls prop graphics. Any # but 04 prevents prop
                        graphics. Overrides 01C6.
0115 & 0116 --------  Nothing ??
0117 & 0118 --------  Controls Temp gauge. Fighters have a value of C0, B-17
                        has value of A0. Lower values favor 100% operation.
0119  --------------  Controls engine's manifold pressure. Higher values
                        favor 100% operation.
011A to 011B -------  # of crew members/ parachutes from downed plane.
011C to 011D -------  Plane's 'Empty Weight Factor'.
011E to 011F -------  Point after which extra weight affects flight
                        performance.
0120 ---------------  Landing gear: 00=Gear down & fixed. 01=Retractable
                        02=No Landing gear, dollies on takeoff.
0121 ---------------  Dive brakes. 00=No dive brakes, 01=Dive brakes present
                        Only applicable after P-80 expansion disk.
0122 ---------------  01=Dive brakes controlled by 'B' key.
0123 ---------------  01=Autopilot control. ties to 0112
0124 & 0125 --------  Amount of damage taken before plane's engine explodes.
0126 & 0127 --------  Amount of damage taken before plane's engine burns.
0128 & 0129 --------  Amount of damage taken before plane's engine smokes.
012A & 012B --------  Max speed of plane as indicated by gauge.
012C & 012D --------  Drag quotient.
012E & 012F --------  Cruise speed.
0130 & 0131 --------  ?Stall speed? OR Safe LandingSpeed/ground speed?
0132 & 0133 --------  Max safe speed with landing gear extended.
0134 & 0135 --------  Max safe speed with flaps fully down.
0136 & 0137 --------  Max safe speed with flaps partially down.
0138 to 013F -------  2 sets of 4 bytes that control max altitude.
0140 & 0141 --------  Rate of dive.
0142 & 0143 --------    ? ? ? ? ? ? ? ? ? ? ?
0144 & 0145 --------    ? ? ? ? ? ? ? ? ? ? ?
0146 & 0147 --------  Acceleration rate.
0148 & 0149 --------  Rate of climb.
014A & 014B --------    ? Stall Speed?
014C & 014D --------    ? ? ? ? ? ? ? ? ? ? ?
014E & 014F --------  Speed loss in steep climb.
0150 to 0155 -------    ? ? ? ? ? ? ? ? ? ? ?
0156 to 015F -------    ? ? ? Nothing ? ? ? ?
0160 to 0195 -------  Speed at each throttle setting.
0196 & 0197 --------    ? ? ? ? ? ? ? ? ? ? ?
0198 & 0199 --------  Turn rate
019A & 019B --------    ? ? ? ? ? ? ? ? ? ? ?
019C & 019D --------  Rate of altitude loss when banking.
019E & 019F --------  Rate of roll.
01A0 & 01A1 --------  Pitch rate.
01A2 & 01A3 --------  Nose weight. Lower values cause the plane to nose
                        down when flying inverted.
01A4 & 01A5 --------    ? ? ? ? ? ? ? ? ? ? ?
01A6 & 01A7 --------  Number of fuel tanks.
01A8 to 01AF -------  Fuel tank capacity.
01B0 to 01B7 -------  Armor for fuel tanks.
01B8 to 01BF -------  Cockpit graphics.
01C0 to 01C5 -------    ? ? ? ? ? ? ? ? ? ? ?
01C6 to 01CB -------  Engine fire graphics for single engine prop jobs.
01C6 to 01CE -------  Spinning prop graphics for 4 engine planes.
01CF  --------------    ? ? ? 22 for B-17 ? ?
01D0 to 01D7 -------  Engine fire graphics for wing mounted engines.
01D8 to 01DD -------    ? ? ? ? ? ? ? ? ? ? ?
01DE ---------------  01=Enables external weapons
01DF to 01E1 -------  Marks offset at which external weapons strings begin
                        for Center, Left, and Right racks. 01 begins at
                        01F8, 02=0208, 03=0218, etc.
01E2 to 01E6 -------  # of options for Main guns, secondary guns, Center,
                        left, and right weapons rack.
01E7 ---------------    ? ? ? Nothing ? ? ? ?
01E8 to 01F7 -------  Primary armament string
01F8 to 02A7 -------  Optional weapons strings. Ties to 01DF to 01E1
02A8 ---------------  # of turrets on plane.  {{{*Keep this at 08*}}}
02A9 to 02B2 -------  Keypad commands for each turret. 02A9 controls the
                        '0' key, 02AA='1', 02AB='2', 02AC='3', 02AD='4',
                        02AE='5', 02AF='6', 02B0='7', 02B1='8', 02B2='9',
                        A value of FF locks out the key. A value of 00
                        opens the Chin turret, 01=L.Chk, 02=L.Wst, 03=Tail,
                        04=R.Wst, 05=R.Chk, 06=Top turret, 07=Belly gunner.
02B4 to 02C9 -------  Gun codes for Chin turret.
02CA to 02DF -------  Gun codes for Left Cheek gunner.
02E0 to 02F5 -------  Gun codes for Left Waist gunner.
02F6 to 030B -------  Gun codes for Tail turret.
030C to 0321 -------  Gun codes for Right Waist gunner.
0322 to 0337 -------  Gun codes for Right Cheek gunner.
0338 to 034D -------  Gun codes for Top Turret.
034E to 0363 -------  Gun codes for Belly gunner.
0364 to 036C -------  Turret graphics.
036D ---------------  Activates Bombsight graphics.
036E to 0375 -------  Bombsight graphics.
0377 to 037F -------  Aircraft's external graphics (.PAC file)
0380 ---------------  Control code for .PAC file: 01=Bf109, 02=FW190,
                        03=Me262, 04=Me163, 05=Go229, 06=P-47, 07=P-51B,
                        08=P-51D, 09=B-17, 0A=P-38, 0B=P-80, 0C=He-162,
                        0D=D0-335
0381 to 0385 -------    ? ? ? ? ? ? ? ? ? ? ?
0386 to 038F -------  Camoflauge patterns for .PAC files
0390 & 0391 --------  Color codes for .PAC files. Not all work with some A/C.

B17 GUN CODES
~~~~~~~~~~~~~~~
OFFS.  POS.  1      2     3    4     5     6        7     8     9    10    11
~~~~~  ~~~~ ~~    ~~~~~ ~~~~~ ~~    ~~    ~~       ~~    ~~    ~~    ~~    ~~
02B4- Chin  01 00 6D-01 60-09 01 00 02 00 32 00 00 00 00 40 00 34 00 20 00 60
02CA- LChk  00 00 62-02 60-09 01 00 02 00 4B 00 00 E0 00 40 00 20 00 20 00 60
02E0- LWst  00 00 58-02 60-09 01 00 02 00 28 00 00 C0 00 40 00 2B 00 20 00 60
02F6- Tail  01 00 F4-01 60-09 01 00 02 00 64 00 00 80 00 40 00 34 00 20 00 60
030C- RWst  00 00 58-02 60-09 01 00 02 00 28 00 00 40 00 40 00 2B 00 20 00 60
0322- RChk  00 00 62-02 60-09 01 00 02 00 4B 00 00 20 00 40 00 20 00 20 00 60
0338- Top   01 00 77-01 60-09 01 00 02 00 4B 00 00 80 00 3C 00 00 00 04 00 3F
034E- Ball  01 00 F4-01 60-09 01 00 02 00 4B 00 00 80 00 44 00 00 00 41 00 7E

 1=Tracer Graphics: 00=Single gun, 01=Twin guns
 2=Ammo amount
 3=Muzzle velocity/range
 4=Kill power
 5=Rounds fired per trigger pull
 6=Turret's damage limit
 7=Weapon facing: 00=Forward, 20=R.Front, 40=R.Side, 60=R.Rear, 80=Rear,
                  A0=L.Rear, C0=L.Side, E0=L.Front
 8=Starting gun elevation: 00= +90, 20= +45, 40= Level, 60= -45, 80= -90
 9=Weapon traverse: 00= Full 360 degree rotation
10=Max turret elevation: 00= +90, 20= +45, 40= Level, 60= -45, 80= -90
11=Max turret depression: 00= +90, 20= +45, 40= Level, 60= -45, 80= -90

KEY FOR STANDARD GERMAN & AMERICAN WEAPON CODES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1=Weapon type: 01=Gun/cannon, 02=Bomb, 03=Rocket, 04=Drop tank, 05=Jagdfaust
 2=Specific weapon from BGERMSTR.PAC (GER) or BAMERSTR.PAC (USA)
 3=Tracer Graphics: 00=Single, 01=Narrow, 02=Wide, 82=Rocket
 4=Not used
 5-6=Ammo amount
 7-8=Range for guns/cannons or detonation delay for bombs
 9-10=Kill power for guns/bombs
 11-12=Number of rounds fired per trigger pull
 13-14=Drag of externally mounted weapon
 14-15=Weight of weapon


GERMAN WEAPON CODES  ---BGERMSTR.PAC---
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Code    Weapon                 1  2  3  4  5- 6  7- 8  9-10 11-12 13-14 15-16
~~~~~~~~~~~~~~~~~~~~~~~~~~    ~~ ~~ ~~ ~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~
 00  No Attachment            -- -- -- -- -- -- -- -- -- -- -- -- ----- -- --
 01  13mm MG 131 300 rpg      01 01 01 00 2C-01 D1-06 02-00 01-00 00-00 96-00
 02  20mm MG 151 200 rpg      01 02 00 00 C8-00 27-06 04-00 01-00 00-00 96-00
 03  1 x 551 lb. Aerial Bomb  02 03 00 00 01-00 06-00 27-02 01-00 32-00 5E-01
 04  4 x 110 lb. Bombs        02 04 02 00 04-00 30-75 6E-00 01-00 32-00 5E-01
 05  1 x 79 Gal. Drop Tank    04 05 00 00 01-00 A8-0C 00-00 00-00 64-00 2C-01
 06  20mm MG 151 120 rpg      01 06 02 00 78-00 27-06 04-00 02-00 32-00 2C-01
 07  30mm MK 108 60 rpg       01 07 02 00 3C-00 8B-04 08-00 01-00 32-00 5E-01
 08  2 x 21cm Wfr. Rockets    03 08 02 00 02-00 E8-03 64-00 01-00 64-00 2C-01
 09  7.9mm MG 17 900 rpg      01 09 01 00 84-03 B1-06 01-00 02-00 00-00 96-00
 0A  20mm MG FF 55 rpg        01 0A 02 00 37-00 1D-05 04-00 01-00 32-00 2C-01
 0B  13mm MG 131 400 rpg      01 0B 01 00 90-01 60-09 02-00 02-00 00-00 96-00
 0C  20mm MG 151 250 rpg      01 0C 02 00 FA-00 40-06 04-00 02-00 00-00 96-00
 0D  20mm MG 151 125 rpg      01 0D 02 00 7D-00 40-06 04-00 02-00 32-00 2C-01
 0E  30mm MK 103 60 rpg       01 0E 02 00 3C-00 78-05 0A-00 01-00 32-00 5E-01
 0F  2 x 79 Gal. Drop Tanks   04 0F 02 00 02-00 58-14 00-00 00-00 64-00 2C-01
 10  30mm MK 108 100 rpg      01 10 01 00 64-00 8B-04 10-00 01-00 00-00 C8-00
 11  1 x 1102 lb. Bomb        02 11 00 00 01-00 30-75 4E-04 01-00 32-00 5E-01
 12  2 x 551 lb. Bombs        02 12 00 00 02-00 30-75 27-02 01-00 19-00 C8-00
 13  4 x 55mm R4M Rockets     03 13 82 00 02-00 E8-03 64-00 01-00 64-00 2C-01
 14  20mm MG 151 100 rpg      01 14 02 00 64-00 27-06 04-00 01-00 00-00 2C-01
 15  10 x SG 500 Jagdfaust    05 15 00 00 01-00 03-00 64-00 01-00 00-00 2C-01
 16  2 x 2205 lb. Bombs       02 16 00 00 02-00 30-75 9D-08 01-00 32-00 5E-01
 17  30mm MK 108 120 rpg      01 17 01 00 78-00 8B-04 0F-00 01-00 00-00 2C-01
 18  30mm MK 103 120 rpg      01 18 02 00 78-00 78-05 14-00 01-00 00-00 2C-01
 19  2 x 331 Gal. Drop Tanks  04 19 02 00 02-00 C6-1B 00-00 00-00 64-00 2C-01
 1A  30mm MK 103 70 rpg       01 1A 00 00 46-00 78-05 0A-00 01-00 00-00 96-00
 1B  15mm MG 151 200 rpg      01 1B 01 00 C8-00 40-06 04-00 01-00 00-00 96-00
 1C  551 lb. Bombs            02 1C 02 00 04-00 30-75 27-02 01-00 32-00 78-05
 1D  30mm MK 108 50 rpg       01 1D 01 00 32-00 8B-04 10-00 01-00 00-00 90-01
 1E  Oberleutnant, LT.        *****************Rank of Pilot*****************
 1F  Hauptmann, Maj.          *****************Rank of Pilot*****************
 20  Oberst, Gen. Maj         *****************Rank of Pilot*****************


 AMERICAN WEAPON CODES   ---BAMERSTR.PAC---
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Code  Weapon                   1  2  3  4  5- 6  7- 8  9-10 11-12 13-14 15-16
~~~~  ~~~~~~~~~~~~~~~~~~~~~~  ~~ ~~ ~~ ~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~ ~~~~~
 00  No Attachment            -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 01  8 x .50 cal. 425 rpg     01 01 02 00 A9-01 8B-08 08-00 01-00 00-00 96-00
 02  1 x 200 Gal. Drop Tank   04 02 00 00 01-00 48-12 27-02 01-00 64-00 2C-01
 03  2 x 1000 lb. Bombs       02 03 01 00 01-00 30-75 E8-03 01-00 32-00 5E-01
 04  2 x 75 Gal. Drop Tanks   04 04 02 00 01-00 46-20 27-02 01-00 64-00 2C-01
 05  4 x .50 cal. 350 rpg     01 05 02 00 5E-01 8B-08 04-00 01-00 00-00 C8-00
 06  6 x .50 cal. 400 rpg     01 06 02 00 90-01 8B-08 06-00 01-00 00-00 C8-00
 07  8 x 1000 lb. Bombs       02 07 00 00 08-00 30-75 E8-03 01-00 00-00 20-03
 08  6 x 1600 lb. Bombs       02 08 00 00 06-00 30-75 40-06 01-00 00-00 20-03
 09  1 x 2000 lb. Bomb        02 09 00 00 08-00 30-75 D0-07 01-00 32-00 5E-01
 0A  6 x Bazooka Rockets      03 0A 82 00 02-00 00-00 64-00 01-00 32-00 2C-01
 0B  20mm Cannon 150 rpg      01 0B 00 00 96-00 27-06 09-00 01-00 00-00 96-00
 0C  4 x 50 cal. 500 rpg      01 0C 02 00 2C-01 8B-08 02-00 01-00 00-00 96-00
 0D  2 x 2000 lb. Bombs       02 0D 01 00 01-00 30-75 D0-07 01-00 32-00 58-02
 0E  2 x 165 Gal. Drop Tanks  04 0E 02 00 01-00 92-22 27-02 01-00 64-00 2C-01
 0F  6 x .50 cal. 300 rpg     01 0F 02 00 2C-01 8B-08 06-00 01-00 00-00 C8-00
 10  2nd Lt., 1st Lt.         *****************Rank of Pilot*****************
 11  Captain, Major           *****************Rank of Pilot*****************
 12  Lt. Col., Colonel        *****************Rank of Pilot*****************
 13  Brig. General            *****************Rank of Pilot*****************


 NOTES:
   External Gun pods usually have a Drag value of 19-00 for MGs, 32-00 for
     cannons.

   When grafting turrets onto planes, you should also do the following:
     1.  Insert "B17PROP" at offset 01C6 to 01CF
     2.  Insert "B17GGUN" at offset 0364
     3.  Insert hex value 22 at 01CF
     4.  Create a seperate .INT file for this plane in the SWOTL/CP directory
     5.  Insert "B17GGUNP" at offset 0869 in the plane's .INT file
     6.  Insert hex values 4B DA 32 at offest 087B in the plane's .INT file

   For wing mounted bombs or drop tanks, set the tracer graphics byte in
     the external weapons codes to 01 for 1 bomb/tank on each rack, or 02
     for 2 bombs/tanks on each rack. Using a value of 00 will not permit
     proper use of wing mounted bombs or tanks.

   When importing .PAC graphics files from Battle of Britain, they should
     be given their own control code at DEBUG 0380 different from the rest
     of the other .PAC files. For example, 0E could be assigned to all
     planes using the Spitfire PAC file, 0F for those using the Hurricane,
     10 for the Bf-110, 11 for the JU-87, 12 for JU-88, 13 for Do-17, and
     14 for the He-111.
