Utility script for DCS World mission making (download).
This project aims to enable DCS World mission makers to easily set up dynamic battle scenarios by using zones. AI units of a task force will automatically move to capture target zones, advance through captured zones and be reinforced when taking casualties.
Download the latest gws release zip and unzip it
Add some trigger zones to your mission, these can act as "bases" or "objectives"
Put some AI units in your bases
Create a new script (a ".lua" file) for your mission
-- (example mission script)
-- BLUE UNITS
gws_Setup:new()
:addBaseZone("BLUE_BASE")
:addControlZone("OBJECTIVE_WEST")
:addControlZone("OBJECTIVE_EAST")
-- RED UNITS
gws_Setup:new()
:addBaseZone("RED_BASE")
:addControlZone("OBJECTIVE_EAST")
:addControlZone("OBJECTIVE_WEST")
Create a mission start trigger in the mission editor
Add two "DO SCRIPT FILE" actions to the trigger, one to load the gws script (first) and another to load your mission script
The mission is ready to start. Following the example here, the red and blue units will battle in the objective zones. Dead groups will respawn in the base zones.
Please note: If you want to change your mission script later, you need to reload it into your mission by clicking "open" in the do script file action and select it again.
See issue list
This project can be imported into LuaDevelopmentTools. It should automatically execute the compilation script whenever you save a change to the source files.
If you prefer not to use LuaDevelopmentTools, follow these steps to compile the source files:
cmd.exe
)cd C:\MyLuaProjects\dcs-gws
)batch/make.cmd
Once the source files have been compiled, you should see a build
and a build-test
folder in the project.
During compilation, the source files are merged to a single script. In addition, a "load experiment" script is also generated. Load this script into your mission:
dofile("C:\\MyLuaProjects\\dcs-gws\\build-test\\load-experiment.lua")
tests\experiment.lua
script but ignore that for now)Now you can minimize DCS World, edit the source files (located in the gws
folder), and do some experiments/testing with the tests\experiment.lua
file. Once the code with your experiment is ready for another test, re-compile it (happens automatically when saving in LuaDevelopmentTools, or see the steps above) and restart the mission (press SHIFT+R).
If you want to make a pull request, please use the same commit message and code style as the rest of the project. Please refer to the issue that the commit is regarding.