Decaff's Garage

Personal work in progress topics go here
User avatar
decaff_42
Staff
Staff
Posts: 3557
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 622 times
Been thanked: 1351 times
Contact:

Re: Decaff's Garage

Post by decaff_42 » Mon Sep 14, 2015 1:06 am

Patrick31337 wrote:I would say you have a ZL line in your .srf.

EDIT: I zoomed in. Yes, you have ZL lines in your .srf. "ZL x1 x2 x3" (where x1, x2, etc. stand for face numbers of a polygon) are what is used to make lights shine in YSF.

EDIT2: As opposed to ZA lines used for transparency.
This is my error! I went back an noticed that I had selected ZL in the YS FACE blender script.

Another error I am running into is with the AIM-9M missiles. When I load them in the preview screen, I see the missiles, When I launch my flight, the missiles are not there, and when I fire them, the missiles are suddenly there. I have verified the paths and folders and syntax, but for some reason the static weapons are not showing. I am using the DAT-specified weapon skins that I sucessfully used with my Tu-95, tu-22m3, and tu-16/H-6 packs, but for some reason it is not loading.


Here is the DAT File in whole:

Code: Select all

REM F-20_TIGERSHARK
IDENTIFY "[Decaff_42]_F-20C_A2G+A2A-01"
CATEGORY FIGHTER
AFTBURNR TRUE                 #HAVE AFTERBURNER?
THRAFTBN  8.5t                #THRUST WITH AFTERBURNER
THRMILIT  5.3t                #THRUST AT MILITARY POWER
WEIGHCLN  11200lb                #WEIGHT CLEAN
WEIGFUEL  5050lb                #WEIGHT OF FUEL
WEIGLOAD  2400lb                #WEIGHT OF PAYLOAD
FUELABRN  3.0kg                #FUEL CONSUMPTION WHEN USING AFTERBURNER
FUELMILI  0.45kg               #FUEL CONSUMPTION AT MILITARY POWER

COCKPITP  0.00m  0.890m  2.75m  #COCKPIT POSITION

LEFTGEAR  1.961m -1.648m -1.269m  #LEFT LANDING GEAR POSITION
RIGHGEAR  1.961m -1.648m -1.269m  #RIGHT LANDING GEAR POSITION
WHELGEAR  0.00m -1.614m  4.345m  #WHEEL POSITION

MACHNGUN  -0.235m  0.300m  6.456m  #MACHINE GUN POSITION
MACHNGN2  0.235m  0.300m  6.456m  #MACHINE GUN POSITION

SMOKEGEN  0.00m -1.00m -10.55m  #SMOKE GENERATOR POSITION

VAPORPO0  4.45m -0.3m -2.82m  #VAPOR POSITION (Wings Swept Back or no-VGW)
VAPORPO1  4.45m -0.3m -2.82m  #VAPOR POSITION (Wings Spread)

HTRADIUS  7.0m                #OUTSIDE SPHERE RADIUS

TRIGGER1 GUN
TRIGGER2 AAM
TRIGGER4 SMK

STRENGTH 8

CRITAOAP  20deg               #CRITICAL AOA POSITIVE
CRITAOAM -15deg               #CRITICAL AOA NEGATIVE

CRITSPED 0.9MACH              #CRITICAL SPEED
MAXSPEED 2.0MACH              #MAXIMUM SPEED

HASSPOIL TRUE                 #HAS SPOILER?
RETRGEAR TRUE                 #HAS RETRACTABLE LANDING GEAR?
VARGEOMW FALSE                #HAS VARIABLE GEOMETRY WING?
VGWSPED1 120kt
VGWSPED2 200kt

CLVARGEO 0.0                  #EFFECT OF VARIABLE GEOMETRY WING FOR Cl
CDVARGEO 0.0                  #EFFECT OF VARIABLE GEOMETRY WING FOR Cd
CLBYFLAP 0.4                  #EFFECT OF FLAP FOR Cl
CDBYFLAP 0.2                  #EFFECT OF FLAP FOR Cd
CDBYGEAR 0.5                  #EFFECT OF GEAR FOR Cd
CDSPOILR 0.8                  #EFFECT OF SPOILER FOR Cd

