.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
bernholm
Veteran
Veteran
Posts: 733
Joined: Sun Dec 04, 2011 6:28 am
Favorite Aircraft: 777-9X
Location: Middle of Nowhere, Connecticut
OS: 10.9.5
Has thanked: 67 times
Been thanked: 25 times
Contact:

Re: .Dat Variables

Post by bernholm » Mon May 26, 2014 9:31 am

Does anyone know how to increase gunpower on turrets? (Don't ask why I need this information unless you wwant nightmares :mrgreen: )
Image

User avatar
flamerboy67664
Banned
Banned
Posts: 105
Joined: Fri Sep 07, 2012 8:25 am
Favorite Aircraft: McDonnell Douglas DC-10
Location: In the Philippine Airlines DC-10 with a reg of PH-DTI
Has thanked: 19 times
Been thanked: 7 times

Re: .Dat Variables

Post by flamerboy67664 » Mon May 26, 2014 9:45 am

GUNPOWER variable near the text to set the cockpit position.
Image
Image
Owner and Admin of the YSPhilippines Server. For more info please click here.

User avatar
bernholm
Veteran
Veteran
Posts: 733
Joined: Sun Dec 04, 2011 6:28 am
Favorite Aircraft: 777-9X
Location: Middle of Nowhere, Connecticut
OS: 10.9.5
Has thanked: 67 times
Been thanked: 25 times
Contact:

Re: .Dat Variables

Post by bernholm » Mon May 26, 2014 10:05 am

I don't think that applies to turrets (gunners) though
Image

User avatar
decaff_42
First Class Membership
First Class Membership
Posts: 3395
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 528 times
Been thanked: 1176 times
Contact:

Re: .Dat Variables

Post by decaff_42 » Mon May 26, 2014 12:13 pm

To make up for it you could decrease the turret interval and increase the ammo. Same effect over all.
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

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
bernholm
Veteran
Veteran
Posts: 733
Joined: Sun Dec 04, 2011 6:28 am
Favorite Aircraft: 777-9X
Location: Middle of Nowhere, Connecticut
OS: 10.9.5
Has thanked: 67 times
Been thanked: 25 times
Contact:

Re: .Dat Variables

Post by bernholm » Mon May 26, 2014 1:09 pm

No, I want to make the gunners have a high gunpower so they can destroy the bigger buildings and ships when given anti-ground capability (yes, that would make it OP vs enemy fleets and stuff)
Image

User avatar
Dragon029
Veteran
Veteran
Posts: 601
Joined: Sun Feb 06, 2011 6:09 am
Favorite Aircraft: F-35A
Location: Australia
Has thanked: 42 times
Been thanked: 84 times
Contact:

Re: .Dat Variables

Post by Dragon029 » Mon May 26, 2014 3:46 pm

Understand however that there is no minimum power requirement for destroying buildings, etc. If you have a gun that shoots one 10 GUNPOWER shell every second, it will destroy a building at the same rate as ten 1 GUNPOWER shells per second. The only case where guns may not work is when a building doesn't have a collision file and only explosives (aka not any form of gun) can destroy it.

That all said though, I would expect there is a TURRETPOWER .dat line or something. Perhaps try looking through some Japanese packs.
Royal Australian Air Force
Per Ardua Ad Astra
>>> Dragon Addon Pack <<<
(PAK-FA, F/A-52, F/A-36, MQ-21)

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

Re: .Dat Variables

Post by waspe414 » Mon May 26, 2014 6:39 pm

Ground objects have a TURRETPW variable, but aircraft aren't able to use it. (Though range through TURRETRG works for both.)

Ground objects can also have MINIDAMG that specifies the low damage threshold, below which nothing happens to them.

The two options would be to decrease the firing interval or duplicate the turret several times, but neither will defeat a MINIDAMG higher than GUNPOWER.
Actual UltraViolet
Image Image
Image
I stole your turnip. Now you must come and defend your honour. ~ Hank Green

User avatar
Dragon029
Veteran
Veteran
Posts: 601
Joined: Sun Feb 06, 2011 6:09 am
Favorite Aircraft: F-35A
Location: Australia
Has thanked: 42 times
Been thanked: 84 times
Contact:

Re: .Dat Variables

Post by Dragon029 » Mon May 26, 2014 7:25 pm

Image
Royal Australian Air Force
Per Ardua Ad Astra
>>> Dragon Addon Pack <<<
(PAK-FA, F/A-52, F/A-36, MQ-21)

User avatar
ysmajor
Contributor
Contributor
Posts: 158
Joined: Tue Apr 12, 2011 7:55 am
Favorite Aircraft: Curtiss P-40B Warhawk
Location: Rotterdam
Has thanked: 6 times
Been thanked: 69 times
Contact:

Re: .Dat Variables

Post by ysmajor » Tue May 27, 2014 6:27 am

You can add several turrets on exactly the same spot.
I believe all turrets have power 1 by default, so making an anti-shipping gun would take about 10 turrets with same coordinates.

For WW2 fighters and a 'cluster-effect' you can also slightly alter the gun's degree settings (see my A-10 mod for example). With WW2 fighter guns you can then have the 'X' trajectories set (I think my P-51 and P-47 mods have this), which is more fun than shooting straight.

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

Re: .Dat Variables

Post by Neocon » Sat Jun 14, 2014 5:22 am

When weight is given in tons,
EXAMPLE wrote:WEIGHCLN 19.0t #WEIGHT CLEAN
WEIGFUEL 3.7t #WEIGHT OF FUEL
WEIGLOAD 3.0t #WEIGHT OF PAYLOAD
are tons metric or standard? I have assumed that 1 ton equals 2000 pounds, but am starting to question that.

User avatar
decaff_42
First Class Membership
First Class Membership
Posts: 3395
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 528 times
Been thanked: 1176 times
Contact:

Re: .Dat Variables

Post by decaff_42 » Sat Jun 14, 2014 5:26 am

you could do a quick test. Configure the Fuel consumption to be something stupidly high like 100 lb/s and then give it 5 tons of fuel. If it burns down in 100 seconds, then it is 200lb tons.
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

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
Neocon
First Class Membership
First Class Membership
Posts: 3700
Joined: Wed Oct 19, 2011 5:01 am
Favorite Aircraft: Baron 58
Location: Tennessee
OS: Win Vista
Has thanked: 1502 times
Been thanked: 1624 times
Contact:

Re: .Dat Variables

Post by Neocon » Sat Jun 14, 2014 7:16 am

The interesting thing is that fuel consumption is done by kg, not pounds.

Burning 100 kg of fuel, 1 ton went away in 10.3 seconds.

1 kg is roughly 2.2 pounds.

100 kg is about 220 pounds. If I was burning 100 kg of fuel every second, it should have taken about 4 seconds to empty, not a full 10 seconds.

My conclusion is that either I'm bad at math, or weight in YSF is measured in metric tons, which means if an aircraft weights 22,000 lbs empty, the .dat should say 10t.

User avatar
decaff_42
First Class Membership
First Class Membership
Posts: 3395
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 528 times
Been thanked: 1176 times
Contact:

Re: .Dat Variables

Post by decaff_42 » Sat Jun 14, 2014 2:28 pm

Interesting, I assume you had the throttle all the way up? This explains a few things that I ran into with my 727s. I guess I'm sticking to pounds from now on in my dat work.
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

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: 1834
Joined: Tue Feb 07, 2012 10:00 am
Favorite Aircraft: soviet and (nazi) german aircraft
Location: singapore
OS: windoze 10 64-bit
Has thanked: 512 times
Been thanked: 595 times

.Dat Variables

Post by NightRaven » Tue Jan 27, 2015 5:19 am

bump

GUNSIGHT TRUE/FALSE
Allows the aircraft to have radar ranging gunsight. If left out of the .dat, YS assumes TRUE.
Found this while digging in the GAC MiG-15 .dat.
Image

User avatar
Midnight Rambler
Senior Veteran
Senior Veteran
Posts: 2110
Joined: Thu Feb 10, 2011 11:08 pm
Favorite Aircraft: F-16
Location: Australia
OS: Windows 10
Has thanked: 258 times
Been thanked: 358 times

.Dat Variables

Post by Midnight Rambler » Tue Jan 27, 2015 6:45 am

NightRaven wrote:bump

GUNSIGHT TRUE/FALSE
Allows the aircraft to have radar ranging gunsight. If left out of the .dat, YS assumes TRUE.
Found this while digging in the GAC MiG-15 .dat.
Thanks I've added it in
Image

User avatar
NajmiCreative
Modding Team
Modding Team
Posts: 764
Joined: Thu Sep 04, 2014 9:14 am
Favorite Aircraft: MiG-29N,SU-30 MKM
Location: Shah Alam,Selangor,Malaysia
OS: Windows 10 Home
Has thanked: 473 times
Been thanked: 470 times
Contact:

.Dat Variables

Post by NajmiCreative » Thu May 14, 2015 11:04 am

managed to found visual aid when cracking the PAPI dat file......
VISLDAID PAPI
I still didn't how it works...is it like the turret using the component's name?
My official website
My Twitter NOTE:All my rework model are allowed for repaint and need to credit on publish..no need to PM me anymore
for modifications on my mods,please PM me first,and credit me and original creator(if my work were rework)
[/size]

User avatar
Flake
Staff
Staff
Posts: 4224
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Honda CBR1000RR (2004).
Location: Australia
OS: Windows 10 (x64)
Has thanked: 797 times
Been thanked: 1118 times
Contact:

.Dat Variables

Post by Flake » Thu May 14, 2015 11:12 am

This just tells ysf that the model is a PAPI I think. It uses a the first SRF in the dnm as the lights and divides the srf into quarters (so order the polys are defined in is important!). each quarter of the srf is one light. it fades from the polygon color to full white based on the angle per light.

User avatar
NajmiCreative
Modding Team
Modding Team
Posts: 764
Joined: Thu Sep 04, 2014 9:14 am
Favorite Aircraft: MiG-29N,SU-30 MKM
Location: Shah Alam,Selangor,Malaysia
OS: Windows 10 Home
Has thanked: 473 times
Been thanked: 470 times
Contact:

.Dat Variables

Post by NajmiCreative » Thu May 14, 2015 4:02 pm

Thanks for the info,Flake....
I will be implement PAPI function on my Charles De Gaulle Aircraft carrier as OLS.....
hope it works........
My official website
My Twitter NOTE:All my rework model are allowed for repaint and need to credit on publish..no need to PM me anymore
for modifications on my mods,please PM me first,and credit me and original creator(if my work were rework)
[/size]

User avatar
Flake
Staff
Staff
Posts: 4224
Joined: Thu Feb 10, 2011 8:47 pm
Favorite Aircraft: Honda CBR1000RR (2004).
Location: Australia
OS: Windows 10 (x64)
Has thanked: 797 times
Been thanked: 1118 times
Contact:

.Dat Variables

Post by Flake » Thu May 14, 2015 9:30 pm

;) Best of luck! ask if you have problems!

User avatar
Dragon_Mech
Veteran
Veteran
Posts: 570
Joined: Wed Jul 15, 2015 12:18 pm
Favorite Aircraft: F-14, F-15D&E, SR-71, King Air 200, B737
Location: Mansfield, Mo. USA
OS: Windows 7 Ultimate
Has thanked: 93 times
Been thanked: 126 times

.Dat Variables

Post by Dragon_Mech » Wed Aug 19, 2015 10:08 am

could i get some clarification on H, P, B angle setting for turrets please? i'm more stumped than a dead tree.
i also need to know the meaning of "TURRETHD 0 -60deg 60deg 0deg # Number MinHdg MaxHdg NeutralHdg". and what it's for.
Owner, Dragonic Machine Industries
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest