What's in the package:
The new MissionGen program, a new MissionGen.ini file, and a MissGen.txt for the stock game.  

The zip files are set up to properly place all of the files.
MissionGen.exe and MissionGen.ini go in the campaign folder
MissGen.txt goes in simpatch

Intro:
While it may look the same from the outside, this ain't yo mamas MissionGen.  It is, in fact, a complete top to bottom rewrite.  This rewrite was necessary because the existing code structure would not support the new ideas.  The new code, besides doing more, is much neater and more maintainable.  This amounts to short term instability but long term maintainability and flexibility.

Installation:
Unzip the contents of the zip file into your RedBaron3d folder.
MissionGen.exe and MissionGen.ini will beplaced in your campaign folder

If you are using stock or HA, MissGen.txt will be placed in your simpatch folder

If you are using WFP, MissGen.txt will be placed in all of the appropriate WFP date directories.  It also puts the data files into the CM11\date folders so you don't have to reinstall WFP.  Finally it puts the 150801\MissGen.txt into the simpatch just to get one in there.  

How To Use:
1. Create mission in RB by entering campaign and pressing "Next Mission"
2. DO NOT EDIT THE MISSION IN RB!!!
3. exit RB
4. Run MissionGen.
5. Open the mission file by pressing "Open" and selecting the file.
6. Press "Massage" to alter the mission file data.
7. Press "Write" to write the altered data back to the mission file.
8. Restart RB. Now you can edit the mission in RB and/or fly it. 
9. As an option, you can press "Generate Report" to make a report of the mission.

Note: I have heard it said that going to the RB main menu and pressing alt-tab instead of completely exiting also works.  haven't tried it myself so I'm not sure.

Features:
1. Changes mission altitudes. This was the original intent. RB assigns altitudes from 6 - 9K feet. In reality planes were flying at 12K feet by late 1916 and 16K feet or more by late 1917. MissionGen sets mission altitudes to be appropriate for the plane, usually meaning higher altitudes for missions.

2. Changes in 2 seater missions. Currently all RB 2 seater missions are bombing missions. MissionGen uses other mission types that RB supports but for some reason does not use. After using MissionGen you will see recon missions, arty spotting missions, and attack missions (low level bombing) for 2 seaters. The latest version of MissionGen is even more sensitive to assignment of appropriate mission types to plane types.

3. Allied offensive patrols in German campaigns. RB NEVER assigns allied offensive patrols if the player is flying a German campaign. Besides being completely non-hostoric, it is also dull. MissionGen corrects this by changing some allied scout missions to offensive patrols and moving the waypoints over German lines. Now you are no longer safe behind your own lines as a German pilot. As you are molesting that fligt of 2 seaters that you caught behind your lines you will never know when a flight of allied scouts will make an appearance. IMHO this is one of the biggest game play enhancers in MissionGen.

4. Setting appropriate formation sizes: RB does not really change the formation size as the war goes on, which does not at all reflect reality. MissionGen takes care of that. Formation sizes start small in 1915 and grow to full squadron outings by 1918 (full squadron missions are the max allowed by RB). Now flying in major 1918 furballs will feel distinctly different from the lone hunting of 1915.

5. Setting appropriate level of scout activity: RB does not have the ability to account for the relatively small numbers of scouts in use at the front early in the war. MissionGen does this by eliminating some percentage of scout missions early in the war. As the war progresses scout missions are brought to full intensity. As a result scout encounters will be realistically less common in 1915 and very common by 1918.

6. JagdGeschewader missions.  MissionGen will now randomly combine missions from historically associated squadrons, resulting in missions tat may be two squadrons/jastas strong.

What's new:
Mission sizes change over time, from smaller early in the war to squadron size or larger later in the war.
Scout missions are randomly removed early in the war
There's more flexibility in 2 seater mission assignment
All of the other stuff is still there.

Data files explained:
MissionGen.ini:
Section 1:  Used to adjust scout mission sizes.  Also determines the odds that a scout mission will be removed.  Used to make scouts missions smaller and less prevalent early in the war.  The first four numbers are ratios for Germans, British, French, and Americans respectively.  This ratio is applied to the generated number of aircraft to reduce mission sizes early in the war.  Note how the French get a bit of an advantage early in terms of mission size but are later superceded by the Germans andthen the British.  The fifth parameter in each line is the odds that a scout mission will be deleted.  Again, the idea is to make scouts more rare early in the war.
The last set four numbers arethe odds that a mission will be combined with an associated squadron.  See section 5 on associated squadron.
Fields are Name/German/French/British/American/Scub Scout Mission/German/French/British/American

Section 2: An expanded version of the old two seater odds.  Makes for better control of mission assignment to various planes.  
Fields are Name/Recon odds/Spot odds/Bomb odds (or attack for Schlastas)
0: Scout: Full altitude range is used
1: Low Alt Scout: Full altitude range is used, but lower end of range is favored
2: High Alt Scout: Full altitude range is used, but higher end of range is favored
3: Bomber:  Much bombing, little recon, no spotting 
4: Recon:  Much recon, some arty spotting, very little bombing 
5: BomberRecon:  Moderate bombing, some recon, very little spotting 
6: ReconBomber:  Moderate + recon, some spotting, some bombing 
7: Pure attack:  Attack missions, some spotting (currently used for Junkers J1 only) 
8: Schlasta:  Lots of attack, some spotting, some recon 

Section 3: Mission altitude and size minimums and maximums.  The altitude min/max parameters are the same as the old missiongen.  Added are aircraft minimum and maximum per mission.  To determine mission size a random number between themin and max is generated.  If it is a scout mission the ratio (Section 2) is then applied to this result for a final determination of how many planes will be in the flight.

Section 4: Odds of converting to an offensive patrol.  Unchanged from previous version, just moved to ini file.  The purpose of this field is to add Allied offensive patrols to German campaigns.

Section 5: Combining associated squadrons.  This section lists associated squadrons.  The first parameter after the comment is the number of groups in the file.  After that each line contains a set of associated parameters.  The first item in each of these lines is the number of associated squadrons (4 maximum).  The second line is the nation.  After that comes the squadron IDs (decimal,as listed in squadron.dat) of the associated squadrons.

MissGen.txt
Only 1 section.  Mostly unchanged but one new parameter added to describe the plane type (third parameter).  Gives me a bit more ability to fine tune algorithms.  Plane types are as described in section 3.

