Skip to content

ME-mod v0.8.0

Choose a tag to compare

@nielsvaes nielsvaes released this 13 May 15:47

me-mod v0.8.0 — Prefab Manager folder browser + right-click context menus

Screenshot_41

Added

  • Prefab Manager folder browser. Real filesystem subfolders under
    \DCS\dcs-sms\prefabs. Two-pane layout — folder tree on
    the left (with its own search), prefab list on the right. New Folder
    button below the tree; right-click on a tree node → New subfolder /
    Rename / Delete / Open in Explorer. Saves write to the currently
    selected folder. Filter on the right is scoped to the selected folder
    • descendants (or all folders when "Show all" is clicked / nothing is
      selected).
  • Right-click context menu on prefab rows (closes #50). Move to… ·
    Copy file contents · Copy place snippet · Show in Explorer. Error
    rows expose only Show in Explorer.
  • Move-Prefab modal dialog: parent-window disabled while open, opens
    centred over the Prefab Manager, non-resizable, plain title.

Changed

  • prefab_ops.scan_dir now recurses; rows carry a new folder field.
  • prefab_ops.save_selection gains an optional folder argument (default "").
  • paths.lua gains folder_to_abs and ensure_prefab_folder helpers — the
    single seam between in-memory '/' and on-disk ''.
  • Prefab Manager minimum window size bumps from 540×460 → 760×460 to
    accommodate the tree pane.
  • "Search:" label renamed to "Search files:".
  • Reload / Undo last placement buttons moved to the right side, sharing
    a row with Rename / Delete. + New folder / Show all live in their own
    row below the tree.

Internal

  • New context_menu.lua module with lazy clipboard probe (Gui.setClipboard
    → dxgui.setClipboard → Input.setClipboard → cmd /c clip last resort).
  • New prefab_ops.move_prefab, rename_folder, delete_folder,
    count_folder_contents.
  • Path-traversal validator prefab_ops._validate_folder_path rejects ".",
    "..", backslash, reserved characters.
  • SMSWindow gains resizable / modal_parent / branded_title opts; default
    Window close X now routes through :hide() so modal_parent re-enable
    runs on every dismissal path.

Install

  1. Download dcs-sms.exe from this release.

  2. Double-click dcs-sms.exe. A small menu opens — pick 1 to install. (Prefer the command line? Run dcs-sms.exe install-me-mod from a terminal in the same folder — same result.)

    dcs-sms.exe interactive menu — DCS install path line plus four numbered options

    Either way, the .exe auto-detects your DCS install (or you can paste the path via menu option 4), copies the embedded ME-mod Lua files into <DCS install>/MissionEditor/modules/dcs_sms_me/, and patches MissionEditor.lua with a single bootstrap line bracketed by sentinel comments for clean removal.

  3. Restart DCS (a full restart, not just closing the Mission Editor — the lua files load once at DCS start). When you open the Mission Editor you should see DCS-SMS in the top menu bar.

Update

From an existing install, run:

dcs-sms.exe update
dcs-sms.exe install-me-mod

The first command pulls the new dcs-sms.exe from this release in place; the second re-applies the bundled ME-mod files. Idempotent — the patch line in MissionEditor.lua stays put, the Lua files get overwritten. After updating, fully quit DCS and start it again.

(dcs-sms.exe update requires you already have a dcs-sms.exe from a previous install. First-time users follow the Install steps above instead.)

Uninstall

dcs-sms.exe uninstall-me-mod

Removes the patch block from MissionEditor.lua and deletes the modules directory.

Alternative install (OVGME / no .exe)

If your browser blocks dcs-sms.exe as "unsigned" and you can't unblock it, an OVGME-friendly zip is also attached to this release: dcs-sms-me-mod-vX.Y.Z.zip.

  1. Download the zip and extract it.
  2. Drop the dcs-sms-me-mod folder into your OVGME mods directory; enable it in OVGME.
  3. Open <DCS install>/MissionEditor/MissionEditor.lua in a text editor and append this single line at the end of the file: require('dcs_sms_me.init') — then save.
  4. Restart DCS.

Full instructions are in the README.md inside the zip. The .exe path is still recommended where possible — it patches MissionEditor.lua for you and supports dcs-sms.exe update / dcs-sms.exe uninstall-me-mod.