-
Posts
24 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Blogs
Forum & Tracker Requests
Downloads
Gallery
Store
Events
Files posted by Synchro
-
K1 Modern Driver Compatibility Patch
Restores Knights of the Old Republic's full lighting on current graphics drivers, and stops the grass from stretching into the sky.
See every fix side by side: https://synchro.codeberg.page/kotor-modern-driver-compatibility/what-it-fixes.html
Why the game looks wrong
KOTOR lights its world with one of two methods from 2003, one from ATI and one from NVIDIA. AMD's and Intel's Windows drivers offer neither, so the game falls back to a path meant for cards with no per-pixel lighting, which is also where the grass bug comes from. The patch rebuilds the game's lighting on a method every current driver supports, and puts every card on it.
What it restores
Grass that stays on the ground Light from the room on lightmapped walls and floors Reflections on metal, armour and water, including cube map reflections on Intel cards Fog, where the game meant to have it Soft shadows, glow, motion blur, film grain and Force power distortion Bump lighting on creatures, which the game only ever drew on NVIDIA cards
What it also fixes
The glow around lights and the edges of soft shadows no longer shimmer as the camera moves. The game did this on the hardware of its day too. The brightness slider works, cutscenes included, on drivers that refuse the game's request to change brightness, NVIDIA's on Windows among them. For modders: normal maps, bump lighting on lightmapped surfaces, and reflective skins with a flat reflection map never drew on any card. They do now. The Cube Map Fix and Soft Shadows Fix are part of this patch. Don't install them alongside it.
Requirements
KotOR version 1.03: GOG, Steam, or a CD copy with the common 1.03 no-CD executable KotOR Patch Manager 0.7.2 or later: https://github.com/LaneDibello/Kotor-Patch-Manager Install guide: https://synchro.codeberg.page/kotor-modern-driver-compatibility/installing.html
If the Patch Manager won't accept your swkotor.exe because another tool has modified it, use the standalone download instead: https://synchro.codeberg.page/kotor-modern-driver-compatibility/installing-standalone.html
Settings
You don't need to change anything to play. K1DriverCompat.ini, beside the game, lists every setting with an explanation, and with the Mod Options patch installed the game's options screen has menus for them.
By default the patch draws the game as a GeForce card of the time did. Set look to ati to see it as an ATI Radeon did. In the game's own content the two differ only a little.
Settings: https://synchro.codeberg.page/kotor-modern-driver-compatibility/settings.html
The two looks: https://synchro.codeberg.page/kotor-modern-driver-compatibility/looks.html
Replacement Shaders
Modders can replace any of the patch's shading programs with their own, with nothing to rebuild. Put a plain text ARB fragment program in override/shaders/, named after the program it replaces, and the patch uses it in place of its own. The log records each replacement it loads, and warns about any file that matches no program.
Guide: https://synchro.codeberg.page/kotor-modern-driver-compatibility/replacement-shaders.html
Reporting issues
Open an issue at https://codeberg.org/Synchro/kotor-modern-driver-compatibility/issues or post in the comments here, and attach logs/K1DriverCompat.log from your game folder.
Thanks
@Lane and @J, who tested this on cards and installs I do not own. Nearly everything here is a claim about how some particular driver behaves, and a claim like that is worth nothing until somebody with that hardware runs it and reports back. This would not have been finishable without them.
Lane also wrote the KotOR Patch Manager, which this patch is built for.
@Vriff, Who took reference screenshots on period-correct hardware. They show what the game looked like on the cards it was written for, which is what the patch strives to match.
Full documentation: https://synchro.codeberg.page/kotor-modern-driver-compatibility/
Source: https://codeberg.org/Synchro/kotor-modern-driver-compatibility
LLM Disclosure
This project made use of an LLM during development, in the following capacities:
- Brainstorming: exploring possible approaches and design directions
- Decompilation assistance: help interpreting and structuring reverse-engineered code
- Code comments: refining and clarifying existing comments
- Skeletons and fixes: generating initial code scaffolding and minor fixes
All LLM-assisted output was modified and reviewed by a human before being committed.
637 downloads
-
Rakata ModInstaller
By Synchro in Modding Tools
Easily manage, install, and revert loose-file mods.
Features:
Opens a mod as the zip, 7z or rar it downloaded as, or as a folder you already unpacked. No unpacking first. Works out which files are actually game content. Readmes, screenshots and packaging are left behind, and a mod shipping alternate versions of the same file asks you to pick one. Every install is recorded and can be taken back later. Uninstall leaves a file alone if something has changed it since, so it will not step on a patcher mod's work or on a later mod's. Finds duplicates already sitting in your Override. A name capitalised two ways, or one texture shipped as both a TPC and a TGA. Only one of each is ever loaded, and the game picks it arbitrarily. Shows what every layer of the game holds for a given file, so you can see a loose file quietly shadowing a copy inside a module archive. Finds your installation on its own. Steam, GOG and retail, on Windows, Linux and macOS, for both KotOR 1 and KotOR 2.
If you play on Linux or a Steam Deck, this fixes something quiet
Mod builds are ordered lists, and later mods are meant to overwrite parts of earlier ones. On Windows that happens by itself, because the filesystem does not care whether a file is called `Appearance.2da` or `appearance.2da`. On Linux it does care. Both files end up in Override, the game loads whichever one it reaches first, and the overwrite prompt the build guide told you to expect never appears. Your install order silently did not happen.
This installs by name with a common lowercase filename, so the overwrite you meant is the one you get.
What it does not do (yet)
TSLPatcher mods. Those do not copy files into place. They merge rows into 2DA files that are already there, add entries to the talk table and write inside module archives. This recognises them and says so instead of half-installing them. Keep using HoloPatcher for those. (for now)
Tested against
The loose-file mods from the community build lists, and a full modded install.
Additionally tested on Linux by @Leilukin and on macOS by @FTD Thanks for your help testing!
Requirements
The window fits a 1280x800 screen, so it works on a Steam Deck without too much squeezing.
On Windows: Windows 10+ 64-bit
On macOS: macOS 10.12+ for Intel Macs and 11.0+ for Apple Silicon Macs
On Linux: Any recent Linux distro with glibc 2.35+
About Rakata
Rakata is a clean-room Rust workspace for reading, writing and validating KotOR game data, written from scratch against notes taken from the engine rather than from anybody else's code. This installer is one tool built on top of it. It is free and open-source under GPL-3.0, and the source along with the format documentation is at https://codeberg.org/Synchro/rakata
LLM Disclosure
This project made use of an LLM during development, in the following capacities:
Brainstorming: exploring possible approaches and design directions Decompilation assistance: help interpreting reverse-engineered code Code comments: refining and clarifying existing comments Skeletons and fixes: generating initial code scaffolding and minor fixes. All LLM-assisted output was modified and reviewed by a human before being committed.
44 downloads
- modding tool
- installer
- (and 3 more)