.DAT Variables

Learn to make aircraft, maps and more with all of the tools. All the tutorials you will ever need are located here!
NOTE THAT HACKING THE MAIN YSFLIGHT .EXE IS FORBIDDEN
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
Contact:

Re: .DAT Variables

Post by AdityaB » Thu Mar 31, 2016 12:51 pm

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
Get full list of
my releases at:
AdityaB's Facility
:) :) :)
*temporarily unavailable further details

User avatar
NightRaven
Staff
Staff
Posts: 1814
Joined: Tue Feb 07, 2012 10:00 am
Favorite Aircraft: soviet and (nazi) german aircraft
Location: singapore
OS: windoze 10 64-bit
Has thanked: 443 times
Been thanked: 550 times

Re: .DAT Variables

Post by NightRaven » Thu Mar 31, 2016 2:06 pm

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.
Image

User avatar
u2fly
Veteran
Veteran
Posts: 1136
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 609 times
Been thanked: 256 times
Contact:

Re: .DAT Variables

Post by u2fly » Sat Aug 20, 2016 12:25 pm

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

Code: Select all

VISLDAID VASI

Code: Select all

VISLDAID PAPI
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
waspe414
Veteran
Veteran
Posts: 1101
Joined: Thu Feb 10, 2011 9:35 pm
Favorite Aircraft: CH-136 Kiowa
Location: Canada
Has thanked: 88 times
Been thanked: 96 times

Re: .DAT Variables

Post by waspe414 » Sat Aug 20, 2016 6:59 pm

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.
I stole your turnip. Now you must come and defend your honour. ~ Hank Green
Image
"Talon is a giant flower. That is all."

User avatar
Flake
Staff
Staff
Posts: 4077
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Honda CBR600RR. Shit I mean Boeing F/A-18A.
Location: Newcastle, Australia
OS: Windows 10 (x64)
Has thanked: 734 times
Been thanked: 980 times

Re: .DAT Variables

Post by Flake » Sun Aug 21, 2016 12:43 am

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...

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 » Sun Aug 21, 2016 1:00 am

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
Legend
Legend
Posts: 3334
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX 10.11.3
Has thanked: 464 times
Been thanked: 1056 times
Contact:

Re: .DAT Variables

Post by decaff_42 » Wed Aug 24, 2016 2:31 am

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.

Feel free to ask me a question! I'll try to answer it as well as I can or recommend a more knowledgeable member if necessary.

User avatar
Skipper
Rookie
Rookie
Posts: 52
Joined: Mon Dec 09, 2013 8:28 pm
Favorite Aircraft: Spitfire
Location: South Wales, UK
OS: Windows 7
Has thanked: 9 times
Been thanked: 24 times
Contact:

Re: .DAT Variables

Post by Skipper » Mon Aug 29, 2016 5:44 pm

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
Skipper's Mod Pack: www.skipper-iwb.co.uk (On YS Mod Site)

User avatar
decaff_42
Legend
Legend
Posts: 3334
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX 10.11.3
Has thanked: 464 times
Been thanked: 1056 times
Contact:

Re: .DAT Variables

Post by decaff_42 » Mon Aug 29, 2016 11:56 pm

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.

Feel free to ask me a question! I'll try to answer it as well as I can or recommend a more knowledgeable member if necessary.

User avatar
NightRaven
Staff
Staff
Posts: 1814
Joined: Tue Feb 07, 2012 10:00 am
Favorite Aircraft: soviet and (nazi) german aircraft
Location: singapore
OS: windoze 10 64-bit
Has thanked: 443 times
Been thanked: 550 times

Re: .DAT Variables

Post by NightRaven » Sat Sep 03, 2016 10:13 am

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.
Image

User avatar
u2fly
Veteran
Veteran
Posts: 1136
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 609 times
Been thanked: 256 times
Contact:

Re: .DAT Variables

Post by u2fly » Tue Oct 18, 2016 7:42 pm

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
...
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
Flake
Staff
Staff
Posts: 4077
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Honda CBR600RR. Shit I mean Boeing F/A-18A.
Location: Newcastle, Australia
OS: Windows 10 (x64)
Has thanked: 734 times
Been thanked: 980 times

Re: .DAT Variables

Post by Flake » Wed Nov 16, 2016 9:59 am

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!

User avatar
decaff_42
Legend
Legend
Posts: 3334
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX 10.11.3
Has thanked: 464 times
Been thanked: 1056 times
Contact:

Re: .DAT Variables

Post by decaff_42 » Sat Dec 10, 2016 4:25 pm

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.

Feel free to ask me a question! I'll try to answer it as well as I can or recommend a more knowledgeable member if necessary.

User avatar
u2fly
Veteran
Veteran
Posts: 1136
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 609 times
Been thanked: 256 times
Contact:

Re: .DAT Variables

Post by u2fly » Tue Dec 13, 2016 8:17 pm

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.
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
Neocon
First Class Membership
First Class Membership
Posts: 3593
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1422 times
Been thanked: 1542 times
Contact:

Re: .DAT Variables

Post by Neocon » Tue Dec 13, 2016 9:48 pm

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
Veteran
Veteran
Posts: 1136
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 609 times
Been thanked: 256 times
Contact:

Re: .DAT Variables

Post by u2fly » Wed Dec 14, 2016 9:57 am

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, ...)
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
u2fly
Veteran
Veteran
Posts: 1136
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 609 times
Been thanked: 256 times
Contact:

Re: .DAT Variables

Post by u2fly » Wed Jan 04, 2017 11:34 pm

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!
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

User avatar
Grigor
Contributor
Contributor
Posts: 171
Joined: Wed Mar 16, 2011 7:57 am
Has thanked: 24 times
Been thanked: 94 times

Re: .DAT Variables

Post by Grigor » Fri Jan 27, 2017 1:47 am

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
Staff
Staff
Posts: 4077
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Honda CBR600RR. Shit I mean Boeing F/A-18A.
Location: Newcastle, Australia
OS: Windows 10 (x64)
Has thanked: 734 times
Been thanked: 980 times

Re: .DAT Variables

Post by Flake » Fri Jan 27, 2017 7:25 am

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.

User avatar
u2fly
Veteran
Veteran
Posts: 1136
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 609 times
Been thanked: 256 times
Contact:

Re: .DAT Variables

Post by u2fly » Fri Jan 27, 2017 9:54 am

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)
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
- John McCain, U.S. Senator for Arizona, Republican party
(31 DEC 2016)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest