wabbajack/README.md

244 lines
13 KiB
Markdown
Raw Normal View History

2019-10-13 03:15:14 +00:00
## Wabbajack - An automated modlist installer for TES/Fallout games
2019-09-26 10:44:47 +00:00
2019-09-24 04:38:35 +00:00
[![Build Status](https://dev.azure.com/tbaldridge/tbaldridge/_apis/build/status/halgari.wabbajack?branchName=master)](https://dev.azure.com/tbaldridge/tbaldridge/_build/latest?definitionId=1&branchName=master)
2019-07-29 22:15:13 +00:00
The general idea behind this program is fairly simple. Given a Mod Organizer 2 folder and profile, generate list of instructions that will allow
a program to automatically recreate the contents of the folder on another machine. Think of it as replication, but without ever distributing copyrighted
2019-07-31 21:11:07 +00:00
files or syncing data between the source and destination machine. The end result is a program that recreate a modlist on a computer while respecting the
2019-09-26 10:44:47 +00:00
rights of the game publisher and the mod authors.
2019-07-29 22:15:13 +00:00
### Installing a Modlist
Please visit our Discord link below for information on how to obtain and install a modlist.
2019-07-31 21:11:07 +00:00
### Social Links
2019-09-26 10:44:47 +00:00
2019-07-31 21:34:55 +00:00
- [Discord](https://discord.gg/zgbrkmA)
2019-08-05 09:50:11 +00:00
- [Patreon](https://www.patreon.com/user?u=11907933) Check this page for updates and to vote on features
2019-07-29 22:33:23 +00:00
2019-08-23 03:33:16 +00:00
### What Wabbajack can do
2019-09-26 10:44:47 +00:00
2019-08-23 03:33:16 +00:00
At this point you may be wondering how much of a complex modlist Wabbajack can handle. At this point it's more about what Wabbajack *can't* handle, but
let's do a rundown of all the supported features:
2019-09-26 10:44:47 +00:00
- Support for the following games is tested on a regular basis
- Fallout 4
- Fallout New Vegas
- Skyrim SE
- Skyrim LE
- Support for automatic downloads from the following sources
- Nexus Mods (Premium accounts only)
- Dropbox
- Google Drive
- Mega
- ModDB
- Direct URLs (with custom header support)
- Support the following archive types
2019-09-26 10:49:04 +00:00
- `.zip`
- `.7z`
- `.rar`
- `.fomod` (FNV archives)
2019-09-26 10:44:47 +00:00
- The following mod installation types are supported
2019-09-26 10:49:04 +00:00
- Files installed with our without fomod installers
- Files from `.omod` mods like `DarNified UI` or `DarkUId Darn`
2019-09-26 10:44:47 +00:00
- Manually installed mods
- Renamed/deleted/moved files are detected and handled
- Multiple mods installed into the same mod folder
- A mod split across multiple mod folders
- Any tools installed in the MO2 folder. Want your users to have BethIni or xEdit? Just put them in a folder inside the MO2 install folder
- ENBseries files that exist in the game folder
- SKSE install
- The following situations are automatically detected and handled by the automated binary patcher (not an exhaustive list)
- ESP cleaning
- form 44 conversion
- ESP to ESL conversion
- Adding masters
- Dummy ESPs created by CAO
- (really any ESP modifications are handled)
- Mesh fixing
- Texture compression / fixing
2019-08-23 03:42:35 +00:00
The following BSA operations are detected by extracting or creating BSAs via Wabbajack's custom BSA routines
2019-09-26 10:44:47 +00:00
- BSA Unpacking
- BSA Creation (packing loose files)
- BSA repacking (unpacking, fixing files and repacking)
2019-08-23 03:33:16 +00:00
That being said, there are some cases where we would need to do a bit more work to develop:
2019-09-26 10:44:47 +00:00
- Manually downloaded files
- LL Files (currently no plans to implement)
- esp to esm conversion (there are hacks for this)
- binary patching of non-bsa huge files. 256MB is the largest size Wabbajack can currently handle with the binary patcher
2019-08-23 03:33:16 +00:00
### The Wabbajack Permissions System
While Wabbajack can perform a large variety of operations on mod files, we recognize that some authors don't want to deal with
the support requests that come from some users performing operations on these files. Therefore we worked together with several
authors to create a permissions system Wabbajack will follow during installation and creation of a modlist. This permissions file
can be found on [Github](https://github.com/wabbajack-tools/opt-out-lists/blob/master/NexusModPermissions.yml). Feel free to contact
us via discord about any questions you may have.
2019-08-03 15:24:47 +00:00
### Creating a ModList Installer
2019-08-23 22:44:54 +00:00
2019-09-26 10:49:04 +00:00
Overview video [`https://www.youtube.com/watch?v=5Fwr0Chtcuc`](https://www.youtube.com/watch?v=5Fwr0Chtcuc)
2019-08-03 15:24:47 +00:00
1) Download Wabbajack and install it somewhere outside of your normal Mod Organizer 2 folder
2019-09-25 15:50:10 +00:00
(otherwise Wabbajack will try to figure out how to install itself and that might cause a collapse in the time-space
2019-08-03 15:24:47 +00:00
continuum).
2019-09-26 10:44:47 +00:00
2) Make sure every archive you used in your MO2 profile has some sort of download information attached.
- If the file was downloaded via MO2 you're good, no extra work is needed
- If the file was downloaded manually from the Nexus, copy it into the MO2 downloads folder, go back to MO2
- and go to the `downloads` tab. Find the file and click `Query Info` from the right-click menu. MO2 should find
2019-08-03 15:24:47 +00:00
the download info for you
2019-09-26 10:44:47 +00:00
- For other files (ENBSeries, SKSE, SRO, etc.) Look at the [`RECIPES.md`] file
- for instructions specific to your file source.
3) Now load Wabbajack, and point it to the `\<MO2 Folder>\mods\<your profile>\modlist.txt` file.
2019-08-03 17:37:32 +00:00
4) Click `Begin`.
5) Wabbajack will start by indexing all your downloaded archives. This will take some time on most machines as the application
2019-09-26 10:44:47 +00:00
has to performa `SHA-256` hash on every file in every archive. However the results of this operation are cached, so you'll only need
2019-08-03 17:37:32 +00:00
to do this once for every downloaded file.
6) Once completed, Wabbajack will collect the files required for the modlist install and begin running them through the compilation stack.
2019-08-03 17:37:32 +00:00
7) If all goes well, you should see a new `<your profile name>.exe` file next to `Wabbajack.exe` that you just ran. This new `.exe` is the one
you want to hand out as a auto modlist installer.
### Installing a ModList
1) Get a modlist installer, it's a `.exe` file that was created by Wabbajack
2) Run the `.exe`, the install folder defaults to the same folder as the executable, change it if you want.
3) Click `Begin` to start installation. At some point you will be prompted for SSO authorization on the Nexus, files
will be auto installed and downloaded
4) After installation has completed, run `Mod Organizer 2.exe`, select `Portable` and your game type.
2019-07-29 22:15:13 +00:00
### How it works
2019-09-26 10:44:47 +00:00
2019-07-29 22:15:13 +00:00
At a technical level the process is as follows.
1) Hash and cache the contents of every archive in the `\downloads` folder. This lets Wabbajack know of all the possible locations where you could have installed mods
2019-09-26 10:44:47 +00:00
2) Apply the `resolution stack` to every file in both the game's root folder and in the MO2 folder.
3) Take the install directives and required archives and write their metadata to a JSON file.
2019-07-29 22:15:13 +00:00
4) Attach the JSON file to Wabbajack itself, creating a new Auto-installer for the profile
### The Resolution Stack
2019-09-26 10:44:47 +00:00
Every file analyzed by Wabbajack is passed through a stack of rules. The first rule to match the file creates a `Install Directive` or a instruction on how to install that specific file.
2019-07-29 22:15:13 +00:00
Currently the Resolution stack looks like this:
1) Ignore the contents of `logs\`
2019-09-26 10:44:47 +00:00
2) Directly include .meta files int the `downloads\` folder
3) Ignore the contents of `downloads\`
4) Ignore the contents of `webcache\`
5) Ignore the contents of `overwrite\`
2019-08-23 03:33:16 +00:00
6) Ignore any files with `temporary_logs` as a folder in the path
2019-09-26 10:44:47 +00:00
7) Ignore `.pyc` files
2019-08-23 03:33:16 +00:00
8) Ignore `.log` files
2019-09-26 10:44:47 +00:00
9) Ignore any files in `profiles` that are not for the selected MO2 profile
10) Ignore any disabled mods
11) Include any profile settings for the selected profile by including them directly in the modlist
12) Ignore "ModOrganizer.ini", it will be re-created when MO2 starts on the new machine
13) Ignore "Data" in the Game directly (in your Steam folder)
14) Ignore "Papyrus Compiler" in the game folder
15) Ignore the "Skyrim" folder in the game folder
16) Ignore any BSAs in the game folder
17) Include all meta.ini files from all (selected) mods
18) Include archive and file meta information for any file that matches a file in an archive directly via a SHA256 comparison
2019-08-23 03:33:16 +00:00
19) Rip apart any `.bsa` files and run a mini resolution stack on the contents to figure out how to build the .bsa from the input files
2019-09-26 10:44:47 +00:00
20) Generate patches for files that may have been modified after being installed from an archive (see section on Patching for more info)
2019-08-23 03:33:16 +00:00
21) Include dummy ESPs directly into the modlist
2019-09-26 10:44:47 +00:00
22) Ignore files in the game directory
23) Ignore .ini files
24) Ignore .html files (normally these are logs)
25) Ignore .txt files
26) Ignore `HavockBehaviourPostProcess.exe` this seems to get copied around by tools for some reason
2019-08-23 03:33:16 +00:00
27) Ignore `splash.png` it's created for some games (like FO4) by MO2
2019-09-26 10:44:47 +00:00
28) Error for any file that survives to this point.
2019-07-29 22:15:13 +00:00
2019-08-05 09:50:11 +00:00
So as you can see we handle a lot of possible install situations. See the section on [`Creating a Modpack`](README.md#Creating_a_ModList_Installer) for information on working with the installer
2019-07-29 22:15:13 +00:00
2019-09-02 22:36:57 +00:00
### Wabbajack Flags
2019-09-26 10:44:47 +00:00
2019-09-02 22:36:57 +00:00
The if the following words are found in a mod's notes or comments they trigger special behavior in Wabbajack.
2019-09-26 10:44:47 +00:00
- `WABBAJACK_INCLUDE` - All the files int he mod will be inlined into the installer
- `WABBAJAC_ALWAYS_ENABLE` - The mod's files will be considered by the compiler even if the mod is disabled in the profile
2019-09-02 22:36:57 +00:00
2019-07-29 22:15:13 +00:00
### Patches
2019-09-26 10:44:47 +00:00
2019-07-29 22:15:13 +00:00
Wabbajack can create binary patches for files that have been modified after installation. This could be `.esp` files that have been cleaned or patched. Or
2019-09-26 10:44:47 +00:00
it could be meshes and textures that have been optimized to work better in a given game. In any case a BSDiff file is generated. The output of this process
is copied directly into the modlist instructions. However! It is important to note that the patch file is 100% useless without the source file. So `original + patch = final_file`. Without the original file, the final file cannot be recrated. This allows us to distribute arbitrary changes without violating copyrights as we do not copy
copyrighted material. Instead we copy instructions on how to modify the copyrighted material.
2019-07-29 22:15:13 +00:00
2019-07-31 21:34:55 +00:00
### FAQ
**How do I get Wabbjack to handle mods from `X`**
2019-08-05 09:50:11 +00:00
Look at the [`RECIPES.md`] file, we keep a knowledgebase of how to deal with given types of mods in that file.
2019-09-19 12:49:32 +00:00
**How do I contribute to Wabbajack?**
2019-10-05 15:07:25 +00:00
Look at the [`CONTRIBUTING.md`](https://github.com/halgari/wabbajack/blob/master/CONTRIBUTING.md) file for detailed guidelines.
2019-09-19 12:49:32 +00:00
**Why does each modlist install another copy of Mod Organizer 2?**
2019-07-31 21:34:55 +00:00
Self-contained folders are a cleaner abstraction than dumping tons of modlists into the same set of folders. It's easy to uninstall a modlist (simply delete the folder),
and MO2 really isn't designed to support lots of disparate modlists. For example if two modlists both wanted a given texture mod, but different options they would
somehow have to keep the names of their mods separate. MO2 isn't that big of an app, so there's really no reason not to install a new copy for each modlist.
**Why don't I see any mods when I open Mod Organizer 2 after install?**
2019-09-26 10:44:47 +00:00
Make sure you selected the "Portable" mode when starting MO2 for the first time. In addition, make sure you haven't installed MO2 in a non-portable way on the same box.
Really, always use "Portable Mode" it's cleaner and there really isn't a reason not too do so. Make the data self-contained. It's cleaner that way.
**Will Wabbajack ever support Vortex/other mod managers?**
I'll be honest, I don't use anything but MO2, so I probably won't write the code. If someone were to write a patch for the functionality
I wouldn't throw away the code, but it would have to be done in a way that was relatively seamless for users. Since Wabbajack treats all files in the same way
it doesn't know what mod manager a user is using. This means that if the modlist creator used Vortex all users of the modlist would have to use Vortex. This doesn't seem
2019-09-26 10:44:47 +00:00
optimal. It's possible perhaps, but it's at the bottom of the priority list.
**How does Wabbajack differ from Automaton?**
I (halgari) used to be a developer working on Automaton. Sadly development was moving a bit too slowly for my liking, and I realized that a complete rewrite would allow the
implementation of some really nice features (like BSA packing). As such I made the decision to strike out on my own and make an app that worked first, and then make it pretty.
2019-09-26 10:44:47 +00:00
The end result is an app with a ton of features, and a less than professional UI. But that's my motto when coding "make it work, then make it pretty".
2019-07-29 22:15:13 +00:00
2019-09-26 10:44:47 +00:00
## Thanks to
Our tester and Discord members who encourage development and help test the builds.
2019-08-23 03:37:36 +00:00
### Patreon Supporters
2019-09-26 10:44:47 +00:00
2019-08-23 03:37:36 +00:00
#### Daedra level Patreon Supporters
2019-09-26 10:44:47 +00:00
- Ancalgon
2019-10-13 03:15:14 +00:00
- Theo
- Dascede
- Kristina Poňuchálková
- metherul
- Decopauge123
2019-09-26 10:44:47 +00:00
2019-08-23 03:37:36 +00:00
#### Patreon Supporters
2019-09-26 10:44:47 +00:00
- Druwski
- Soothsayre
- krageon
- Scumbag
2019-10-13 03:15:14 +00:00
- Burt Wheeler
- Jesse Earl Rockwell
- Mike Gray
- Theryl
- Daniel Gardner
- Dapper
- Corapol
- HQM
- Argos
- sorrydaijin
- William Chudziak
- N Kalim
2019-08-23 03:37:36 +00:00
2019-07-29 22:15:13 +00:00
### License & Copyright
2019-09-26 10:44:47 +00:00
All original code in Wabbajack is given freely via the GPL3 license. Parts of Wabbajack use libraries that carry their own Open Sources licenses, those parts
retain their original copyrights. Note: Wabbajack installers contain code from Wabbajack. Therefore, selling of modlist files is strictly forbidden. As is hosting
the files behind any sort of paywall. You recieved this tool free of charge, respect this by giving freely as you were given.
2019-07-29 22:15:13 +00:00
2019-08-05 09:50:11 +00:00
[`RECIPES.md`]: https://github.com/halgari/wabbajack/blob/master/RECIPES.md