Key to PT files

Tip From Michal TACAN.

 


As promised i will show you, how i create new planes. The best way is to show you an example. Lets say, we want to create a new russian fighter, the Suchoi Su-30MK. This plane is used as Su-30MKI in India and i believe in Indonesia. The first step is to get information about this plane. Then we must find a plane in USNF that has similar flight capabilities like the Su-30MK. In this case it is easy, because the Su-30 is an improved Su-27UB. That means, that we can use the Su-27.pt file. This file we can modify in the Norton Comander, EDIT DOS Editor or Notepad Windows Editor. Below you can find the modified Su-27.pt file. What i had changed you will see if you will scroll down.

Letters or numbers in red you can change without problems.
In
green they are possible, but not necessary to change. 
All things in ( ) are remarks.

All remarks to blue numbers i got from AnArcHist. With this data you can change now the agility of the plane. Thanks a lot AnArcHist!


 

[brent's_relocatable_format]

;---------------- START OF OBJ_TYPE ----------------


;---------------- general info ----------------

        byte 5
        word 613
        word 636
        ptr ot_names
        dword $6bf3          ($6bf3: plane is flyable) ($2bf3: plane is not flyable) 
        word $ffff8000       (8000 - fighter, 4000 - Bomber, 2000 - Heli)
        ptr shape
        ptr shadowShape
        word 226
        word 0
        word 110
        word 110
        word 100
        word 100
        word 100
        word 135              (own Damagepoints)
        word 255              (what Damagepoint cause the plane on planes)
        word 255              (on ships)
        word 255              (on surface)
        word 255              (on panzer) 
        word 255              (on rest)
        byte 24
        byte 0
        dword 39000           (empty weight of the plane in lbs)
        word 199

;---------------- movement info ----------------

	word 0                  	(Turn rate)
	word 16380              	(Bank Rate (here 90')
	word 14560              	(Maximum Climb (here 80')
	word -14560             	(Maximum Dive (here -80')
	word 16380             		(Maximum Bank (here 90')
	word 0                  	(Minimum Speed)
	word 0                  	(Corner Speed)
	word 0                  	(Maximum Speed)
	dword ^0               	 	(Acceleration)
	dword ^0                	(Deceleration)
	dword ^300              	(Minimum Altitude in ft)
	dword ^61000            	(Maximum Altitude in ft)
	symbol _PLANEProc	; utilProc

;---------------- sound info ----------------

        ptr loopSound
        ptr secondSound
        ptr engineOnSound
        ptr engineOffSound
        byte 1
        word 15000
        word 320
        word 160
        word 20
        word 1600
        word 0
        word 10
        word 60



;---------------- END OF OBJ_TYPE ----------------


;---------------- START OF NPC_TYPE ----------------

        ptr ctName
        byte 20
        byte 32
        byte 20
        byte 0
        byte 9            (quantity of hardpoints)
        ptr hards

;---------------- END OF NPC_TYPE ----------------


;---------------- START OF PLANE_TYPE ----------------

        dword $15        ($11 single seater land plan, $15 double seater
                          land plane, $53 double seater carrier plan,
                          $57 double seater carrier plane, $71 single
                          seater VTOL plane)
        ptr env
        word -4           (quantity of neg envelops)
        word 9            (quantity of pos envelops)  
        word 1223
        word 1940
        word -73
        word 0
        word 73
        word 73
        word -146
        word 146
        word 7
        word 7
        word -146
        word 146
        word 73
        word 73
        word -225
        word 225
        word 286
        word 571
        word 0
        word 0
        word 9
        word 9
        word -45
        word 45
        word 90
        word 90
        word 15		  (AoA G pull -- Angle of Attack limit when plane exeeds 9 G's)
        word 70		  (Low AoA speed -- Speed AoA limit when plane exeeds 9 G's)
        word 60		  (Low AoA Pitch -- Pitch AoA limit when plane exeeds 9 G's)
        word 117
        word -2		  (Rudder Min Yaw -- Yaw minimum limit)
        word 2		  (Rudder Max Yaw -- Yaw maximum limit)
        word 2		  (Rudder Yaw Acc -- Degrees yaw/sec when rudder is fully deflected)
        word 6		  (Rudder Yaw Dacc -- Degrees yaw/sec when rudder returns to neutral)
        word 10		  (Rudder Slip -- Degrees/sec when rudder is fully deflected)
        word 128	  (Rudder Drag -- increased drag when rudder is fully deflected)
        word 5		  (Rudder Bank -- Roll degrees/sec when rudder is fully deflected)
        word -90
        word 90
        word 286
        word 571
        word -90
        word 90
        word 286
        word 571
        word -90
        word 90
        word 286
        word 571	
        word 512	  (Stall Warning delay -- number of clocks (1 clock =1/256 sec) before stall sound)
        word 768	  (Stall Delay -- Duration of Stall)
        word 128	  (Stall Severity)
        word 30		  (Stall Pitch down -- Degrees/sec)
        word 0		  (Spin Entry -- How easily plane can enter a spin)
        word -1		  (Spin Exit -- how fast can plane recover from a spin)
        word 120	  (Spin yaw low)
        word 180	  (Spin yaw high)
        word 30		  (Spin AoA low)
        word 70		  (Spin AoA high)
        word 15		  (Spin bank low)
        word 5		  (Spin bank high)
        word 0
        word 330	  (Crash forward speed -- Max safe landing speed)
        word 51		  (Crash side speed -- Max landing side speed)
        word 95		  (Crash Vertical Speed -- Max rate of descent)
        word 25		  (Crash Pitch -- max pitch when landing)
        word 10		  (Crash Roll -- max landing roll)
        byte 2            (quantity of powerplants)
        word 0
        dword 45755       (mil thrust of powerplans in lbs)
        dword 69510       (afterburner thrust in lbs)
        word 30		  (Throttle acceleration -- percent/sec throttle moves up)
        word 60		  (Throttle deceleration -- percent/sec throttle moves down)
	word 0		  (Min Vectoring, -60 = 60' vecoring) 
				(for Helis)
	word 0		  (Max Vectoring, -120 = 120' vectoring) 
				(for VTOLs & Helis)
        word 0		  (Vectored thrust speed)
        word 8            (consumption of fuel normal flight)
        word 30           (consumption of fuel afterburner)
        dword 24000       (fuel capacity in lbs)
        word 256	  (Drag -- bigger number meas more aerodym. drag)
        word 23		  (G-pull drag -- drag increase due to G-pull)
        word 256
        word 102
        word 115
	word 153          (landing gear; 153=retractable wheels,
                           0=non-retractable wheels, use only on helis)
        word 0
        word 38
        word 50		  (Loaded drag -- increase drag in % when fully loaded
        word 10		  (Loaded G-pull drag)
        word 30		  (Loaded elevator -- extra load on the elevator when fully loaded)
        word 30		  (Loaded Aileron)
        word 30		  (Loaded Rudder)
        word 2560
        word 5120
        byte 20
        byte 22
        byte 20
        byte 148
        byte 22
        byte 20
        byte 20
        byte 20
        byte 20
        byte 148
        byte 148
        byte 148
        byte 20
        byte 20
        byte 20
        byte 148
        byte 20
        byte 22
        byte 20
        byte 20
        byte 20
        byte 22
        byte 22
        byte 20
        byte 20
        byte 20
        byte 148
        byte 22
        byte 36
        byte 148
        byte 36
        byte 0
        byte 0
        byte 0
        byte 22
        byte 150
        byte 20
        byte 22
        byte 22
        byte 22
        byte 6
        byte 6
        byte 6
        byte 6
        byte 6
        word 10
        word 10
        dword 75000        (max takeoff weight in lbs)
:hards
;-------- hardpoint 0      ( see below)
        word $8
        word 0
        word 0
        word 0
        word 0
        word 0
        word 0
        word 0
        ptr defaultTypeName0
        byte 0
        word 1
        byte 1
;-------- hardpoint 1       (see below)
        word $8
        word 0
        word 0
        word 0
        word 0
        word 0
        word 0
        word 0
        ptr defaultTypeName1
        byte 0
        word 1
        byte 1
;-------- hardpoint 2        (see below)
        word $8
        word 0
        word 0
        word 0
        word 0
        word 0
        word 0
        word 0
        ptr defaultTypeName2
        byte 0
        word 1
        byte 1
;-------- hardpoint 3        (see below)
        word $8
        word 0
        word 0
        word -50
        word 0
        word 0
        word 0
        word 0
        ptr defaultTypeName3
        byte 0
        word 1
        byte 1
;-------- hardpoint 4         
        word $8               
        word 10               
        word 5                
        word 60               
        word 0                
        word 0                
        word 0                
        word 0               
        ptr defaultTypeName4   
        byte 0                

        word 250               
        byte 2                 

;-------- hardpoint 5		(number of the hardpoint)
        word $3e5               (what the hardpoint is able to load)
                                ($3e5 - all weapons)
                                ($2c5 - all weapons without radar guidance)
                                ($45  - only IR-missiles)
                                ($301 - IR-Sensorpod, Jammer, Tanks, Laser,
                                        weapons with semiactive guidance)
                                ($408 - Auto-Slewing Gun)
                                ($8   - Required load, can't be changed)   
        word 0                  (Left/Right offset from centre of aircraft in ft)                 
        word -10                (Up/Down offset)   
        word 0                  (Front/Back offset)
        word 0                  (Slew Heading (Default Heading L/R in degrees)
        word 0                  (Slew Pitch (Default Pitch U/D in degrees)
        word 0                  (Slew Limit Heading (Maxium L/R Tracking)
        word 0                  (Slew Limit Pitch (Maximum U/D Tracking)
        ptr defaultTypeName5    (pointer for the weapon)
        byte 232                (max weight for the weapon on this hardpoint in 100 lbs, 
                                0 means no limit)
        word 2                  (quantity of weapons, here rounds) 
        byte 0                  (0 - Centerline, 1 - fuselage, 2 - internal
                                gun, 3 - internal weapon bay, 4 - wing,
                                5 - wingtips) 
;-------- hardpoint 6           (You can change all hardpoints like hardpoint 4)
        word $3e5
        word 10
        word -10
        word 0
        word 0
        word 0
        word 0
        word 0
        ptr defaultTypeName6
        byte 232
        word 2
        byte 1
;-------- hardpoint 7
        word $3e5
        word 40
        word -10
        word 0
        word 0
        word 0
        word 0
        word 0
        ptr defaultTypeName7
        byte 208
        word 4
        byte 4
;-------- hardpoint 8
        word $3e5
        word 60
        word -10
        word 0
        word 0
        word 0
        word 0
        word 0
        ptr defaultTypeName8
        byte 232
        word 2
        byte 4
:env

;--- envelope for G = -4       (envelops)
        .
        .
        .
        .

;---------------- END OF PLANE_TYPE ----------------

:ot_names
        string "Su-30MK"           (name of the plane showed with STRG+T)
        string "Su-30MK Flanker"   (name shows in mission builder)
        string "SU30.PT"           (name of the file)
:shape
        string "su27.SH"           (name of the shape)
:shadowShape
        string "su27_s.SH"         (name of the shadow shape)
:loopSound
        string "&JET1N.11K"        (sound) 
:secondSound
        string "&JET1A.11K"
:engineOnSound
        string "&powerup.5k"
:engineOffSound
        string "&powerdn.5k"
:ctName
        string "f.BI"               
:defaultTypeName0                   (shows what is loaded on hardpoint 0)
        string "VIS340.SEE"         (visual,available in 340,300,240 degree)
:defaultTypeName1
        string "SU27R.SEE"          (radartype)
:defaultTypeName2
        string "SU27I.SEE"          (IR-seekertype)
:defaultTypeName3
        string "SU27.ECM"           (ECM-Type)
:defaultTypeName4
        string "GSH301.JT"          (type of internal gun)
:defaultTypeName5
        string "AA9.JT"             (type of weapon loaded on centerline)
:defaultTypeName6
        string "CHA31.JT"           (type of weapon loaded on fuselage)
:defaultTypeName7
        string "AA12.JT"            (type of weapon loaded on wings) 
:defaultTypeName8
        string "AA11.JT"            (type of weapon loaded on wingtips)
        end

The defaultTypeName are connected with the hardpoints. It is possible, that the weapons are to heavy for the hardpoint. Then you will find only less weapons, than you expected. Increase the weightcapacity of the hardpoint and the problem should be solved.

After all changes save the file under its new name and test it. With a little big luck it will happen. But dont worry if the computer crashs, it happen relativly often. Mostly it is a conflict with the weapons. There you can only guess.

Now a word to the shapes. You can use all shapes, which are included in USNF/MF. Funny is it to let a ship or a house flying, but completly sensless. If you want shapes of planes, which are not in USNF, ask a friend who owned ATF and the ATF-Toolkit. From there you can get shapes, but not all shapes of ATF working with USNF. USNF97, ATF-Gold and ATF/Nato shapes will surely not working with USNF.

I hope, it will help you to create your own new planes.