# Paradox Mod Merger A piece of shitty code i wrote to simplify merging Paradox Interacive's game modifications. Works for HOI4 and Stellaris. ## Installation 1. install 7z and add it to path 2. install dotnet7.0 sdk 3. copy `Makefile` in a new directory where mod merging will be happening 4. set `CSPROJ_FILE` and `WORKSHOP_DIR` in `Makefile` 5. Build mod merger and copy it to your directory. On windows use `/usr/bin/make` (from MSYS2 repository) instead of `/mingw64/bin/make` ```shell make update_merger ``` 6. Prepare directories for each mod cathegory ```shell make create_dirs ``` 7. Copy mods from workshop directory to human-readable directories. Automatically deletes trash files mod developers forgot about. Downloads mod descriptions from steam workshop. ```shell make clear_workshop ``` 8. Copy mods from src/ to separate/ according to their cathegory. - Example: `src/src_1999.12.31/Merger of rules` -> `separate/pre/Merger of rules` 9. Now you can merge each cathegory using command `make `. See other options of **stellasis-mod-merger** by command `./merger -h`. ## dir structure ```xpath separate/ mods sorted by categories ├── content/ ├── graphics/ ├── localisation/ ├── post/ ├── pre/ ├── ui/ └── unused/ src/ ├── src_yyy.MM.dd_hh-mm-ss/ │ └── ... unsorted mods copied from steam workshop copied by clean_workshop task └── ... merged/ └── ... merged mod categories ````