I'll write more about this soon, but not in this very topic, a quick notice though.
A BAT file is simply a text document that contains instructions for your computer. A txt document is made and then the extension is simply changed from .txt to .bat.
Here is a very basic example. Say your mod makes a new unit called MonFeudalSergeants and it uses graphics from the vanilla unit FeudalSergeants. Sure, if it's only 1 unit you can probably just copy that file, zip and distribute. But tens or even hundreds of them can increase the size of your mod by many mb. Creating a BAT file seems tedious then, but remember you just copy/paste the same instructions over and over.
Each BAT file starts like this
Code:
@ECHO OFF
COPY .\Battle\UnitIcons\FeudalSergeants.LBM .\Battle\UnitIcons\MonFeudalSergeants.LBM
COPY .\CAMPMAP\Info_Pics\Units\FeudalSergeants.BIF .\CAMPMAP\Info_Pics\Units\MonFeudalSergeants.BIF
COPY .\CAMPMAP\review_panel\Units\FeudalSergeants.BIF .\CAMPMAP\review_panel\Units\MonFeudalSergeants.BIF
The BAT file has to be in the main MTW directory. The command copy tells the computer to copy something. First it tells what to copy .\Battle\UnitIcons\FeudalSergeants.LBM is the relative path to the vanilla FeudalSergeants.LBM file. Then a space is followed by where that has to be copied to. Same location, but a different name .\Battle\UnitIcons\MonFeudalSergeants.LBM .
A BAT like this is easy to make if you know the system name of the new unit and the system name of the unit it should use the graphics from. This BAT file doesn't require any userinput, so it should execute on any computer.
Bookmarks