r/IL2Series • • 1d ago

I'm developing a multiplayer campaign generator for Il-2 Series - CDG

Hi all, I'm Luftmanu, founder of the Paralelo 38 PVE server, and I've been running IL-2 campaigns and events for a while. This post is about a tool I've been building for months and I'm finally happy enough to show. It's called CDG.

First, how it was made
I used Claude to help write the code. The design, the editing, the mission templates, the research and every decision about how a campaign should feel are mine. I'd rather say that up front.
AI helps a lot in speeding up processes and as I'm used to editing the mission files, this helped me a lot into creating some formulas to help with the decissionEngine the campaign generator has.

The idea
Most campaigns are a list of missions. You finish one, you open the next, and nothing really changes. I wanted the opposite: a campaign that remembers what you did, keeps going when you're not looking, and never hands you the same sortie twice. CDG wraps IL-2: Korea in that kind of campaign.

Il-2 series comes with a greatly improved career mode from Great Battles, but sadly you cannot play with your friends. I have developed a tool to port them to MP but.. it's not the same.

So here we have an external "WARGAME" simualtion within Il-2, which is IMO the best recepit for this to work.

1. The war doesn't wait for you
You import your missionReport logs, and CDG keeps track of pilots, kills, losses and sorties. Kills and losses go to the right squadron, so what you do in the sim actually dents the order of battle.

Every campaign day the allied and enemy air forces also fight each other off-screen, whether you flew or not. Bomber wings go out, interceptors meet them, squadrons bleed aircraft and get replacements. It's resolved with dice, so it has the chaos of a real air war instead of a script. You can skip a day and the war goes on without you.

It also feeds back into your flying. If your squadron is down to a few airframes, the base in your next multiplayer mission starts with that many aircraft, not a fixed number.

The weighting also takes into account the settings the editor has prepared to make it historical or not.

For example, if there is bad weather, there is less chance of a combat.

The app also documents how campaigns can be made, so you can make your own. In detail!

2. Missions that are never the same twice
You give CDG a set of mission templates. For each sortie it chooses one with weighted randomness, based on how the campaign is going (how hard-pressed you are, how strong the enemy is, where the last raids hit), and then it rewrites the mission before it lands in your game folder.

Is this just templates? Nope! It has templates, variation within the templates and then groups from the different squadrons.

So the app weights all the conditions and chooses the different templates, applies weather and the DecisionEngine uses the groups like pawns.

The Campaigns can also have up to 5 phases, this enables us to change templates, maps, update frontlines.

Patrols change altitudes and even planes have different numbers. The devil is in the details!
PS: Yes, each squadron has a finite number of planes.

There is also maintenance and accidents. Squadrons have a ratio of accidents that has been configured and can be changed with each phase of the campaign.

3. Weather that behaves like weather
This is the part I enjoyed most. Nothing is picked "at random from a list". Each piece follows the others:

  • Clouds: there are four cloud sets, from light to full overcast, each with several variants. Good weather is common and bad weather is rare for Korea in winter, like in real life, and the odds are adjustable.

  • Wind: in this campaign never more than 6 m/s, and mostly 2 m/s or less. Direction and speed change with altitude, from the ground up to the cruise layers, with a prevailing direction that drifts a little.

  • Sea state: it follows the surface wind. Calm air, calm sea.

  • Turbulence: it grows with the wind and with the cloud set. A heavy overcast day bumps harder than a clear one.

  • Temperature: it follows the month. January is far colder than March. It also follows the hour, warming up towards mid-afternoon.

  • Pressure: it depends on the month and on the weather. Bad weather drops it.

The briefing mentions only what a pilot would be told, so the weather you read is the weather you fly in.

4. A sky that is never empty, or never full
Like I was explainig before I build groups in the mission editor: friendly patrols, enemy patrols, transport flights, ground columns. CDG pastes a random mix into each mission, and some of them are the enemy.

When it pastes them, it also:

  • renumbers every object so nothing collides with the mission, and checks the file afterwards

  • randomizes the altitudes of the patrol waypoints

  • gives every aircraft its own code, never repeated within a flight

  • only uses squadrons that are active on that date and still have aircraft

You might fly a quiet patrol and see nothing but contrails. The next sortie there could be four enemy flights waiting. The briefing never says which, and I like it that way.

There is also a custom map showing where the action is. It uses a custom grid to also give AI weighting into which attacks or where it focuses with patrols

5. Exportable briefings to share with friends
Briefings are written like typed orders from the era, with date, hour, objective, altitude, weather and the squadron emblem. Every campaign can have its own emblem and its own look.

Saves are easy to move files which contains everything. Also for debugging, backup or anything you want.

6. Real stakes
Victory and defeat conditions are part of each campaign: shoot down enough bombers, hold out to the end of the campaign, keep the squadron alive, protect what you're defending. Lose that and the campaign is over.

The conditions are made more like a Wargame. This is not a team deatmach, it follows some guidelines that the "Campaign master" writes.

Some objectives can be made "viewable" in progress. Like for example, protect the infraestructure until the 31th of March

7. Built to be modded
Everything lives in a readable campaign.json: units, aircraft types, mission weights, weather, briefings, emblems, victory conditions. You can change my campaign or build your own. It works for both singleplayer and multiplayer.

8. Play in MP and SP on the same campaign

No friends for day? Keep the war going! Stats are saved.

9. Sharing saves

Wanna share the status after a mission? Easy to share the save files with the squadron members.

The first campaign: Guardians of the Yalu
January to March 1952. You're the 16th IAP PVO at Antung, on the Chinese side of the river. The B-29 Superfortresses come in with F-86, F-80 and F-84 escorts to hit the Yalu bridges and the hydroelectric plants. Your job is to make them pay for every raid, and to still be flying when March ends.

What's next
I plan to add support for PVP campaigns between squadrons. It isn't done yet, but it's the next big thing on my list. In this case, only the host can generate missions but saves can be shared with intel for each side, protected.

The ponderation will run with player actions on top of AI.

It's free, it runs on Windows, and the interface is in Spanish for now. Full version will feature English and will be launched in early 2027.

Forum post: https://forum.il2-series.com/topic/6014-il-2-series-cdg-dynamic-campaign-engine-kinda/

15 Upvotes

1 comment sorted by

4

u/Pleasant-Link-52 1d ago

This is exactly what I've been wanting to ask the devs for because it at least partially solves the CPU limitations of running a campaign locally by offloading some of the load to the server.

Great stuff! Wish we had it for Great Battles as well though.