Add Mod Manager prototype (auto-detect mods, generate configs, UI flow) #1162
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces a prototype Mod Manager workflow to Olympus Manager, aimed at making user-downloaded custom DCS mods simpler and more intuitive to integrate, without requiring manual setup.
What does this do?
Adds a Mod Manager flow to
manager.js:Saved Games\DCS\Mods\aircraftand...\techfor installed modsReplaces
modinventory.jswith a real scanner:entry.luaand anyUnitPayloads/*.luait findsUpdates
modgenerator.js:mods.jsonentries for detected unitsmods_generated.luafile withmodsListentries andpayloadFilesExtends
mods.lua:payloadFilestable to load native UnitPayload definitions for each modTesting.
Saved Games\DCS\Modsmods.jsonandmods_generated.luaare created/updated correctly and that the units can be spawned with their payloadsThis is just a prototype and I’m happy to adjust structure, naming or behavior to better match your preferred design. If this is too big for a single PR I can also break it into smaller pieces (inventory, generator, UI) whatever works best for you.
Additional notes.
Tested on:
Mods used in my tests:
I was able to:
mods.jsonandmods_generated.luawere updatedTutorial
Install a DCS mod into Saved Games\DCS\Mods\aircraft (or \tech this includes for the mods like CAM and MAM)
Launch the Olympus Manager from your desktop.
Click the “Mod Manager” menu tile (or start the Manager fresh).
Confirm the new mod appears with status “Pending import.” (THIS ONLY WORKS IN BASIC MODE AS OF NOW)
Toggle “Review before enabling” to expand the list.
Click “Import detected mods.”
If some mods were already imported, confirm the dialog “X of Y already imported—import the remaining Z?”
On success, expect a toast like “Import completed. 1 mod added. All 3 detected mods are now marked as
imported.” (If nothing happens click "Skip / do later" button and then it should work
Check Saved Games\DCS\Mods\Services\Olympus\scripts\mods_generated.lua and …\databases\units\mods.json;
each should have a fresh timestamped .bak and the new mod entry present.
Launch Olympus → DCS and verify the mod shows up with correct loadouts and within the Olympus UI
Add another mod, rerun the process to ensure multiple imports and CAM/MAM-style packs behave correctly.
NOTE
If the Olympus client loses connection during a session, you can usually recover by restarting the client and reloading the mission from the DCS Mission Editor.
In my tests this has restored normal behavior.