Skip to content

A tool to manage Airbases dynamic aircraft spawning and aircraft dynamic templates in DCS World missions"

License

Notifications You must be signed in to change notification settings

sevenfifty777/DCS-Dynamic-Spawn-Template-Manager

Repository files navigation

DCS Dynamic Spawn and Template Manager

Note: You need the moose.lua and airbases_map.lua files (should be included with this tool) for the CSV generation to work.

⚠️ Prerequisites Before Using the Tool

⚠️ CRITICAL WARNING:

ALWAYS KEEP A BACKUP COPY OF YOUR ORIGINAL MISSION FILE!

New miz file should be created from your original mission BUT just in case something goes wrong keep a copy of the original miz file

This tool will overwrite all existing airbase settings in your mission. Any previous airbase configurations, coalition assignments, or spawn settings will be permanently lost if you don't have a backup.

Before proceeding:

  1. Make a copy of your original .miz file
  2. Store it in a safe location
  3. Never work directly on your only copy

If something goes wrong, you can always restart from your backup copy.

IMPORTANT: Before using this tool, you must prepare your mission properly:

Aircraft Group Naming Requirements

  1. Open your mission in DCS Mission Editor

  2. Create aircraft groups with skill set to "Player" and check "Dyn.SPAWN Template" option

  3. Rename these groups to end with _DynTemp

    • βœ… Good examples:
      • F-16C_Squadron_DynTemp
      • A-10C_CAS_DynTemp
      • F/A-18C_Strike_DynTemp
    • ❌ Bad examples:
      • F-16C Squadron (missing _DynTemp)
      • Player_Aircraft (missing _DynTemp)
  4. Save your mission after renaming the groups

Why this is needed: The tool looks specifically for aircraft groups ending in _DynTemp to create dynamic templates. Without this naming, the tool won't find any templates to work with.

πŸš€ Quick Start Guide*A simple tool to manage dynamic aircraft spawning in DCS World missions**

πŸ“‹ What This Tool Does

This tool helps you set up dynamic aircraft spawning in your DCS World missions. You will be able to configure each airbase with all different option and assign Dynamic Template for aircraft

Tool Interface Preview

DCS Dynamic Template Manager GUI

The tool features a modern dark interface with two-step configuration process

πŸ“¦ What You Need

  1. The executable files (you should have received these):

    • DynamicSpawnTemplateManager.exe - The main program
    • aircraft_inventory.lua - Required data file
  2. Your DCS mission files:

    • A .miz mission file you want to modify
    • A CSV file with airbase information (usually named something like AirbasesList_[MapName].csv)

πŸ—ΊοΈ Available Maps with Pre-generated CSV Files

This repository includes pre-generated airbase CSV files for the following DCS maps:

Map Name CSV File Location
Afghanistan AirbasesList_Afghanistan.csv Airbases List Files/
Caucasus AirbasesList_Caucasus.csv Airbases List Files/
Falklands AirbasesList_Falklands.csv Airbases List Files/
Germany Cold War AirbasesList_GermanyCW.csv Airbases List Files/
Iraq AirbasesList_Iraq.csv Airbases List Files/
Kola AirbasesList_Kola.csv Airbases List Files/
Mariana Islands AirbasesList_MarianaIslands.csv Airbases List Files/
Mariana Islands WWII AirbasesList_MarianaIslandsWWII.csv Airbases List Files/
Nevada AirbasesList_Nevada.csv Airbases List Files/
Normandy AirbasesList_Normandy.csv Airbases List Files/
Persian Gulf AirbasesList_PersianGulf.csv Airbases List Files/
Sinai AirbasesList_SinaiMap.csv Airbases List Files/
Syria AirbasesList_Syria.csv Airbases List Files/
The Channel AirbasesList_TheChannel.csv Airbases List Files/

You can use these CSV files directly - no need to generate them yourself! Simply select the appropriate CSV file for your map when using the tool.

πŸ“– View complete airbase list with IDs for all maps

οΏ½ How to Generate the Airbase CSV File (For Other Maps) or after Maps updates or if you need to add SHIP/FARP into the list

If you need a CSV file for a map not listed above, you can generate it yourself:

  1. Create a new empty mission in DCS Mission Editor with your desired map except if you want to add SHIP/FARP use the mission you want to update
  2. Add triggers:
    • Create a new trigger with MISSIONSTART event
    • Add action: DO SCRIPT FILE β†’ Select moose.lua file
    • Add another action: DO SCRIPT FILE β†’ Select airbases_map.lua file
  3. Save and launch the mission in DCS World
  4. Wait a few seconds - the mission will generate the CSV file automatically
  5. Find the CSV file at: C:\Users\[YourUsername]\Saved Games\DCS\Logs\
    • Look for a file named like AirbasesList_[MapName].csv

Note: You need the moose.lua and airbases_map.lua files (should be included with this tool) for the CSV generation to work.

οΏ½πŸš€ Quick Start Guide

Step 1: Prepare Your Files

  1. Create a folder somewhere on your computer (e.g., C:\DCS_Templates\)
  2. Copy these files to that folder:
    • DynamicSpawnTemplateManager.exe
    • aircraft_inventory.lua
    • Your .miz mission file
    • Your airbases CSV file

Step 2: Launch the Program

  1. Double-click on DynamicSpawnTemplateManager.exe
  2. The program window will open with a modern dark interface

Step 3: Configure Dynamic Spawning (STEP 1)

The program works in 2 steps. First, you'll configure which airbases can spawn aircraft with all Dynamic spawn option:

  1. Click "πŸ“ Load Airbases CSV"

    • Select your CSV file corresponding to the mission map (e.g., AirbasesList_Caucasus.csv)
  2. Click "πŸ“¦ Load MIZ File"

    • Select your .miz mission file
    • The airbases will appear in the right panel
  3. Configure each airbase:

    • Select checkbox: Check airbases where you want dynamic spawning
    • Coalition: Choose BLUE, RED, or NEUTRAL for each airbase
    • DynSpawn: βœ… Check this to enable dynamic spawning
    • HotStart: βœ… Check if you want aircraft to start with engines running
    • DynCargo: βœ… Check for dynamic cargo operations
    • ∞Munitions: βœ… Usually leave checked (unlimited weapons)
    • ∞Aircraft: βœ… Usually leave checked (unlimited aircraft)
    • ∞Fuel: βœ… Usually leave checked (unlimited fuel)
  4. Click "βœ“ Apply Options & Save"

    • This saves a new file: [YourMission]_Step1_Options.miz
    • Choose YES when asked if you want to continue to Step 2

Step 4: Link Aircraft Templates (STEP 2)

Now you'll choose which aircraft types can will be used as a Dynamic Template at each airbase:

  1. The program will reload and show available aircraft templates

  2. For each airbase and aircraft type:

    • Template dropdown: Select which template to use (or "None (Disabled)" to skip)
    • ∞ checkbox: Check for unlimited aircraft spawning
    • Amount field: Enter the initial number of aircraft (e.g., 50, 100, 200)
  3. Use "Select All" row (optional):

    • ∞ master checkbox: Check/uncheck unlimited for all airbases of that aircraft type
    • Amount master field: Enter a number to set the same amount for all airbases of that aircraft type
  4. Click "Apply Templates & Save Final"

    • This creates your final mission: [YourMission]_Final.miz

Notes: If you stop the process before generationg the final mission, clean all temp folders and files created if any, before any retry

Step 5: Use Your Mission

  1. Load the final mission ([YourMission]_Final.miz) in DCS World
  2. Enjoy dynamic aircraft spawning during your mission!

πŸ“š Detailed Explanations

Coalition Colors

  • πŸ”΅ BLUE: NATO/Allied forces
  • πŸ”΄ RED: OPFOR/Enemy forces
  • βšͺ NEUTRAL: Civilian or neutral forces

Template Options Explained

Option What it does
Template Which aircraft group to use as a spawn template
∞ (Unlimited) If checked: Aircraft keep spawning indefinitely. If unchecked: Limited to initial amount
Amount How many aircraft are initially available at this airbase (e.g., 50, 100, 200)
Select All ∞ Master checkbox to set unlimited on/off for all airbases of this aircraft type
Select All Amount Master field to set the same initial amount for all airbases of this aircraft type

DynSpawn Options Explained

Option What it does
DynSpawn Enables dynamic aircraft spawning at this airbase
HotStart Aircraft spawn with engines already running (ready to takeoff)
DynCargo Enables dynamic cargo/transport operations
∞Munitions Unlimited weapons (aircraft won't run out of ammo)
∞Aircraft Unlimited aircraft (new ones keep spawning)
∞Fuel Unlimited fuel (aircraft won't need to refuel)

πŸ”§ Troubleshooting

Program Won't Start

  • Check: Make sure aircraft_inventory.lua is in the same folder as the .exe
  • Try: Right-click the .exe β†’ "Run as administrator"

"No CSV file selected" Error

  • Check: Make sure you're selecting a .csv file, not a .txt or other file
  • Try: Look for files named like AirbasesList_[MapName].csv

"Failed to load MIZ file" Error

  • Check: Make sure you're selecting a .miz file from DCS World
  • Check: The .miz file isn't corrupted or locked by another program

No Templates Found

  • Cause: Your mission doesn't have any aircraft groups with names ending in _DynTemp
  • Solution: In DCS Mission Editor, rename your aircraft groups to end with _DynTemp (e.g., F-16C_Squadron_DynTemp)

Step 2 Shows No Airbases

  • Cause: No airbases were configured with DynSpawn enabled in Step 1
  • Solution: Go back to Step 1 and make sure to check the "DynSpawn" option for airbases you want

πŸ“ File Organization

After using the tool, you'll have these files:

Your Folder/
β”œβ”€β”€ DynamicSpawnTemplateManager.exe    (The program)
β”œβ”€β”€ aircraft_inventory.lua             (Required data)
β”œβ”€β”€ YourMission.miz                    (Original mission)
β”œβ”€β”€ YourMission_Step1_Options.miz      (After Step 1 - can be deleted if not done automatically)
└── YourMission_Final.miz              (Final mission - use this one!)

βœ… Tips for Success

  1. Start simple: Try with just 2-3 airbases first to learn how it works
  2. Backup originals: Keep a copy of your original .miz file
  3. Test in DCS: Always test your final mission in DCS World
  4. Naming matters: Aircraft groups must end with _DynTemp in the Mission Editor
  5. One Template per aircraft per base: multiple template can be created for same aircraft but only one assign to each airbase

πŸ“ž Need Help?

If you're still having trouble:

  1. Check your aircraft naming: Groups must end with _DynTemp
  2. Try a different mission: Some missions may have complex structures
  3. Start fresh: Close the program, clean all temp files and folder that could have been created, delete previous final version if you want to start over and start over with Step 1

A la chasse!!!

About

A tool to manage Airbases dynamic aircraft spawning and aircraft dynamic templates in DCS World missions"

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors