u/Personal_Charge8486

▲ 113 r/kotor

KOTOR KPatch Adapter - tool for using KPatch mods with modified swkotor.exe files

Hey guys, I made this tool to help get kpatches and Kotor Patch Manager working with modified EXEs.

This spawned from me wanting to use the kotor-modern-driver-compatibility patch after following the full mod build guide.

Since the EXE gets modified when patching it for widescreen and 4GB, Kotor Patch Manager no longer recognizes its hash, which means kpatches won’t work with it even if the actual code they need is still unchanged.

This tool checks the kpatch against your modified swkotor.exe and verifies that all of the data it needs to hook is still present where expected. If everything matches, it adjusts the kpatch and KPM’s database to recognize your modified EXE and prompts you before making the changes.

It does not modify swkotor.exe in any way. It also backs up KPM’s database before changing it and will not make the conversion if it finds that your EXE no longer contains the data the kpatch expects.

GitHub:
https://github.com/gnw-d3m0/Kotor-KPatch-Adapter

Release:
https://github.com/gnw-d3m0/Kotor-KPatch-Adapter/releases/tag/v0.1.0

It’s still an early release, so if anyone who uses Kotor Patch Manager wants to test it with other .kpatch files or modified executables, feedback would be useful. I’m especially interested in cases where it refuses something that you know should be compatible, since that would help improve the compatibility checks without making them less safe.

u/Personal_Charge8486 — 2 months ago