Dogfight v2.33

YSFlight general discussion & everything in between
Post Reply
Culkster
Newbie
Newbie
Posts: 11
Joined: Thu Mar 28, 2019 5:52 pm
Favorite Aircraft: A-10 Thunderbolt II
Location: York, England
OS: Windows
Has thanked: 2 times
Been thanked: 7 times

Dogfight v2.33

Post by Culkster » Sun Dec 08, 2019 6:09 pm

Didnt really want to drag up an old post by commenting on it but I have a question about the Dofight v2.33 program for YSFlight

Ive noticed no matter how many friendly aircraft are chosen the enemy AI only attacks and focuses on the players aircraft to the point they ignore friendly AI on their tail and keep hunting the player aircraft

Is there a way to stop this happening or does anyone have an idea how to change it?

User avatar
decaff_42
Staff
Staff
Posts: 3591
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 647 times
Been thanked: 1410 times
Contact:

Re: Dogfight v2.33

Post by decaff_42 » Mon Dec 09, 2019 11:43 am

I have not personally used the program before. However there may be some ways to figure some of this out. What version of YSFlight are you using?

Start by collecting some data. Try a map with few to no ground objects to help keep the .yfs file complexity down. (My Flight Test Map may be a good starting point)
(1) Create a simple combat simulation in-game with 2 friendly and 2 enemy planes.
(1a) start the simulation but immediately hit pause and end it.
(1b) Save the .yfs file.
(2) Re-create the combat simulation in v2.33.
(1a) Save the .yfs file.

Upload the .yfs files so others can take a look, but you should start a line-by-line comparison to figure out what is different.
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 Submit Addon To Database

Culkster
Newbie
Newbie
Posts: 11
Joined: Thu Mar 28, 2019 5:52 pm
Favorite Aircraft: A-10 Thunderbolt II
Location: York, England
OS: Windows
Has thanked: 2 times
Been thanked: 7 times

Re: Dogfight v2.33

Post by Culkster » Fri Dec 13, 2019 8:35 pm

Sorry about the late reply, real world got in the way :oops:

This is the Dogfight program .yfs file
http://www.mediafire.com/file/xul9qjjex ... t.yfs/file

This is the normal YSF internal dogfight .ysf file
http://www.mediafire.com/file/8remh7t59 ... t.yfs/file

I can see a few differences in the files side by side, but hardly know anything about .yfs files to be able to spot things

User avatar
waspe414
Staff
Staff
Posts: 1285
Joined: Thu Feb 10, 2011 9:35 pm
Favorite Aircraft: CH-136 Kiowa, Yak-130 Mitten
Location: Canada
Has thanked: 120 times
Been thanked: 251 times

Re: Dogfight v2.33

Post by waspe414 » Fri Dec 13, 2019 10:01 pm

Can you upload the files before flying them? Hit OK in the dogfight menu rather than Fly Now, then File>Save Flight. There may be a priority target marker on the player in the Dogfight Generator output or something.
Actual UltraViolet
Image Image
Image
I stole your turnip. Now you must come and defend your honour. ~ Hank Green

Culkster
Newbie
Newbie
Posts: 11
Joined: Thu Mar 28, 2019 5:52 pm
Favorite Aircraft: A-10 Thunderbolt II
Location: York, England
OS: Windows
Has thanked: 2 times
Been thanked: 7 times

Re: Dogfight v2.33

Post by Culkster » Sat Dec 14, 2019 2:18 pm

This is the updated internal YSF dogfight file without flying it

http://www.mediafire.com/file/uojwvawm8 ... t.yfs/file

User avatar
waspe414
Staff
Staff
Posts: 1285
Joined: Thu Feb 10, 2011 9:35 pm
Favorite Aircraft: CH-136 Kiowa, Yak-130 Mitten
Location: Canada
Has thanked: 120 times
Been thanked: 251 times

Re: Dogfight v2.33

Post by waspe414 » Sat Dec 14, 2019 8:44 pm

