/\/\ ___ __| | (_)_ __ ___| |_ __ _| | | ___ _ __
/ \ / _ \ / _` | | | '_ \/ __| __/ _` | | |/ _ \ '__|
/ /\/\ \ (_) | (_| | | | | | \__ \ || (_| | | | __/ |
\/ \/\___/ \__,_| |_|_| |_|___/\__\__,_|_|_|\___|_|
The Infinity Engine Mod Installer is a tool designed to automate the installation of mods for Infinity Engine games such as Baldur's Gate, Icewind Dale, and Planescape: Torment. It uses a file called "weidu.log" to determine which mods to install and how to install them.
mod_installer
can be installed via crates.io:
cargo install mod_installer
or you can grab it from the latest releases page on github, here.
To use the Infinity Engine Mod Installer, you need to run it from the command line. Here's the basic structure of the command:
mod_installer(.exe) [OPTIONS]
--log-file <LOG_FILE>
--game-directory <GAME_DIRECTORY>
--weidu-binary <WEIDU_BINARY>
--mod-directories <MOD_DIRECTORIES>
Let's break down what each part means:
mod_installer(.exe): This is the name of the program you're running. [OPTIONS]: These are additional settings you can use to customize how the program works (we'll explain these in detail below).
--log-file
--game-directory
--weidu-binary
--mod-directories
The Infinity Engine Mod Installer looks at a "weidu.log" file that you provide. This file contains information about mods you want to install. The tool then goes through this list and installs each mod automatically. This saves you time and effort, as you don't have to manually install each mod one by one.
The Weidu log file contains a list of installed mods and is typically found in your game directory if you have previously installed mods. Here's an example of what a Weidu log might look like:
// Log of Currently Installed WeiDU Mods
// The top of the file is the 'oldest' mod
// ~TP2_File~ #language_number #component_number // [Subcomponent Name -> ] Component Name [ : Version]
~TEST_MOD_NAME_1/TEST.TP2~ #0 #0 // test mod one
If you're new to modding Infinity Engine games, we recommend installing mods manually first to familiarize yourself with the process. This will help you understand how mods work and how they interact with your game.
If you're looking for an example weidu.log
to get started:
Check online forums and modding communities. Experienced players and modders often share their mod lists and corresponding Weidu logs. Look for "mod packs" or "recommended mod lists" for your specific game. These often come with pre-configured Weidu logs. Start with a small number of popular mods and gradually build up your log as you become more comfortable with the modding process. Some mod managers for Infinity Engine games can generate Weidu logs based on your selected mods.
Remember, the Weidu log is a powerful tool, but it's important to understand what you're installing. Always back up your game files before installing mods, and be aware that some mods may conflict with others.
We have a short video that shows how the tool works:
Don't panic you can use the help command to find all the options listed below:
-h, --help
What it does: This shows a help message with information about how to use the program. How to use it: Just add this option to your command if you need help. Example: mod_installer --help
Here's a detailed explanation of all the options you can use:
-f, --log-file
What it does: This tells the program where to find the "weidu.log" file.
How to use it: Replace
-g, --game-directory
What it does: This tells the program where your game is installed.
How to use it: Replace
-w, --weidu-binary
What it does: This tells the program where to find the WeiDU program.
How to use it: Replace
-m, --mod-directories
What it does: This tells the program where to find the mod files.
How to use it: Replace
-l, --language
What it does: This sets the language for the game and mods.
How to use it: Replace
-d, --depth
What it does: This sets how deep the program should look in folders for mod files.
How to use it: Replace
-s, --skip-installed
What it does: This makes the program check what's already installed and skip those mods. How to use it: Just add this option to your command if you want to use it. Default: This is on by default. Example: --skip-installed
-a, --abort-on-warnings
What it does: This makes the program stop if it encounters any warnings. How to use it: Just add this option to your command if you want to use it. Default: This is on by default. Example: --abort-on-warnings
-t, --timeout
What it does: This sets how long the program will wait for each mod to install before giving up.
How to use it: Replace
-u, --weidu-log-mode
What it does: This sets how WeiDU should log its actions.
How to use it: Replace
-x, --strict-matching
What it does: This makes the program more strict about matching mod versions and components. How to use it: Just add this option to your command if you want to use it. Default: This is off by default. Example: --strict-matching
-V, --version
What it does: This shows what version of the program you're using. How to use it: Just add this option to your command if you want to check the version. Example: mod_installer --version
See the example_config.toml
for defaults parser uses. Here we provide a brief breakdown of what each configuration does:
Name | Category | Description | Example |
---|---|---|---|
in_progress_words | A list of words | Checks if weidu is currently running | ["installing", "creating",] |
useful_status_words | A list of words | Provides feedback on the weidu process | ["copied", "copying",] |
choice_words | A list of words | Words which check if weidu wants user input | ["choice", "choose",] |
choice_phrase | A list of phrases | Phrases which check if weidu wants user input | ["do you want", "would you like",] |
completed_with_warnings | A single phrase | Standard phrase wiedu uses if it finishes with warning | "installed with warnings" |
failed_with_error | A single phrase | Standard phrase wiedu uses if it finishes with an error | "not installed due to errors" |
finished | A single phrase | Standard phrase wiedu uses if it finishes successfully | "successfully installed" |
eet_finished | A single phrase | A special exemption for EET for EET Core install | "process ended" |
Note: All words/phrases are compared in lowercase ascii.
If you wish to changes the above; or you are using a different game language (apologies for not translating all of this); have found a exemption; or just want to change the way the parser works you'll need to create your own mod_installer.toml.
We use the rust crate confy
to load configuration. Confy uses the rust crate directories
to find the the expected path for your operating system. The directories
crate uses:
In order to save you some time reading all the above we will put the expected locations below:
{FOLDERID_RoamingAppData}\mod_installer\config
$HOME/Library/Application Support/mod_installer/config.toml
$XDG_CONFIG_HOME/mod_installer/config.toml
or $HOME/.config/mod_installer/config.toml
You can show more install information by setting the RUST_LOG
environment variable. Here are some of the levels you can use:
For some additional information:
RUST_LOG=INFO mod_installer [OPTIONS]
For detailed information about each step:
RUST_LOG=DEBUG mod_installer [OPTIONS]
For absolutely everything, including WeiDU logs:
RUST_LOG=TRACE mod_installer [OPTIONS]
For more information on logging visit the rust crate log
.