WINGAREA 17.3m^2                #WING AREA

MXIPTAOA 23.0deg              #MAX INPUT AOA
MXIPTSSA 5.0deg               #MAX INPUT SSA
MXIPTROL 360.0deg             #MAX INPUT ROLL

REM CPITMANE corresponds to Spring Constant K
REM CPITSTAB corresponds to Damper Constant B
REM To be critically damped, B=2*sqrt(K)
REM 2% Settling Time=??

MANESPD1 45kt                #MINIMUM MANEUVABLE SPEED
MANESPD2 90kt                #FULLY MANEUVABLE SPEED
CPITMANE 8.0                  #PITCH MANEUVERBILITY CONSTANT
CPITSTAB 1.6                  #PITCH STABILITY CONSTANT
CYAWMANE 5.0                  #YAW MANEUVABILITY CONSTANT
CYAWSTAB 3.0                  #YAW STABILITY CONSTANT
CROLLMAN 3.4                  #ROLL MANEUVABILITY CONSTANT

CTLLDGEA TRUE                 #CONTROL LANDINGGEAR
CTLBRAKE FALSE                #CONTROL BRAKE
CTLSPOIL 0.0                  #CONTROL SPOILER
CTLABRNR FALSE                #CONTROL AFTERBURNER
CTLTHROT 0.0                  #CONTROL THRUST
CTLIFLAP 0.0                  #CONTROL FLAP
CTLINVGW 0.0                  #CONTROL VARIABLE GEOMETRY WING
CTLATVGW FALSE                #CONTROL AUTO VARIABLE GEOMETRY WING

POSITION 0m 3ft 0m           #POSITION
ATTITUDE 45deg 0deg 0deg      #ATTITUDE
INITFUEL 75%                  #INITIAL FUEL
INITLOAD 0.0t                 #INITIAL PAYLOAD
INITSPED 0.0MACH              #INITIAL SPEED

INITIGUN 560                 #INITIAL GUN






REM Define Weapons
WPNSHAPE AIM9 STATIC user/decaff_42/weapons/F-20_Tank.srf
WPNSHAPE AIM9 FLYING user/decaff_42/weapons/aim9m/aim9.srf
WPNSHAPE FLR FLYING user/decaff_42/weapons/flr.dnm



REM WingTip AIM-9 Sidewinder
HRDPOINT 4.502m -0.298m -1.391m AIM9
HRDPOINT -4.502m -0.298m -1.391m AIM9




LMTBYHDP TRUE                 #Limit Max Num Weapon by Hardpoint

LOADWEPN AIM9 2



REM ClZero,CdZero is fixed by Cruising condition
REFVCRUS 0.9MACH              #CRUISING SPEED
REFACRUS 10980ft              #CRUISING ALTITUDE
REFTCRUS 0.8                  #CRUISING THROTTLE SETTING

REM ClSlope,CdConst is fixed by Landing condition
REFVLAND 110kt                #LANDING SPEED
REFAOALD 10deg                #LANDING AOA
REFLNRWY 900m                #RUNWAY REQUIRED TO STOP
REFTHRLD 0.3                  #LANDING THROTTLE SETTING


THRSTREV 0.6




AUTOCALC



The particular lines of interest:

Code: Select all

REM Define Weapons
WPNSHAPE AIM9 STATIC user/decaff_42/weapons/aim9m/aim9s.srf
WPNSHAPE AIM9 FLYING user/decaff_42/weapons/aim9m/aim9.srf
WPNSHAPE FLR FLYING user/decaff_42/weapons/flr.dnm
The flying shapes are doing fine for both the flare and missiles.
Screen shot 2015-09-13 at 8.49.56 PM.png
Screen shot 2015-09-13 at 8.50.16 PM.png
Screen shot 2015-09-13 at 8.50.23 PM.png
Here is the Weapons folder inside of user/decaff_42/
Screen shot 2015-09-13 at 9.01.55 PM.png

EDIT: Fixed the spoiler, Now shows the DAT File.
@ Patrick, I do not see where in the dat file that is commanded. By default they should not be hidden, right?
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

Server Flight Log
Addon Database