Skip to content

5.6 Quick Battle Generator (QBG)

The Quick Battle Generator offers a third way to get into a fight, alongside standalone scenarios and campaigns: a simple, templated "pick your forces and go" engagement, without the setup overhead of a full scenario. Access it from Quick Battle on the start menu.

5.6.1 Playing a Quick Battle

Selecting Quick Battle presents a list of available battle templates. Pick one, and its own form appears -- typically letting you choose things like which aircraft (and how many) you and your opponent are flying, their loadouts, and sometimes the engagement location or altitude. Exactly what's configurable depends entirely on the specific template's author -- some offer only a couple of aircraft choices, others expose much more. Set the options as desired and click Start to generate and launch the resulting scenario immediately.

Because a QBG template is really just a lightweight scenario generator, quality and scope vary a lot between templates -- a simple one might only spawn two flights of aircraft with no supporting infrastructure, while a more developed one (there are community templates built around specific historical air campaigns, for instance) can include airbases, SAM networks, escort options, and other detail. If a template feels thin on content, that's a property of that specific template, not a limitation of the QBG system itself.

5.6.2 Creating a Custom Quick Battle

Every QBG template lives in its own subfolder under \Command - Modern Operations\QuickBattle\, and consists of exactly two files:

  • Form.html -- the front-end form the player actually sees and fills out (title, description, unit/loadout dropdowns, any other exposed options).
  • Script.lua -- takes the values submitted from the form and uses them to actually build the resulting scenario (spawning the chosen units with the chosen loadouts at the chosen location, etc.).

The easiest way to build a new template is to copy an existing template's folder, rename it, and edit the two files -- editing raw HTML and Lua directly, ideally in a plain-text-aware editor (Notepad++ or VS Code, not Word or WordPad, which can corrupt the file with hidden formatting). At minimum, customizing a copied template typically means:

  • Updating the title, description, and header image in Form.html.
  • Editing the aircraft/loadout <option> entries in the dropdown lists, each specified as a DBID_LoadoutID pair (both values obtainable from the Database Viewer -- see 5.9.3.4 Database Viewer).
  • Changing the engagement's location by editing the latitude/longitude passed to the reference-point-creation call in Script.lua.

The form can only pass through whatever fields it actually contains -- it cannot query the game database live, so every option a player can choose (aircraft types, loadouts, locations, etc.) has to be explicitly built into the form ahead of time by the template's author. As of v1.02, a QBG template can also specify which database (DB3000 or CWDB) it should use, via a hidden HTML form element -- letting a template built around, say, a 1960s scenario correctly default to the CWDB instead of the modern DB3000.

Building a genuinely full-featured QBG template (with escort options, airbases affecting range/loiter, hidden SAM sites, etc., as some community-made templates do) requires real comfort with both HTML and Lua -- see 8.3 Lua for the general scripting introduction most of those techniques build on.

5.6.3 Sharing Quick Battle Templates

A completed QBG template can be shared with other players simply by zipping its subfolder and distributing the archive; the recipient extracts it into their own QuickBattle folder and the new template appears in their in-game list automatically.