viettriada.blogg.se

Battletech mod manager
Battletech mod manager













battletech mod manager battletech mod manager
  1. Battletech mod manager how to#
  2. Battletech mod manager zip file#

Restore_version_manifest(vanillaBackupFilePath, vanillaFilePath)Ĭopy2(vanillaBackupFilePath, vanillaFilePath) If not filecmp.cmp(vanillaBackupFilePath, vanillaFilePath): VanillaFilePath = vanillaBackupFilePath.replace(vanillaBackupPath, btDataPath) VanillaBackupFilePath = os.path.join(root, name) If os.path.isfile(vanillaFilePath) and not os.path.isfile(vanillaBackupFilePath):įor root, dirs, files in os.walk(vanillaBackupPath): #Also deletes any additional mod files from the game's data to tidy up after itself. #Returns backed-up vanilla, unmodified files to their original directory. StatusLabel = Label(master, text='Mods installed.').grid(row=iRow+3, sticky=W)

battletech mod manager

StatusLabel = Label(master, text=' ').grid(row=iRow+3, sticky=W) Update_version_manifest(vanillaFilePath, modFilePath) If not os.path.isfile(vanillaBackupFilePath):Ĭopy2(vanillaFilePath, vanillaBackupFilePath) VanillaBackupFilePath = modFilePath.replace(modPath, vanillaBackupPath) VanillaFilePath = modFilePath.replace(modPath, btDataPath) If os.path.exists(vanillaDirectoryPath) and not os.path.exists(vanillaBackupDirectoryPath): VanillaDirectoryPath = modDirectoryPath.replace(modPath, btDataPath) VanillaBackupDirectoryPath = modDirectoryPath.replace(modPath, vanillaBackupPath) ModDirectoryPath = os.path.join(root, name) #Also checks to see if a mod includes VersionManifest.csv and updates accordingly if it does.įor root, dirs, files in os.walk(modPath): #Scans the \BATTLETECH\Mods\ directory for mods and copies them to the game directory.

Battletech mod manager zip file#

They'll just need to copy the contents of your zip file in to their Mods folder to use your mod.

Battletech mod manager how to#

To package it for others, just put \\ and all the subfolders in to a zip file and share it, linking users to this post for information on how to use BTMod.Congratulations, your mod is done! To apply it to the game, run BTMod.exe and click "Load Mods".To: \BATTLETECH\Mods\\data\simGameConstants\ It's important that you keep the file and folder structure from StreamingAssets, so if you want to modify simgameconstants.json, for example, you would copy simgameconstants.jsonįrom: \BATTLETECH\BattleTech_Data\StreamingAssets\data\simGameConstants\ Copy the vanilla files you want to modify from the data folder to \Mods\\.Create a folder in the Mods folder created by BTMod, naming it whatever you'd like to call your mod.If that's all you're doing, you can package your mod for BTMod by doing the following: \BATTLETECH\BattleTech_Data\StreamingAssetsįolder. BTMod (in the current version) only expects you to add or modify files found in the















Battletech mod manager