Hi All,
This was the alpha v0.2 release of the BATTLETECH Mod Manager, BTMod. However, it seems that another mod loader is in development which will replicate much of the functionality of BTMod. Rather than duplicate effort and have multiple mod loaders floating around, I've decided to discontinue BTMod and instead assist where I can with what I hope will become the standard mod loader for the community, ModTek (https://github.com/Mpstark/ModTek). Check it out if you're interested!
In the interests of providing people who would like to follow on with anything I've done here some support, I'll leave the .exe's download link up until it expires (in about a week). I'll also post the source code down below. It's incredibly rough, raw code which I make no apologies for
Download Link: here
How To Use It:
How To Revert To Vanilla:
How To Create & Package Mods For BTMod:
Caveats:
v0.2 Change Log
This was the alpha v0.2 release of the BATTLETECH Mod Manager, BTMod. However, it seems that another mod loader is in development which will replicate much of the functionality of BTMod. Rather than duplicate effort and have multiple mod loaders floating around, I've decided to discontinue BTMod and instead assist where I can with what I hope will become the standard mod loader for the community, ModTek (https://github.com/Mpstark/ModTek). Check it out if you're interested!
In the interests of providing people who would like to follow on with anything I've done here some support, I'll leave the .exe's download link up until it expires (in about a week). I'll also post the source code down below. It's incredibly rough, raw code which I make no apologies for
Download Link: here
How To Use It:
- Place the .exe in your BATTLETECH root directory (where BattleTech.exe is located)
For me on Steam, this is \SteamLibrary\steamapps\common\BATTLETECH - Run BTMod.exe. This will create two folders, Mods and VanillaBackup.
- Place your mods in the Mods folder.
The folder structure is \Mods\<ModName>\<StreamingAssets folder structure>
For example, I downloaded a mod that changes the shop jsons called "BetterShops". So, I made a folder in Mods called BetterShops. In there, I copied the "data\shops" folder from the mod which contains the modified JSONs. The final result is to have the folder:
\Mods\BetterShops\data\shops\
Which contains the modified jsons. - Click "Load Mods".
- Launch the game!
When BTMod applies a mod, it will first back up all the vanilla jsons being changed to the VanillaBackup folder. Therefore, it is critical that the first time you run BTMod, you run without any mods installed. After installing a mod or many mods with BTMod, if you'd like to revert to the non-modified game (to play multiplayer, for example):
- Run BTMod.exe
- Click "Return To Stock".
BTMod (in the current version) only expects you to add or modify files found in the
\BATTLETECH\BattleTech_Data\StreamingAssets
folder. If that's all you're doing, you can package your mod for BTMod by doing the following:
\BATTLETECH\BattleTech_Data\StreamingAssets
folder. If that's all you're doing, you can package your mod for BTMod by doing the following:
- Create a folder in the Mods folder created by BTMod, naming it whatever you'd like to call your mod.
- Copy the vanilla files you want to modify from the data folder to \Mods\<your mod name>\
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
from: \BATTLETECH\BattleTech_Data\StreamingAssets\data\simGameConstants\
to: \BATTLETECH\Mods\<your mod name>\data\simGameConstants\ - Mod the file(s) however you'd like.
- Congratulations, your mod is done! To apply it to the game, run BTMod.exe and click "Load Mods".
- To package it for others, just put \<your mod name>\ and all the subfolders in to a zip file and share it, linking users to this post for information on how to use BTMod. They'll just need to copy the contents of your zip file in to their Mods folder to use your mod.
- At the moment mods are applied as they're loaded, with no conflict checks, so if two separate mods affect the same file, the last mod to be applied will overwrite the others.
- It's hideously ugly. I'll put more work in to making the UI pretty if it ends up being popular.
- There's no good way to differentiate between modded files and vanilla files, so if an official patch to the game changes jsons, you need to delete the contents of VanillaBackup, verify game files on Steam to ensure you're using all unmodified files, and run BTMod again.
- I packaged this with pyinstaller. While it appears to run fine on computers without python installed, it might not. If you get .dll errors or the .exe won't run on your PC let me know and I'll use a more robust packaging system.
v0.2 Change Log
- Added dynamic modification of VersionManifest.csv, allowing for mods including new files to be used with BTMod.
- Removed restriction on adding new files.
- Changed root path for vanilla files from data to StreamingAssets.
Last edited: