Jump to content

Recommended Posts

Posted (edited)

Single Mission Proxy (experimental)

A wrapper for the single mission generator of Strike Fighters 2 version July 2013
- Fix bugged UserList handling, so that these lists are actually used
- Configure nation specific flight placement on airfields, same for parked aircraft
- navalmap=true: Configure carrier/amphibious/surface-action groups and composition
- navalmap=true: Configure chance for classic missions instead of always naval strike
- navalmap=true: Extra checks to keep ships in the sea and not on land
- Optionally configure this inside a terrain's _nations.ini file, as to tune these things according to the environment

Download it from the Strike Fighters section on this website:

https://gb-homepage.nl/


I want to attach some image to showcase it. But I cannot really show the effect in a screenshot. 
In the example: All userlist aircraft that failed to appear now appear. Iraqi aircraft have their home bases in Iraq. Iranian aircraft have them in Iran. US Navy does not use land bases here. etc. The US Navy fleets have less escorts, as to not dominate the area with SAM launches. 

This can all be configured globally or per terrain. At the shipped default settings nothing changes.

A text log is written when the proxy is called, and it describes in there what was changed and the resulting flight compositions.

Easy to install and try, But still somewhat experimental. SF2 July 2013 game only.

img00001.JPG

Edited by gerwin
  • Like 4
  • Thanks 5
Posted

bug report:

When using U.S. Navy carrier-based aircraft to perform strike missions, targets and flight paths fail to generate correctly.

img00105.thumb.JPG.40eea95a308810fe5e0a08b903bcfaf1.JPG

the log:

SingleMission proxy v31
original loaded at 0x5E290000
Pattern check:
  nearest-airfield: matches=1 rva=0x00038CF0  OK
  assign-airfield : matches=1 rva=0x00025580  OK
  flight-setup    : matches=1 rva=0x00032C90  OK
  nations-ini-close: matches=1 rva=0x0004911E  OK
  pool-add        : matches=1 rva=0x000646A0  OK
  pool-pick       : matches=1 rva=0x000242F0  OK
Build recognised: July 2013
DLL folder: D:\SF2\Flight\
Current folder: H:\SF2\Menu
  try D:\SF2\Flight\Flight\SingleMission_proxy.ini  no
  try D:\SF2\Flight\SingleMission_proxy.ini  FOUND
Ini read: 2738 bytes
Options (SingleMission_proxy.ini): UserListAllSections=1 Candidates=0 FlightAirfieldByNation=1 RehomeFollowTargetArea=1 RehomeKeepOffMap=1 RehomeMaxKm=1 PairRetries=8 StartRetries=8 Compact=1 Verbose=1
NavalBias (proxy ini default): Strike=20 SEAD=20 Intercept=50 Ambient=20  (terrain Nations ini [NavalBias] overrides per key)
Nations hook installed at rva 0x0004911E
assign-airfield hook installed
nearest-airfield hook installed
pool-add hook installed
pool-pick hook installed
UserList check fix installed (all sections are examined)
  pair-pick (FUN_1003bc40): matches=1 rva=0x0003BC40
pair-pick hook installed (PairRetries)
  start-pick (FUN_10001ba0): matches=1 rva=0x00001BA0; (FUN_1003d450): matches=1 rva=0x0003D450
start-pick hooks installed (StartRetries)
  start-pick for object targets (FUN_10038240): matches=1 rva=0x00038240
object-target start hook installed (StartRetries)
  generation-end (FUN_100316c0): matches=1 rva=0x000316C0
mission table hook installed (Compact=1)
NavalBias Strike gate installed at rva 0x00010AD9: chance 20%
NavalBias SEAD gate installed at rva 0x0001104E: chance 20%
NavalBias Intercept gate installed at rva 0x0000E70F: chance 50%
NavalBias Ambient gate installed at rva 0x0000EE4B: chance 20%
Fleet: group builder anchor matches=1 rva=0x0000F950
Fleet: builder at rva 0x0000F950, sites verified
Fleet: Amphibious/Surface Action chance hook installed
Fleet: ship count / start position hook installed
Fleet: first-waypoint hook installed
Generating Mission No.1 --------------------------------------------------------------------------------------
route diagnostics hook installed (ROUTE lines)
calling original InitDLL
Nations ini closing
  Location1: Qatar=139 USAF=2 USMC=4 USA=233
  Location2: Bahrain=138 USAF=2 USMC=4 USA=233
  Location3: SaudiArabia=50 USAF=2 USMC=4 USA=233
  Location4: UAE=140 USAF=2 USMC=4 USA=233
  Location5: Oman=71 USAF=2 USMC=4 USA=233
  Location6: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location7: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location8: Iran=33 IranianNavy=236
Location filter ACTIVE
Nations ini closing
  Location1: Qatar=139 USAF=2 USMC=4 USA=233
  Location2: Bahrain=138 USAF=2 USMC=4 USA=233
  Location3: SaudiArabia=50 USAF=2 USMC=4 USA=233
  Location4: UAE=140 USAF=2 USMC=4 USA=233
  Location5: Oman=71 USAF=2 USMC=4 USA=233
  Location6: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location7: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location8: Iran=33 IranianNavy=236
Location filter ACTIVE
Nations ini closing
  Location1: Qatar=139 USAF=2 USMC=4 USA=233
  Location2: Bahrain=138 USAF=2 USMC=4 USA=233
  Location3: SaudiArabia=50 USAF=2 USMC=4 USA=233
  Location4: UAE=140 USAF=2 USMC=4 USA=233
  Location5: Oman=71 USAF=2 USMC=4 USA=233
  Location6: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location7: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location8: Iran=33 IranianNavy=236
Location filter ACTIVE
Nations ini closing
  Location1: Qatar=139 USAF=2 USMC=4 USA=233
  Location2: Bahrain=138 USAF=2 USMC=4 USA=233
  Location3: SaudiArabia=50 USAF=2 USMC=4 USA=233
  Location4: UAE=140 USAF=2 USMC=4 USA=233
  Location5: Oman=71 USAF=2 USMC=4 USA=233
  Location6: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location7: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location8: Iran=33 IranianNavy=236
Location filter ACTIVE
Nations ini closing
  Location1: Qatar=139 USAF=2 USMC=4 USA=233
  Location2: Bahrain=138 USAF=2 USMC=4 USA=233
  Location3: SaudiArabia=50 USAF=2 USMC=4 USA=233
  Location4: UAE=140 USAF=2 USMC=4 USA=233
  Location5: Oman=71 USAF=2 USMC=4 USA=233
  Location6: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location7: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location8: Iran=33 IranianNavy=236
Location filter ACTIVE
POOL Sheikh Isa AB (Loc 2) kept 59 dropped 7 -> type 602 nation USN
POOL Sheikh Isa AB (Loc 2) kept 20 dropped 8 -> type 95 nation USAF
POOL Doha International Airport (Loc 1) kept 58 dropped 8 -> type 1193 nation USAF
POOL Doha International Airport (Loc 1) kept 20 dropped 8 -> type 94 nation USAF
POOL Al Dhafra Air Base (Loc 4) kept 59 dropped 7 -> type 509 nation USAF
POOL Al Dhafra Air Base (Loc 4) kept 26 dropped 9 -> type 168 nation USAF
POOL Bahrain International (Loc 2) kept 59 dropped 7 -> type 319 nation USAF
POOL Bahrain International (Loc 2) kept 20 dropped 8 -> type 172 nation USAF
Nations ini closing
  Location1: Qatar=139 USAF=2 USMC=4 USA=233
  Location2: Bahrain=138 USAF=2 USMC=4 USA=233
  Location3: SaudiArabia=50 USAF=2 USMC=4 USA=233
  Location4: UAE=140 USAF=2 USMC=4 USA=233
  Location5: Oman=71 USAF=2 USMC=4 USA=233
  Location6: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location7: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location8: Iran=33 IranianNavy=236
Location filter ACTIVE
Nations ini closing
  Location1: Qatar=139 USAF=2 USMC=4 USA=233
  Location2: Bahrain=138 USAF=2 USMC=4 USA=233
  Location3: SaudiArabia=50 USAF=2 USMC=4 USA=233
  Location4: UAE=140 USAF=2 USMC=4 USA=233
  Location5: Oman=71 USAF=2 USMC=4 USA=233
  Location6: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location7: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location8: Iran=33 IranianNavy=236
Location filter ACTIVE
POOL Abu Musa Island Airfield (Loc 😎 kept 3 dropped 0 -> type 1271 nation USA
POOL Abu Musa Island Airfield (Loc 😎 kept 2 dropped 0 -> type 116 nation SOVIET
POOL Sir Bani Yas Island Airport (Loc 4) kept 13 dropped 1 -> type 124 nation USMC
POOL Qeshm Airport (South) (Loc 😎 kept 3 dropped 0 -> type 106 nation Iran
POOL Qeshm Airport (South) (Loc 😎 kept 2 dropped 0 -> type 116 nation SOVIET
POOL Ras Sumayrah Airport (Loc 3) kept 61 dropped 5 -> type 510 nation USAF
POOL Ras Sumayrah Airport (Loc 3) kept 20 dropped 8 -> type 805 nation USMC
Nations ini closing
  Location1: Qatar=139 USAF=2 USMC=4 USA=233
  Location2: Bahrain=138 USAF=2 USMC=4 USA=233
  Location3: SaudiArabia=50 USAF=2 USMC=4 USA=233
  Location4: UAE=140 USAF=2 USMC=4 USA=233
  Location5: Oman=71 USAF=2 USMC=4 USA=233
  Location6: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location7: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location8: Iran=33 IranianNavy=236
Location filter ACTIVE
Nations ini closing
  Location1: Qatar=139 USAF=2 USMC=4 USA=233
  Location2: Bahrain=138 USAF=2 USMC=4 USA=233
  Location3: SaudiArabia=50 USAF=2 USMC=4 USA=233
  Location4: UAE=140 USAF=2 USMC=4 USA=233
  Location5: Oman=71 USAF=2 USMC=4 USA=233
  Location6: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location7: USN=3 USMC=4 RoyalNavy=7 FrenchNavy=10 IranianNavy=236
  Location8: Iran=33 IranianNavy=236
Location filter ACTIVE
(Mission No.1 was not completed)

Counters: nearest(airfield) calls=0 pool-add with filter ctx=501 without=8717 dropped=76 fallbacks=0 rehomed=0 (no allowed airfield: 0, too far: 0, off-map kept: 0, target area moved: 0) assign calls from mission loader=0
Pair counters: mission-flight draws judged=0 inconsistent=0 fixed by redraw=0 gave up (first draw kept)=0 extra draws=0 off-map starts not judged=0
Start counters: start-airfield draws judged=0 inconsistent=0 fixed by redraw=0 (of which object-target starts=0) gave up (first draw kept)=0 extra draws=0  | mission tables printed=0
Fleet counters: Amphibious vetoed=0 SurfaceAction vetoed=0 groups with fewer ships=0 start offset changed=0 start moved off land=0 (placed on anchor: 0) first waypoint changed=0
ExitDLL done
 

the set:

[Fixes]
UserListAllSections=1     // 1 = check ALL sections of an aircraft's _UserList.ini (game: first section only)
FlightAirfieldByNation=1  // 1 = move a flight to the nearest base whose Location lists its nation (needs [LocationNationList])
RehomeFollowTargetArea=1  // 1 = the target area moves along when it was the flight's start base
RehomeKeepOffMap=1       // 1 = flights at off-map bases are never moved and never judged
RehomeMaxKm=1            // > 0 = move a flight only when the new base is at most this many map-km away. 0 = no limit
PairRetries=8             // N > 0 = redraw the aircraft+base pair of mission flights up to N times until the nation fits. Suggested: 8
StartRetries=8            // N > 0 = same for the start base of the player's flight and other fixed-aircraft flights. Suggested: 8

[NavalBias]
// Chance in %: 100 = original game, 0 = never
StrikeChance=20          // Strike missions get the enemy fleet as target
SEADChance=20            // SEAD missions get it
InterceptChance=50       // a carrier-based player's Intercept becomes cruise-missile defence
AmbientChance=20         // the opposing side's cruise-missile salvo against a carrier group
AmphibiousChance=50      // an Amphibious Group is created at all
SurfaceActionChance=90   // a Surface Action Group is created at all
// Escorts = destroyers and frigates of a group; 99 = no limit. MaxShips = total ships in a group; 99 = no limit.
AmphibMaxEscorts=99
SurfaceMaxEscorts=99
CarrierMaxEscorts=99
AmphibMaxShips=99
SurfaceMaxShips=99
CarrierMaxShips=99
// Placement (uses the terrain's water map)
StartOnWater=1            // 1 = a group start that is on land is moved to water
WaypointOnWater=1        // 1 = the first waypoint is tested against the water map (the game tests the start again)
WaterMarginKm=1           // water needed this many km N/E/S/W of the point (Gulf: 5). 0 = test the point only
GroupOffsetMinNM=30       // distance of Amphibious / Surface Action Groups from the fleet anchor: 30..50 nm = original
GroupOffsetMaxNM=50

[Log]
Compact=1                // 1 = one readable table per generated mission
Verbose=1                 // 1 = also write the detailed per-event lines (ASSIGN, ROUTE, REHOME, PAIR, START, POOL ...)
Candidates=0              // 1 = log every candidate aircraft type (very verbose)

  • Thanks 2
Posted
On 11/4/2026 at 9:09 AM, SUDNAVY said:

bug report

When using U.S. Navy carrier-based aircraft to perform strike missions, targets and flight paths fail to generate correctly.

 

Thanks for trying and reporting a bug. I came across the same thing past week.

A new version was uploaded, it will no longer have this issue. 

  • Like 1
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..