Originally Posted by Epistolary Richard
Repost:
__________
Mod Switch
Another vital feature for modders from Rome is in Med2 but again in a slightly different way. The Mod Switch allows you to have a separate directory of your modded files in your main Medieval 2 Total War directory and by launching the game with the right cfg line the game will access the files within the mod folder before looking in the main game directory – allowing you to supercede even packed files without problem.
The best way to set this up is as follows:
Create a new bat file in the top level Medieval 2 Total War folder (the one with the .exe in it) called Launch_MyMod.bat
Inside it should read:
medieval2.exe @mymod.cfg
Then create copy your medieval2.preference.cfg file and rename it mymod.cfg and include the following lines:
[features]
mod = mymod
Then create a folder in that directory called mymod and in that have your data folder with its modded files exactly mimicking the directory structure in the main game folder.
As you can see using a bat file to launch the game using different .cfg files allows you to easily swap between different mods and game configurations without wholesale duplication of your data folder, risking direct file overwrites or copying and overwriting your original .cfg file.
As with Rome, the mymod folder needs to include certain game files from the world folder to function. Currently, it also requires sounds/events.dat and sounds/events.idx to function. This should be borne in mind when writing mod installers or alternatively in install instructions.
____
Make sure you have the campaign and base folder in from the world folder - and the above named sound files.