commit 221c2161764d0b0cf3faecdf1aca9fbb92db0174 Author: weyne Date: Wed Jul 15 15:07:52 2026 +0000 Dateien nach "/" hochladen diff --git a/DCS-Lua.code-workspace b/DCS-Lua.code-workspace new file mode 100644 index 0000000..dd9f39c --- /dev/null +++ b/DCS-Lua.code-workspace @@ -0,0 +1,22 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "sumneko.lua", + "Lua.runtime.version": "Lua 5.1", + "Lua.diagnostics.globals": ["mission", "env", "trigger", "world", "do_script"], + "Lua.workspace.checkThirdParty": false, + "Lua.format.defaultConfig": { + "indent_style": "space", + "indent_size": 2 + }, + "files.exclude": { + "**/.git": true, + "**/.DS_Store": true + } + } +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..ebcd1f8 --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# DCS + +**Soundfiles** for created Missions with Moose in **/MOOSE_SOUND** + +**Example Missions** that helps with creating scripted missions in **/MOOSE_MISSIONS** + +**MIST, Moose, CTLD, aso.** are in the **/Scripts** folder + + +# DCS Lua Usage + +## Open the workspace + +Open `DCS-Lua.code-workspace` in VS Code to load the Lua settings and recommended extensions. + +## Script placement + +- Use `scripts/` for your editable Lua source files. +- Copy the final Lua files into your DCS mission or export folder as needed. + +## DCS script tips + +- DCS mission scripts typically use `world.addEventHandler` and `env.info`. +- Use `Lua.runtime.version = "Lua 5.1"` compatibility settings for DCS. +- Declare DCS globals in VS Code settings to reduce false diagnostics. + +## Example workflow + +1. Edit `scripts/hello_dcs.lua`. +2. Save changes and verify syntax highlighting in VS Code. +3. Export or copy the script to your DCS mission folder. +4. Test in DCS World and watch the `dcs.log` output. \ No newline at end of file