And the Dogfight Generator output?
Actual UltraViolet
Image Image
Image
I stole your turnip. Now you must come and defend your honour. ~ Hank Green

Culkster
Newbie
Newbie
Posts: 11
Joined: Thu Mar 28, 2019 5:52 pm
Favorite Aircraft: A-10 Thunderbolt II
Location: York, England
OS: Windows
Has thanked: 2 times
Been thanked: 7 times

Re: Dogfight v2.33

Post by Culkster » Sun Dec 15, 2019 1:54 am

That doesnt let me save a .ysf file without it going into game and flying first :(

User avatar
waspe414
Staff
Staff
Posts: 1285
Joined: Thu Feb 10, 2011 9:35 pm
Favorite Aircraft: CH-136 Kiowa, Yak-130 Mitten
Location: Canada
Has thanked: 120 times
Been thanked: 251 times

Re: Dogfight v2.33

Post by waspe414 » Sun Dec 15, 2019 8:15 am

I was able to grab the temporary .ysf from the generator. I haven't been able to replicate the AI behaviour you described in stock dogfight or Dogfight Generator. What version are you using?
Actual UltraViolet
Image Image
Image
I stole your turnip. Now you must come and defend your honour. ~ Hank Green

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

Re: Dogfight v2.33

Post by u2fly » Tue Dec 17, 2019 2:37 am

What about "DOGFIGHT" variable "F<id>" value? Such values exists in the normal YSFlight internal dogfight .ysf file, but NOT exists in Dogfight program .yfs file:

Code: Select all

...
AIRPLANE SU-27_FLANKER FALSE
STARTPOS NA SOUTH10000_01
IDENTIFY 1
IDANDTAG 3 ""
AIRPCMND ULOADAAM
INTENTIO
DOGFIGHT G7.00 B20.00 F3
...
AIRPLANE MIG-29_FULCRUM FALSE
STARTPOS NA SOUTH10000_02
IDENTIFY 1
IDANDTAG 4 ""
AIRPCMND ULOADAAM
INTENTIO
DOGFIGHT G7.00 B20.00 F2
...
/!\ READ YSFLIGHT HANDBOOK (online + PDF) | updated 2019/04/25

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”
http://pic.twitter.com/vkz0gdozVV
(31 DEC 2016)

User avatar
waspe414
Staff
Staff
Posts: 1285
Joined: Thu Feb 10, 2011 9:35 pm
Favorite Aircraft: CH-136 Kiowa, Yak-130 Mitten
Location: Canada
Has thanked: 120 times
Been thanked: 251 times

Re: Dogfight v2.33

Post by waspe414 » Tue Dec 17, 2019 5:02 am

That's one of the few variables I've not been able to pin down. It shows up in my YS-generated dogfight .yfs but not the Dogfight Generator one, and it's not in Culkster's.
Actual UltraViolet
Image Image
Image
I stole your turnip. Now you must come and defend your honour. ~ Hank Green

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

Re: Dogfight v2.33

Post by u2fly » Tue Dec 17, 2019 5:29 am

In my «YSFlight Handbook» dogfight variables not covered yet, but there is backup of webpage with more details on .ysf/.yfs variables: As I understand, "F<id>" value used for aircrafts in formation (not sure how YSFlight use it in dogfight mode), but I also found difference between YSFlight and Dogfight Generator outputs in "G<value>" (G limit) and "B<angle>" (tail warning radar angle) values:

In YSFlight output:

Code: Select all

...
DOGFIGHT G7.00 B20.00
...
In Dogfight Generator output:

Code: Select all

...
DOGFIGHT G666.00 B180.00
...
Also, I'm not sure what means YSFlight's dogfight: starting of ../mission/gunfight.ysf ("File > Open Mission > Air Combat: Machine Gun Dogfight") OR starting "Endurance Mode" ("Simulation > Fly Endurance Mode")?
/!\ READ YSFLIGHT HANDBOOK (online + PDF) | updated 2019/04/25

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”
http://pic.twitter.com/vkz0gdozVV
(31 DEC 2016)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests