Mod Merging Ability #408
FerrumAnguis
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was thinking about the addition of a zEdit like addition for the AML. I discussed it with some LLMs and they think, it can be done. Here is some python file, they came up with to potential merge two mods. Maybe this idea could be a base?
import os
import shutil
import configparser
import json
def merge_mods(mod_dir1, mod_dir2, output_dir, mod_name="Merged Mod", mod_description="Merged Mod", mod_author="Your Name", mod_uid="MergedMod_001"):
"""
Merges two XCOM 2 mods, handling .ini files and content folders.
if name == "main":
# --- Example Usage (for testing) ---
mod1_path = "C:\Path\To\Your\Mod1_Extracted" # Replace with actual path to Mod 1 extracted folder
mod2_path = "C:\Path\To\Your\Mod2_Extracted" # Replace with actual path to Mod 2 extracted folder
output_path = "C:\Path\To\MergedMod_Output" # Replace with desired output folder path
Beta Was this translation helpful? Give feedback.
All reactions