th3w1zard1 / KOTORModSync

A flexible multi-mod installer for KOTOR games.
GNU General Public License v3.0
17 stars 0 forks source link

KOTORModSync

KOTORModSync is a multi-mod installer for KOTOR games that makes it easier to install and manage mods.

I usually install the Reddit mod build every year or so. The process takes about an hour and it's repetitive moving files, running TSLPatcher, deleting specific files, and occasionally renaming some files. The last time I installed the modbuild I made a mistake on a single different step, 3 times in a row. Most mistakes require a full restart from the beginning. This is tedious, so I decided to create an installer creator in C# to simplify the process.

Goals

Mod creators work really hard on their mods. It's the least we can do to install them and use them, right? However, who wants to reinstall to vanilla and spend several hours reinstalling mods, just to add 1 or 2 extra mods on top of it? Other mod managers I've tried were either too difficult to configure, require significant changes to a hard-to-understand configuration file, or only provided limited functionality for defining new mods. KOTOR mods definitely can have complex dependency relationships with each other in regard to compatibility, due to the nature of TSLPatcher and KOTOR itself.

Enter KOTORMODSync.

image

Features

Usage

This section is entirely a WIP but I'll post basic info on some things that are not obvious in the app. First and foremost the installer does NOT download all required mods, it requires that all mods are downloaded, unextracted, to the same folder. (known as the <<modDirectory>>) You'll need to click 'set directories' and browse to your <<kotorDirectory>> and your <<modDirectory>>. Once you do this, load an instructions file (or create one), then select the mods to be installed and press 'install all'.

Creating instructions.

The installer parses the fields InstallBefore, InstallAfter, Dependencies, and Restrictions to define dependencies and incompatibilities. See https://pastebin.com/7gML3zCJ for a quick explanation of those fields. See the examples for the Ultimate Character Overhaul and the Handmaiden/Disciple Same-Gender Romance Mod for the more complex examples.

FAQ:

Supported Platforms

KOTORModSync is a cross-platform 32-bit and 64-bit .NET application. It is compatible with the following operating systems:

Linux/Mac

You may need additional X11 development libraries. In order to get this working on WSL, for example, I had to install the following packages:

sudo apt install libsm6 libice6 libx11-dev libfontconfig1 libx11-6 libx11-xcb1 libxau6 libxcb1 libxdmcp6 libxcb-xkb1 libxcb-render0 libxcb-shm0 libxcb-xfixes0 libxcb-util1 libxcb-xinerama0 libxcb-randr0 libxcb-image0 libxcb-keysyms1 libxcb-sync1 libxcb-xtest0

Then you can simply run like this in a terminal:

./KOTORModSync

If you run into problems with the Linux or Mac builds, please contact me and I'll happily get a fix ready for the next release build.

Build instructions

I'm honestly not sure what all you need, I was able to build and run it on both vs2019 and vs2022. From what I understand, the minimum build requirements are:

All you need to do is build KOTORModSync.GUI. This should build the program into ./KOTORModSync.GUI/bin directory. Or run the command dotnet build then dotnet run inside KOTORModSync.GUI folder. You may alternatively run my publish scripts in the solution directory if you like.

KOTORModSync.GUI

Credit

Snigaroo

This man saved me countless amount of hours. I'd still be struggling through game glitches and mod-specific instructions I didn't understand. Actually, I'd probably still be on Dantooine trying to determine why I'm getting visual glitches and crashes which he solved with the one-word message 'grass'.

JCarter426

Ditto. There were so many KOTOR-specific things to learn, without his help I'd still be trying to deserialize encapsulated resource files. His time and patience were incredibly useful to the project and this project would be impossible without him.

Cortisol

Created HoloPatcher and the PyKotor library that KOTORModSync uses to patch mods. These projects are the main reason KOTORModSync can be supported on Mac/Linux. While the PyKotor/HoloPatcher projects have had some issues, this guy was more or less available for comment if I had questions on how I could fix any remaining problems myself.

Testers:

Lewok from r/KOTOR

Thank you for helping test that obnoxious UAC elevation problem legacy Windows apps like TSLPatcher have.

Thor110

Tested multiple installs and provided wisdom on the internal workings of KOTOR.

Other notable users:

Fair-Strides

Provided the Perl source code of TSLPatcher on GitHub, and generally maintained the TSLPatcher project in Stoffe's absence.

Stoffe

Creator of TSLPatcher

Thank you to the entire KOTOR community for what you do.