[PROGRAM] Dogfight Generator

Note that alterations to the YSFlight .EXE is forbidden
Grigor
Contributor
Contributor
Posts: 201
Joined: Wed Mar 16, 2011 7:57 am
Favorite Aircraft: Ball-Bartoe Jetwing
OS: Windows XP
Has thanked: 59 times
Been thanked: 118 times

[PROGRAM] Dogfight Generator

Post by Grigor » Fri Mar 18, 2011 9:40 pm

Just unzip this to your YS Flight directory (alongside fsmaindx.exe) and run it. It'll create an .ini file on first run. All it does is generate a file called DOGFIGHT.YFS, run it, and delete it when it's finished. NOTE: if you happen to have a DOGFIGHT.YFS in the same directory, be sure you rename it. I've run it on my main YSF directory as well as the Flight Realism Pack - on two different computers, both with Windows XP - and it seems OK. This is a stand alone program - no changes to the registry etc. Of course I cannot take responsibility for anything unforseen that it might do, yatta yatta yatta...

Note: if you don't select either a location, friendly or enemy plane, one is randomly chosen for you. This seems to be where the fun is at. You can also select 0 wingmen for a one-on-one match. Let me know how it works.

You can get the Previous Version of Dogfight 2.2 right here: http://min.us/mvk2J98

**NEW**
Dogfight 2.31 bundled with YS List Manager.
Both these allow you to create and load profiles, ie different groupings of aircraft lists. These can be activated by dragging and dropping onto either program. In Dogfight 2.31 this means you won't have to worry about going up against your own planes.
http://min.us/mvpqRs6

Vista and Windows 7 users note: if this program doesn't work, try right-clicking Dogfight 2.1.exe, click the
Compatibility tab, and set the compatibility mode to Windows XP. This **should** make it work.

Enjoy.

(While you're at it, check out the FA-57 Centaur and FA-58 Spectre under Aircraft Add-Ons!)
Last edited by Grigor on Mon May 16, 2011 5:20 am, edited 10 times in total.

Kynan

Re: Dogfight Generator

Post by Kynan » Sun Mar 20, 2011 7:24 pm

Wow. 50 wingmen

CharleyHotel

Re: Dogfight Generator

Post by CharleyHotel » Sun Mar 20, 2011 7:32 pm

Damn son! You are really hitting the ground running here! Insert approval face.

User avatar
Phoenix
Legend
Legend
Posts: 3153
Joined: Fri Feb 11, 2011 5:54 pm
Favorite Aircraft: Sr-71
Location: On that golden road to Samarkand.
Has thanked: 78 times
Been thanked: 41 times

Re: Dogfight Generator

Post by Phoenix » Sun Mar 20, 2011 8:00 pm

I need to modify the Dogfight.ini as you said (I use linux, but I can not find it. I may be missing the obvious, but can you help?

Also, can I remove blacking out?

But it is Great (tried it with windows version).

Grigor
Contributor
Contributor
Posts: 201
Joined: Wed Mar 16, 2011 7:57 am
Favorite Aircraft: Ball-Bartoe Jetwing
OS: Windows XP
Has thanked: 59 times
Been thanked: 118 times

Re: Dogfight Generator

Post by Grigor » Sun Mar 20, 2011 8:49 pm

Phoenix: I thought the .ini was in the zip with the program, but I haven't actually checked. It looks like this:

[Settings]
ProgUse=FSMAINDX.EXE
wnum=5
spacing=150
distance=4000
altitude=1500
aex=1
dgo=0


If you copy/paste this into a file called DOGFIGHT.INI in the same directory it should work. Both files need to be in the YS flight directory.

wnum = no. of wingmen (0 to ????)
aex = auto exit (1 or 0)
dgo = draw ground objects (1 or 0)

In future versions (soon) I'll get the program to create an .ini if none exists, maybe a built-in settings menu also. And I intend to make it load weapons (missiles etc) from the aircraft's .dat file.

Regarding Linux... guh... I'm completely lost. I only use XP.

Regarding the blackout... I don't think it can be done through Dogfight or through a .yfs mission file.
There is a line of zero's after FIELDNAM in every mission file, and I don't know what they do exactly. Don't think that's it. You have to untick black out in the OPTION / CONFIG / GAME RULE menu. Or try flying my other add-on (plug, plug) in add-on mod releases / aircraft, the XF-57... it'll do sharp turns at speeds of up to 400kts without turning out the lights.

User avatar
Phoenix
Legend
Legend
Posts: 3153
Joined: Fri Feb 11, 2011 5:54 pm
Favorite Aircraft: Sr-71
Location: On that golden road to Samarkand.
Has thanked: 78 times
Been thanked: 41 times

Re: Dogfight Generator

Post by Phoenix » Sun Mar 20, 2011 8:53 pm

Thanks for the help. The 50-on-50 dogfights are stunning.

Grigor
Contributor
Contributor
Posts: 201
Joined: Wed Mar 16, 2011 7:57 am
Favorite Aircraft: Ball-Bartoe Jetwing
OS: Windows XP
Has thanked: 59 times
Been thanked: 118 times

Re: Dogfight Generator

Post by Grigor » Sun Mar 20, 2011 9:50 pm

Thanks. Just re-did the link to include a zip of both files, correctly named.
50 on 50 is what I had in mind... I got the idea while re-watching the new Battlestar Galactica pilot, where there were LOTS of ships - lots of chaos and carnage. It (the program) was a relatively simple concept that came together fairly quickly, and the rest was just polishing.
Thinking next about something to generate random happenings within a set mission. Randomness is where the fun is. There's nothing so good in a game as being surprised.

User avatar
Phoenix
Legend
Legend
Posts: 3153
Joined: Fri Feb 11, 2011 5:54 pm
Favorite Aircraft: Sr-71
Location: On that golden road to Samarkand.
Has thanked: 78 times
Been thanked: 41 times

Re: Dogfight Generator

Post by Phoenix » Sun Mar 20, 2011 9:52 pm

Also gives realism, especially of WWII era.

Shutter

Re: Dogfight Generator

Post by Shutter » Sun Mar 20, 2011 11:30 pm

Wow.


Just, wow man. It's not often we get a new member who contributes this much right off the bat. Great stuff Grigor! :)

EDIT: I had started to mod a .ysf I had made with this changing the aircraft type of each ai for more variety and added some payload options. However, I would advise everyone not to take the time to do this, because now all the planes disappear after some time. I'm going to assume this has to do with the fact that the flight just gets to big to hold in memory (the base .ysf was already 20mb in size. I have 6 gigs of ram but I doubt ys would be allowed to use it all).

Anyways, I blame windows.

User avatar
Doomsday
Staff
Staff
Posts: 859
Joined: Mon Feb 07, 2011 2:01 am
Favorite Aircraft: PEW PEW PEW PEW
Location: PEW PEW PEW
OS: PEW PEW PEW PEW PEW
Has thanked: 1 time
Been thanked: 115 times

Re: Dogfight Generator

Post by Doomsday » Mon Mar 21, 2011 12:51 am

Not sure if its only just me, but I properly extracted the zip file and placed it in my YSFlight directory folder. Clicked on the .exe and it opens up the program and gives me a list of all the planes I have to select for me and the enemies and which map to do it on. So everything is working as it should so far, but when I click on "GO!", nothing happens. Anyone else having similar issues?
Image
PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW

Team Awesome# 131

Kynan

Re: Dogfight Generator

Post by Kynan » Mon Mar 21, 2011 2:47 am

Yes nothing happens with me ether

Grigor
Contributor
Contributor
Posts: 201
Joined: Wed Mar 16, 2011 7:57 am
Favorite Aircraft: Ball-Bartoe Jetwing
OS: Windows XP
Has thanked: 59 times
Been thanked: 118 times

Re: Dogfight Generator

Post by Grigor » Mon Mar 21, 2011 3:31 am

Sorry Guys... Looking right into it.
Could you give me some info? Which fsmain you use? [fsmaino.exe fsmaindx.exe etc] Windows 98/XP?

It could be a compatibility issue... Do you have the LATEST version of YS Flight? If not, try this:
1) Do a copy of the DOGFIGHT.YFS before the program (Dogfight.exe) closes.
2) Manually edit and change the first line to YFSVERSI 20080220 instead of whatever's there.
3) Load the mission from the main YS menu. [FILE - OPEN]
If this works, let me know... I could make the thing more backwards compatible if needed.

This hasn't been tested on anything but XP so far. I remember the program doing the same thing (nothing) somewhere in the testing phase... but I can't remember why.

Kynan

Re: Dogfight Generator

Post by Kynan » Mon Mar 21, 2011 6:06 am

Well iv got vista and the latest version. But does it make the dogfight.yfs in the missions folder. But theres no dogfight.yfs. So thats probily whats hapenin

User avatar
Phoenix
Legend
Legend
Posts: 3153
Joined: Fri Feb 11, 2011 5:54 pm
Favorite Aircraft: Sr-71
Location: On that golden road to Samarkand.
Has thanked: 78 times
Been thanked: 41 times

Re: Dogfight Generator

Post by Phoenix » Mon Mar 21, 2011 3:43 pm

I've found that it usually takes a few minutes to load,

Kynan

Re: Dogfight Generator

Post by Kynan » Mon Mar 21, 2011 7:09 pm

Waited 5 mins and still nothing hapening

User avatar
Doomsday
Staff
Staff
Posts: 859
Joined: Mon Feb 07, 2011 2:01 am
Favorite Aircraft: PEW PEW PEW PEW
Location: PEW PEW PEW
OS: PEW PEW PEW PEW PEW
Has thanked: 1 time
Been thanked: 115 times

Re: Dogfight Generator

Post by Doomsday » Mon Mar 21, 2011 9:00 pm

I believe I figured out the problem, well for me. I use Windows 7 and since you said this program works on 98 and XP, I right click the .exe, clicked on "Properties", then clicked on the compatibility tab. I selected the option to run the .exe under Windows 98. So if anybody else is having any issues with this and is using Windows 7, give this a try.
Image
PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW PEW

Team Awesome# 131

Grigor
Contributor
Contributor
Posts: 201
Joined: Wed Mar 16, 2011 7:57 am
Favorite Aircraft: Ball-Bartoe Jetwing
OS: Windows XP
Has thanked: 59 times
Been thanked: 118 times

Re: Dogfight Generator

Post by Grigor » Mon Mar 21, 2011 9:06 pm

Sorry this doesn't work for all of you. There are so many VARIABLES in these sort of issues it'd be impossible for me to guess how to get around them. There are so many tickboxes hidden away within so many "options" menus, somewhere in an obscure corner of the control panel or wherever, and all it takes is one wrong setting to screw things up. Not saying that's what it is, but saying it could be anything. Again, I would try doing a copy of the dogfight.yfs, and edit that manually until it does work. And if it DOES, let me know what you did and I can build that into the next version. And make the mission file as simple as possible. No ground objects, and two (or fewer) wingmen... fewer variables, more chance of making it work.

Do you have any problems running other mission files? The ones that come with the game?
Is anyone else having ANY kind of problems with Dogfight.exe? It IS a work in progress: Let's get it right.

Keep me posted.

-- Ah, Mr. Doomsday has just pointed out the option under "properties". Like I said, some tickbox somewhere...

CharleyHotel

Re: Dogfight Generator

Post by CharleyHotel » Mon Mar 21, 2011 9:09 pm

I just get a text file, but then again I'm using a Mac.Could be that.

Kynan

Re: Dogfight Generator

Post by Kynan » Tue Mar 22, 2011 2:51 am

Tryed the compatability in all the modes but still nothing. And yes normal missions run fine

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: 85 times
Contact:

Re: Dogfight Generator

Post by Dragon029 » Tue Mar 22, 2011 5:09 am

Works awesomely on my system (I use Vista 64bit) - I think what I'd like to see is just aircraft having their stock missile and bomb load for the combat - it'd increase lag, but for good machines it'd make things more interesting.
Additionally, being able to have the enemy and friendly AI set to different difficulties would be good; at the moment whichever side has the most gun ammo, planes and turn rate is the side that wins.
It'd be cool to be able to select more than 1 aircraft for your enemy or friendly fleet, but that'd probably make things more complex.

I don't expect you to add these things, but perhaps if you get free time you could look into what's possible.
Royal Australian Air Force
Per Ardua Ad Astra
>>> Dragon Addon Pack <<<
(PAK-FA, F/A-52, F/A-36, MQ-21)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest