Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 07/19/2026 in Files

  1. Version 1.0.0

    34 downloads

    Vibro Weapons with vibration effects. All vanilla vibroswords, vibroblades, and vibro double-blades updated. Toasty Fresh vibro models were used as a base and each texture was color matched to the vanilla style. Vibration and motion blur effects were added to the blades. 6 Vibroblades Vibroblade - g_w_vbroshort01 Krath Blood Blade - g_w_vbroshort02 Echani Vibroblade - g_w_vbroshort03 Sanasiki's Blade - g_w_vbroshort04 g_w_vbroshort05 g_w_vbroshort06 g_w_vbroshort07 Mission's Vibroblade - g_w_vbroshort08 Prototype Vibroblade - g_w_vbroshort09 7 Vibroswords VibroSword - g_w_vbroswrd01 Krath Dire Sword - g_w_vbroswrd02 Sith Tremor Sword - g_w_vbroswrd03 Echani Foil - g_w_vbroswrd04 Bacca's Ceremonial Blade - g_w_vbroswrd05 g_w_vbroswrd06 g_w_vbroswrd07 g_w_vbroswrd08 Baragwin Assault Blade - g1_w_vbroswrd01 GenoHaradan Poison Blade - geno_blade 4 Vibro Double- Blades Vibro Double-Blade - g_w_vbrdblswd01 Sith War Sword - g_w_vbrdblswd02 (not used)Echani Double-Brand - g_w_vbrdblswd03 Yusanis' Brand - g_w_vbrdblswd04 g_w_vbrdblswd05 g_w_vbrdblswd06 g_w_vbrdblswd07 Credit: KoTOR Weapon Model Overhaul by Toasty Fresh - 3 models/textures were used as base KOTOR Blender
    3 points
  2. Version 1.0.0

    25 downloads

    # KOTOR 1 has a built-in frame limiter — BioWare shipped it switched off **TL;DR:** *Star Wars: Knights of the Old Republic* (2003, Odyssey engine) contains a complete busy-wait frame limiter in its main loop. It is controlled by a single `float` in the executable that defaults to `0.0`, which leaves the limiter dormant, so the game free-runs at uncapped framerate. On high-refresh displays this uncapped rate is what causes the long-standing **movement / "stuck after combat turn" freeze** and related timing bugs, which the community has only ever worked around with external FPS caps or by dropping the monitor to 60 Hz. Writing `60.0` (or any target) to that one float **arms the engine's own limiter** — a native, self-contained fix. No injected code, no wrappers, no driver settings. It's a 4-byte data patch. Verified: on a 144 Hz display with all external caps removed, the patched exe holds a hard 60 FPS and the freeze does not occur. --- ## The bug KOTOR's main loop (`WinMain`, `FUN_004041f0` in a Ghidra auto-analysis of the standard PC exe) is a classic `PeekMessage` real-time loop: ``` while (quit_flag == 0) { read timer (game clock) if no pending message: render scene (delta-time based) SwapBuffers (present) ... optional limiter here ... } ``` Gameplay logic — movement, and the combat round/turn state machine — advances by frame **delta-time**. With no frame cap, delta-times on a fast display become tiny and irregular, and the 2003-era state machine mis-steps: the controlled character's action queue stalls until something rebuilds it (switching party member, or a save/load clears it). That is the freeze players have reported for 20 years. ## The dormant limiter Immediately after `SwapBuffers`, the loop contains this (Ghidra decompilation, lightly annotated): ```c if (DAT_007a3c58 != 0) // a separate, also-off coarse limiter Sleep(DAT_0078d1e8); if (0.0f < cap) { // cap = _DAT_007a3c64 (the frame-cap float) target = 1000.0f / cap; // target frame time // measure elapsed since frame start, then: if (elapsed < target) { do { // busy-spin: re-read the game timer } while (elapsed < target); // hold the frame until target reached } } ``` With real constant values read from the binary: | Symbol | RVA | Value | Meaning | |-------------------|-----------|----------|----------------------------------| | `_DAT_007a3c64` | `0x7a3c64` | **0.0** | frame cap (FPS). **This is it.** | | numerator const | `0x73d6fc` | 1000.0 | `target_ms = 1000.0 / cap` | | zero const | `0x73d700` | 0.0 | used in the `0.0 < cap` gate | | timer scale const | `0x73d708` | 0.001 | raw timer -> milliseconds | The gate is literally **"if cap > 0, limit the frame."** With `cap = 60`, the loop busy-waits until each frame has taken `1000/60 ≈ 16.67 ms`, i.e. it caps at 60 FPS. This is the *same* formula the engine uses elsewhere — the movie-playback path caps to 30 with it — so the mechanism is proven, not speculative. ## Why it's off `_DAT_007a3c64` starts at `0.0`. The **only** code that writes it is a render-setup function (`FUN_004c5880`), and that write is guarded: ```c if (DAT_00832904 != 0) { ... _DAT_007a3c64 = (float)DAT_00832904; // arm the cap } ``` `DAT_00832904` lives in **BSS** — zero-initialized, and it has **no writer anywhere in the binary** (it's a config variable exposed by address, never set by default). So the guard is never true, the cap value is never assigned, and `_DAT_007a3c64` stays `0.0` for the entire session. The limiter is complete, correct, and permanently asleep. Because nothing ever writes the cap during normal play, **patching its initial `.data` value is safe and permanent** — no code path overwrites it. ## The patch Standard PC v1.03 / GOG / "editable" executable: ``` file offset 0x3A3C64 : 00 00 00 00 (float 0.0, limiter off) -> 00 00 70 42 (float 60.0, 60 FPS cap) ``` Other caps if you prefer: `30.0` = `00 00 F0 41`, `72.0` = `00 00 90 42`, `120.0` = `00 00 F0 42`. A Python patcher (`kotor_fpscap_patch.py`) is included; it fingerprints the two `.rdata` constants before writing, backs up the exe, and refuses to touch an executable whose layout it doesn't recognize: ``` python kotor_fpscap_patch.py "path\to\swkotor.exe" 60 ``` ## Verification - 144 Hz display, all external FPS caps and driver "wait for vertical refresh" overrides removed. - Patched exe launched directly. - Framerate held a hard **60**; the movement/turn freeze did not reproduce on transitions that previously triggered it. ## Caveats - **Busy-wait, by design.** The limiter spins a CPU core while pacing each frame (this is BioWare's own implementation — the movie path spins the same way). On a modern machine, one pegged core for a single-threaded 2003 game is harmless, but it is not a `Sleep`-based idle cap. A future refinement could redirect the gate to the engine's own `Sleep(DAT_0078d1e8)` limiter instead. - **Offset is per-exe-layout.** `0x3A3C64` is verified for the standard PC exe. Other builds (Steam-with-different-packing, 4-CD, Mac) may differ; find `_DAT_007a3c64` by locating the `1000.0 / cap` main-loop math. - **Steam "Verify integrity" reverts it** (restores the stock exe). Re-apply after any verify. - Stacks cleanly with the 4GB LARGE_ADDRESS_AWARE patch, UniWS widescreen, and the community mod builds — it only touches one unrelated float. ## Method Static reverse engineering only (Ghidra). Chain: locate timing-API imports (`QueryPerformanceCounter`, `GetTickCount`, `Sleep`) → their callers → the `PeekMessage` message pump → its caller (`WinMain`) → the frame-limiter block in the loop → the cap float and its dormant guard. Full decompiled C of the engine was exported and searched locally to trace the call chain. --- *Reverse-engineered from a legally-owned copy for interoperability and bug-fixing. Not affiliated with BioWare/LucasArts/Aspyr.*
    1 point
  3. Version 1.0.0

    28 downloads

    Specialized Combat Suits HD for Kotor by RedRob41 ================================================================ IF YOU ARE EVER IN ANY DOUBT ABOUT INSTALLING ANY MODS, PLEASE REMEMBER TO ALWAYS BACKUP YOUR FILES BEFORE INSTALLATION, JUST IN CASE. WARNING: MAKE SURE NOT TO REPLACE ANY FILES OF THE SAME NAME THAT ARE ALREADY PRESENT IN YOUR OVERRIDE FOLDER! ================================================================ Description: This is not really a mod, but more of a modder's resource. It includes textures for the basic Combat Suit PFBC and PMBC, as well as icons and uti files to make them wearable. Anyone who has created a story mod for either game can use these suits to add some variety to the NPCs that the player interacts with. I have also included models in which I have fixed the uvw maps, so that the textures appear correctly (the original models had some polygons in the wrong places). The new models should work with any other texture mods, since they work perfectly with the in-game ones. The armour class is the same as the basic Combat Suit, so there isn't any real advantage to wearing them as a player. The real power of these files, is that a modder can create a whole army with both male and female members (and using any head model for NPC variety). The textures were made from original textures that appear in both games, so there is no issue of porting. There will be three versions of this mod to choose to download: 1 - 4x .tga version. Highest resolution, the typical texture is now 2048x2048 pixels which = 16MB. This version is the best choice to use as a modder's resource. 2 - 4x .tpc version. Created by running full size .tgas through tga2tpc program which compresses a 2048x2048 pixel file to 5.5MB. This version should be easier on PC systems, with no noticeable loss of visual fidelity. 3 - 2x .tpc version. Created by reducing full size .tgas by half in Photoshop, then running them through tga2tpc which further compresses them to 1.4MB. This version should be much easier on PC systems. All versions include the same .mdl & .mdx files. Only one version should be installed at a time; having both .tga files and .tpc files with the same name in the Override folder may cause problems. ================================================================ Compatibility: The male models PMBCx are duplicates of the models found in the mod called 4x Upscale+ Character Textures & Model Fixes for KotOR - Version 0.52 by RedRob41. The female models PFBCx in this mod have had additional uvw fixes since the V0.52 mod, and are therefore superior. The models aren't necessary, but the new textures will look much better with them. If you have other mods that change the models, you might prefer to use those ones. Check them out to be sure which you'd prefer. ================================================================ Includes: KotOR Republic Combat Suit g_a_class4042.uti PFBC42.tga, PMBC42.tga, ia_class4_042.tga Sith Combat Suit g_a_class4043.uti PFBC43.tga, PMBC43.tga, ia_class4_043.tga Czerka Combat Suit g_a_class4044.uti PFBC44.tga, PMBC44.tga, ia_class4_044.tga T.S.F. Combat Suit g_a_class4045.uti PFBC45.tga, PMBC45.tga, ia_class4_045.tga Corellian Combat Suit g_a_class4046.uti PFBC46.tga, PMBC46.tga, ia_class4_046.tga Exchange Suit g_a_class4047.uti PFBC47.tga, PMBC43.tga, ia_class4_047.tga Black Vulkar (Orange) g_a_class4048.uti PFBC48.tga, PMBC44.tga, ia_class4_048.tga Black Vulkar (Blue) g_a_class4049.uti PFBC49.tga, PMBC45.tga, ia_class4_049.tga ================================================================ Directions: Please copy all files to the game's Override directory. K1 uti files: These are necessary in order to wear the armours in-game. The name of the uti file is what you would use to cheat them in with the cheat console, example: giveitem g_a_class4042 will give your player the Republic Combat suit. ================================================================ Uninstall: Delete unwanted files from the game's Override folder. ================================================================ Thanks for modding tools: KOTOR Tool – Fred Tetra mdlops (used version 7a2) - cchargin, JdNoa NWMax – Joco Replacer - Taina tga2tpc - ndix UR KotOR/KotOR2 Savegame Editor v3.3.2 - tk102, Fair Strides Hex-editor XVI32 2.55 - Christian Maas ================================================================ Permission: Consider this as a modder's resource. I give permission to any modder to use these files as a base for their own creations; as long as their creation remains free to use (not for profit); and credit is given to me as the source of any modded files. Please include a statement that specifies this mod's title and version. The original credit of course goes to the talented artists who worked on the original games for BioWare and Obsidian. Without their work, none of this would have been possible. I have tried my best to maintain the artistic style that they created long ago. This mod may NOT be uploaded or redistributed, in whole or in part, to any mod hosting site without my explicit permission. As always, this mod is free for your non-commercial/personal use. There should never be a requirement to pay for it. If you like the work I do, and would like to encourage me to create more, you can always donate to my tip jar at https://buymeacoffee.com/redrob416 where the funds collected will be used towards additional graphics tools and software. ================================================================ THIS MODIFICATION IS PROVIDED AS-IS AND IS NOT SUPPORTED BY BIOWARE CORP/OBSIDIAN ENTERTAINMENT OR LUCASARTS OR ANY LICENSERS/SPONSORS OF THE AFOREMENTIONED COMPANIES. USE OF THIS FILE IS AT YOUR OWN RISK AND THE AFOREMENTIONED COMPANIES OR THE AUTHORS ARE NOT RESPONSIBLE FOR ANY DAMAGE CAUSED TO YOUR COMPUTER FOR THE USAGE OF THIS FILE.
    1 point
  4. Version 1.0.0

    20 downloads

    Specialized Combat Suits HD for TSL by RedRob41 ================================================================ IF YOU ARE EVER IN ANY DOUBT ABOUT INSTALLING ANY MODS, PLEASE REMEMBER TO ALWAYS BACKUP YOUR FILES BEFORE INSTALLATION, JUST IN CASE. WARNING: MAKE SURE NOT TO REPLACE ANY FILES OF THE SAME NAME THAT ARE ALREADY PRESENT IN YOUR OVERRIDE FOLDER! ================================================================ Description: This is not really a mod, but more of a modder's resource. It includes textures for the basic Combat Suit PFBC and PMBC, as well as icons and uti files to make them wearable. Anyone who has created a story mod for either game can use these suits to add some variety to the NPCs that the player interacts with. I have also included models in which I have fixed the uvw maps, so that the textures appear correctly (the original models had some polygons in the wrong places). The new models should work with any other texture mods, since they work perfectly with the in-game ones. The armour class is the same as the basic Combat Suit, so there isn't any real advantage to wearing them as a player. The real power of these files, is that a modder can create a whole army with both male and female members (and using any head model for NPC variety). The textures were made from original textures that appear in both games, so there is no issue of porting. There will be three versions of this mod to choose to download: 1 - 4x .tga version. Highest resolution, the typical texture is now 2048x2048 pixels which = 16MB. This version is the best choice to use as a modder's resource. 2 - 4x .tpc version. Created by running full size .tgas through tga2tpc program which compresses a 2048x2048 pixel file to 5.5MB. This version should be easier on PC systems, with no noticeable loss of visual fidelity. 3 - 2x .tpc version. Created by reducing full size .tgas by half in Photoshop, then running them through tga2tpc which further compresses them to 1.4MB. This version should be much easier on PC systems. All versions include the same .mdl & .mdx files. Only one version should be installed at a time; having both .tga files and .tpc files with the same name in the Override folder may cause problems. ================================================================ Compatibility: The male models PMBCx and BAODUR_BC are duplicates of the models found in the mod called 4x Upscale+ Character Textures & Model Fixes for TSL - Version 0.52 by RedRob41. The female models PFBCx in this mod have had additional uvw fixes since the V0.52 mod, and are therefore superior. The models aren't necessary, but the new textures will look much better with them. If you have other mods that change the models, you might prefer to use those ones. Check them out to be sure which you'd prefer. ================================================================ Includes: TSL Republic Combat Suit a_light_42.uti PFBC42.tga, PMBC42.tga, ia_class4_042.tga Sith Combat Suit a_light_43.uti PFBC43.tga, PMBC43.tga, ia_class4_043.tga Czerka Combat Suit a_light_44.uti PFBC44.tga, PMBC44.tga, ia_class4_044.tga T.S.F. Combat Suit a_light_45.uti PFBC45.tga, PMBC45.tga, ia_class4_045.tga Corellian Combat Suit a_light_46.uti PFBC46.tga, PMBC46.tga, ia_class4_046.tga Exchange Suit a_light_47.uti PFBC47.tga, PMBC43.tga, ia_class4_047.tga Black Vulkar (Orange) a_light_48.uti PFBC48.tga, PMBC44.tga, ia_class4_048.tga Black Vulkar (Blue) a_light_49.uti PFBC49.tga, PMBC45.tga, ia_class4_049.tga ================================================================ Directions: Please copy all files to the game's Override directory. TSL uti files: These are necessary in order to wear the armours in-game. The name of the uti file is what you would use to cheat them in with the cheat console, example: giveitem a_light_42 will give your player the Republic Combat suit. ================================================================ Uninstall: Delete unwanted files from the game's Override folder. ================================================================ Thanks for modding tools: KOTOR Tool – Fred Tetra mdlops (used version 7a2) - cchargin, JdNoa NWMax – Joco Replacer - Taina tga2tpc - ndix UR KotOR/KotOR2 Savegame Editor v3.3.2 - tk102, Fair Strides Hex-editor XVI32 2.55 - Christian Maas ================================================================ Permission: Consider this as a modder's resource. I give permission to any modder to use these files as a base for their own creations; as long as their creation remains free to use (not for profit); and credit is given to me as the source of any modded files. Please include a statement that specifies this mod's title and version. The original credit of course goes to the talented artists who worked on the original games for BioWare and Obsidian. Without their work, none of this would have been possible. I have tried my best to maintain the artistic style that they created long ago. This mod may NOT be uploaded or redistributed, in whole or in part, to any mod hosting site without my explicit permission. As always, this mod is free for your non-commercial/personal use. There should never be a requirement to pay for it. If you like the work I do, and would like to encourage me to create more, you can always donate to my tip jar at https://buymeacoffee.com/redrob416 where the funds collected will be used towards additional graphics tools and software. ================================================================ THIS MODIFICATION IS PROVIDED AS-IS AND IS NOT SUPPORTED BY BIOWARE CORP/OBSIDIAN ENTERTAINMENT OR LUCASARTS OR ANY LICENSERS/SPONSORS OF THE AFOREMENTIONED COMPANIES. USE OF THIS FILE IS AT YOUR OWN RISK AND THE AFOREMENTIONED COMPANIES OR THE AUTHORS ARE NOT RESPONSIBLE FOR ANY DAMAGE CAUSED TO YOUR COMPUTER FOR THE USAGE OF THIS FILE.
    1 point
  5. 324 downloads

    By JCarter and Darth InSidious This isn't a mod so much as a modder's resource. JCarter426 discovered a "shuttle interior" in the game files area that was never used by Obsidian, and I've made up some module files so you can get to it. The "module" folder is exclusively for the use of modders, and is not needed to make the mod run; it is only if you want to edit things that you will need this folder.
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines.