.DAT Variables: Aircraft

Topics about .dat, .srf, .dnm, .ist, Blender, Gepoly, etc.
User avatar
AdityaB
Veteran
Veteran
Posts: 547
Joined: Sat Oct 17, 2015 12:40 pm
Favorite Aircraft: All
Location: India
OS: Windows 10
Has thanked: 163 times
Been thanked: 144 times

Re: .DAT Variables

Post by AdityaB »

Just like the variable

GEARHORN
and
STALHORN

are there (I an air there are, though not found in this thread....) sound variables?
I mean something like a custom taxiing find, custom max throttle sound....?

By the way how do you create new variables or unearth them??

Thanks a lot :)
Please note that I do not mean any kind of offence in any of my posts
My Website:
YS Flight South Asia
Get full list of
my releases at:
AdityaB's Facility
:) :) :)
*temporarily unavailable further details
NightRaven
Senior Veteran
Senior Veteran
Posts: 1851
Joined: Tue Feb 07, 2012 10:00 am
Favorite Aircraft: .
OS: windoze 10 64-bit
Has thanked: 617 times
Been thanked: 619 times

Re: .DAT Variables

Post by NightRaven »

There aren't a lot of sound related variables; I believe those are the only 2 directly related to the sound.
Custom sounds are not supported as yet.

New variables are introduced as YS is updated. These new variables are found in the stock planes by painstaking analysis of the stock .dat files.
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: .DAT Variables

Post by u2fly »

Anybody know how "VISLDAID" variable of ground object DAT work in YSFlight?

Code: Select all

VISLDAID VASI

Code: Select all

VISLDAID PAPI

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
User avatar
waspe414
Staff
Staff
Posts: 1582
Joined: Thu Feb 10, 2011 9:35 pm
Favorite Aircraft: Kiowa, Mitten, Hornet
Location: Canada
Has thanked: 154 times
Been thanked: 506 times

Re: .DAT Variables

Post by waspe414 »

VISLDAID (visual landing aid) PAPI or VASI define the red and white lights for runway approach.

Setting VISLDAID PAPI in the .dat of a ground object with a .dnm will set the parent SRF of that DNM to the PAPI light. I'm still not sure how colour change angle is calculated, but it does seem to be relative to the face.

Conversion to PAPI shading is not affected by face brightness or SURF name. Adding the tag to the Burke .dat turned every face bright, though, so I'm not positive what's going on with brightness. Face colour only affects at what angle the light changes from red to white (regardless of input, the light is still red). There's nothing special in the SURF header to indicate lights.

I've not messed with the VASI setting, but its implementation should be the same. I'm not sure what the differences are, aside from PAPI being 1x4 and VASI being 2x2.

Interestingly, the face shading seems to start from the negative X axis. Left and right papis are mirrors of each other, and the light faces are all vertical, yet they change in the opposite direction.
Actual UltraViolet
Image Image
Image
I stole your turnip. Now you must come and defend your honour. ~ Hank Green
User avatar
Flake
VFA-49
VFA-49
Posts: 4375
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 861 times
Been thanked: 1279 times
Contact:

Re: .DAT Variables

Post by Flake »

PAPI lights take first srf declared as a PCK in the dnm file, and breaks it into 4 equal polygon groups. First quarter is light one, second quarter is light two...

So in stock PAPI you have a srf with 4 polygons, being the lights, and another srf to house those lights.

I did a write up on this somewhere on this forum...
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!
User avatar
kiwiflieger
Contributor
Contributor
Posts: 227
Joined: Thu Mar 27, 2014 7:09 am
Favorite Aircraft: Die Fledermaus
Has thanked: 125 times
Been thanked: 92 times

Re: .DAT Variables

Post by kiwiflieger »

OfficerFlake wrote:I did a write up on this somewhere on this forum..
This one?
Currently dormant... playing IL2 Cliffs of Dover
User avatar
decaff_42
Staff
Staff
Posts: 3838
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 844 times
Been thanked: 1727 times
Contact:

Re: .DAT Variables

Post by decaff_42 »

Been doing some F-35B Hover testing and I have found some weights for the weapons. By obtaining baseline fuel amounts for no weapons in a hover, then gradually adding on multiple weapons, I'm able to get a reasonable approximations for the weapons below based on the fuel delta percent and knowing the max fuel weight. Hope this information is helpful for other ppl! :D

AIM-9 = 200lb
AIM-120 = 275lb
B250 = 250lb
B500 = 500lb
AGM = 600lb
Fuel Tank (empty) = 300lb
Check out my website YSDecaff for all my tutorials and addon releases.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories

YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
User avatar
Skipper
Rookie
Rookie
Posts: 83
Joined: Mon Dec 09, 2013 8:28 pm
Favorite Aircraft: Spitfire/F-15E
Location: SAM VOR 240 radial, 27nm
OS: Windows 10
Has thanked: 15 times
Been thanked: 57 times
Contact:

Re: .DAT Variables

Post by Skipper »

There is a factor in the .DAt file that is called "Weigload"..Weight of the load.
Midnight Rambler wrote:WEIGLOAD - The weight of the payload (missles and bombs). This influences the model's flight characteristics, especially in a fighter.
Would this change the weight of the weapons, depending on what you've set here?
Image
Host of YSRP: YSRP.co.uk - YS Role Play Server
User avatar
decaff_42
Staff
Staff
Posts: 3838
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 844 times
Been thanked: 1727 times
Contact:

Re: .DAT Variables

Post by decaff_42 »

That is a great point. I didn't test that variable. I imagine this would be closer to what payloads are carried, such as passenger weights or pylons, etc. It would definitely be worth checking that out when I've got the time, or anyone else who is interested could use the F-35B dat from the VNAF Airfest 2016 and modify the dat file.
Check out my website YSDecaff for all my tutorials and addon releases.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories

YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
NightRaven
Senior Veteran
Senior Veteran
Posts: 1851
Joined: Tue Feb 07, 2012 10:00 am
Favorite Aircraft: .
OS: windoze 10 64-bit
Has thanked: 617 times
Been thanked: 619 times

Re: .DAT Variables

Post by NightRaven »

bump

Updated with proper 2015 descriptions, slightly more information on other variables and fixed (minor) formatting errors.
Quite sure we still missed some variables though, like PROPVMIN.
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: .DAT Variables

Post by u2fly »

Found one more variable, that not yet listed in first post of this topic.
Inside stock "CONCORDE" found next

Code: Select all

LOOKOFST 0.0m 0.0m 0.0m
It used for set position of rotating centre of Outside-Aircraft View, that by default assigned to F6 and F7 keys inside ysflightKeyAssign.asn

Code: Select all

...
KEY F6 OUTSIDEPLAYERVIEW3
KEY F7 OUTSIDEPLAYERVIEW2
...

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
User avatar
Flake
VFA-49
VFA-49
Posts: 4375
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 861 times
Been thanked: 1279 times
Contact:

Re: .DAT Variables

Post by Flake »

Midnight Rambler wrote:How many degrees of YAW the aircraft moves at CRITSPEED when the stick is hard in one second.
Oh Myyyy!

Slight typo, doesn't matter that much though. :lol:

Thanks for this write up - using it now to define the DATFile class of my YSFlight library!
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!
User avatar
decaff_42
Staff
Staff
Posts: 3838
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 844 times
Been thanked: 1727 times
Contact:

Re: .DAT Variables

Post by decaff_42 »

Question about the RCS values.

Is this like a coefficient to the soft lock and lock ranges?
For Example:

Range = RCS * stock Range
Check out my website YSDecaff for all my tutorials and addon releases.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories

YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: .DAT Variables

Post by u2fly »

Think I found one more not yet discribed option keyword for EXCAMERA variable:

Code: Select all

EXCAMERA "NAME" 0.0m 0.0m 0.0m 0deg 0deg 0deg CABIN
Strange, that in first post of current topic EXCAMERA options keywords not described.

I read related topic EXCAMERA and its too not include CABIN option
viewtopic.php?t=1587

So, for now there are (at least) three different options for this variable:

Code: Select all

EXCAMERA "INSTRUCTOR_VIEW" 0.0m 0.0m 0.0m 0deg 0deg 0deg INSIDE
EXCAMERA "EXTERNAL_VIEW" 0.0m 0.0m 0.0m 0deg 0deg 0deg OUTSIDE
EXCAMERA "PASSENGER_VIEW" 0.0m 0.0m 0.0m 0deg 0deg 0deg CABIN
INSIDE - show visual cockpit & instrument panel & optionally HUD (all visual effects that you can see in COCKPITP position)
OUTSIDE - show faces inverted (cutted) + fully disable visual cockpit & instruments panel & HUD
CABIN - show visual cockpit (like INSIDE) but fully disable visual instrument panel & HUD (something like passenger that is sitting in the back seat; usefull for 2nd pilot position in tandem aircraft)

P.S.: best choice is not use this optional keywords inside comments or not use any comments in EXCAMERA string (#comment). For example if you write this...

Code: Select all

EXCAMERA "NAME" 0.0m 0.0m 0.0m 0deg 0deg 0deg CABIN # INSIDE
... then YSFlight will set INSIDE option instead of CABIN !

ATTENTION!
Do not use EXCAMERA variable without any option keyword, because it will generate errors!
Last edited by u2fly on Wed Dec 14, 2016 12:06 am, edited 1 time in total.

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3955
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win 10
Has thanked: 1770 times
Been thanked: 1810 times
Contact:

Re: .DAT Variables

Post by Neocon »

u2fly wrote:something like passenger that is sitting in the back seat; usefull for 2nd pilot position in tandem aircraft)
That's good information. I don't think I have seen the CABIN option before.
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: .DAT Variables

Post by u2fly »

Patrick31337 wrote:That's good information. I don't think I have seen the CABIN option before.
It already presented in few stock bombers for "BOMBBAY" view (../aircraft/b29.dat, ../aircraft/g4m.dat, ../aircraft/lancaster.dat, ...)

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: .DAT Variables

Post by u2fly »

Additionally to previously described EXCAMERA variable options I found few more interesting options and variables, by digging stock aircrafts

-- New discovered variables
CKPITIST FALSE #show instrument panel in the COCKPITP neutral view (if FALSE then instrument panel can be made availiable only in EXCAMERA views)
CKPITHUD TRUE #show HUD in the COCKPITP neutral view (if FALSE then HUD can be made availiable only in EXCAMERA views)
ISPNLHUD TRUE #use both HUD and instrument panel (set aircraft to show them together, if other not specified)

-- New discovered variables options

Code: Select all

EXCAMERA "NAVIGATOR" 0.0m 0.0m 0.0m 0deg 0deg 0deg INSIDE NOHUD
.. INSIDE NOHUD - is something in between only INSIDE and only CABIN view (you can see instrument panel, but can't see HUD).

-- Summary
Using combination of those variables and this EXCAMERA option you can make aircraft where main pilot will see only HUD, and other pilot will see only custom instrument panel (defined using INSPANL variable from *.ist file)

Code: Select all

EXCAMERA "NAVIGATOR" 0.0m 0.0m 0.0m 0deg 0deg 0deg INSIDE NOHUD
CKPITIST FALSE
CKPITHUD TRUE
ISPNLHUD TRUE
P.S.: How it work you could see in stock "F-15DJ_EAGLE" ( ../aircraft/f15dj.dat )
--
All this and some additional info you could get from next edition of YSFLIGHT HANDBOOK soon!

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
Grigor
Contributor
Contributor
Posts: 201
Joined: Wed Mar 16, 2011 7:57 am
Favorite Aircraft: Ball-Bartoe Jetwing
OS: Windows XP
Has thanked: 58 times
Been thanked: 122 times

Re: .DAT Variables

Post by Grigor »

WPNSHAPE GUN FLYING can also be used, to great effect, though the orientation of the srf doesn't exactly follow the attitude of the plane. Low poly count would be advisable, as so many are produced. The shape also doubles as the oft-wished for muzzle flash effect, as seen here:

Image
Tracers.jpg
User avatar
Flake
VFA-49
VFA-49
Posts: 4375
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Boeing F/A-18A
Location: Australia
OS: Windows 10 (x64)
Has thanked: 861 times
Been thanked: 1279 times
Contact:

Re: .DAT Variables

Post by Flake »

Grigor wrote:though the orientation of the srf doesn't exactly follow the attitude of the plane.
Correct, the "bullet" is always oriented north. Oversight in coding I think.
I am an accountant working full-time (and some). I'm not here as often as I would like to be. Send a message if you need me. There are a few people in the community who can get in contact with me urgently if you need - don't be afraid to ask. I just don't check here as frequently as I used to. Sorry!
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: .DAT Variables

Post by u2fly »

xX_SuperSic58_Xx wrote:
Grigor wrote:though the orientation of the srf doesn't exactly follow the attitude of the plane.
Correct, the "bullet" is always oriented north. Oversight in coding I think.
This issue presented in "YSFlight ver.20150425", but in "YSFlight Test ver.20170122" there NO such limitations, and each bullets has random orientation!(I already check it today)

U.S. Senator John McCain wrote:“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost
- we stand w/ them in their fight against #Putin's aggression”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests