Fog Fix & More - C3-FD Patcher 1.2.0

   (1 review)

4 Screenshots

About This File

While you sleep in the medical room, C3-FD is patching your game.
cslkm2tutzab1.png.8471afc5071be91010258f773676ab57.png

Restores fog and reflections which were broken in the Aspyr update. Works with both Steam and GOG versions. Only works on an unmodified swkotor2.exe. WIndows systems only.

Included EXE Patches:
- Fog Fix
- Reflections Fix
- 4GB Patch
- Subtle Color Shift
- Music Volume During Dialogue Fix

How to use: 
Place C3-FD_patcher.exe into your kotor2 game directory and run. It will patch your game exe with the fixes listed above.
It will check if you have an unmodified steam or gog version of the latest (Aspyr) patch, otherwise it wont run.
It will also make a backup of your original swkotor2.exe.

How this was made:
- The fog shading was just covered up when the latest version was released. I was able to send that data to the new Fracture shaders and apply fog coloring. It checks if the fog color is set to black and if not then it applies fog. Modules that don't use fog have a default fog color of black, Duxn and Dantoonie use a grayish color.
- The shader for when both a lightmap and a cubemap is applied, to the same model, had a typo. Cubemap was labeled as a '2D' instead of 'CUBE'. Easy fix.
Luckily the shaders are a plain text string, in the exe, and can be modified with a hex editor. The only issue is that the character length needs to be the same or smaller. The only way to get more data in the shader is to remove extra spaces/linebreaks and to shorten variables to single characters.
- The music was lowered so much during dialogue that it was almost non existent. I was able to find the functions for calling volume control, using ghidra. The call was made only 3 times and from there it was process of elimination. Ultimately disabling a variable change if in dialogue, before the first volume change call, worked.

Special Thanks:
HappyFunTimes101 - ShaderOverride - I could not have done this without this tool. This made sorting out and identifying the shader data much easier. I probably wouldn't have even attempted or known where to look if this didn't exist.
 JCarter426 - For pointing out that the music was broken during dialogue. I hadn't noticed but couldn't stand it after hearing for myself.

Source: https://github.com/J0-o/kotormods/tree/main/C3-FD_patcher


What's New in Version 1.2.0   See changelog

Released

fixed volume slider that wasn't working

  • Like 4



User Feedback

Recommended Comments

Is there anyway we could get a version of the patcher that lets us choose which components to install? The music/sfx lowering during dialogue is something I like having, but the fog fix and 4GB patch are great.

Share this comment


Link to comment
Share on other sites

        When you open the patcher it creates a folder with patch files. If you open that and delete the volume patch txt file before typing 'y' it  won't apply the volume patch    .                    

Share this comment


Link to comment
Share on other sites

Thanks for that, that works. I also noticed that M478's fog is unaffected by this fix and is still broken without the opengl shaderoverride.

Share this comment


Link to comment
Share on other sites

I just started a brand new game and warped there from the prologue. The fog doesn't work on M478. Oddly enough, I was able to see the fog working correctly on Dxun even on an old save, but either way the fog doesn't seem to work right on 808DRO, which is one of two radiation modules (with green fog).

Share this comment


Link to comment
Share on other sites
12 hours ago, HeyJoeHUN81 said:

Is it compatible with any other must have mods such as the restoration mod and the Community Patch??? :)

yes

  • Light Side Points 1

Share this comment


Link to comment
Share on other sites

I've noticed on the Ebon Hawk, the reflections (I assume its the reflections) look a bit off, like along the walls of the ship there are weird squares

Share this comment


Link to comment
Share on other sites
11 hours ago, Jiiprah said:

yes

Thanks for the quick reply! I tried but it tells me, the exe I have for my Steam version is an "unknown version", so the install process get aborted.

Probably could work if I did not alter with other mods already my exe-file... ^^ PS: I saw I can attach files here, so added my current, modded exe-file from my Steam version.

swkotor2.exe

Share this comment


Link to comment
Share on other sites

  If the exe has been altered, it won't work. Only works on the latest aspyr version from steam or GOG. Any other changes to the exe would need to be applied after C3-FD patcher.

12 hours ago, OMGitsJoemo123 said:

I've noticed on the Ebon Hawk, the reflections (I assume its the reflections) look a bit off, like along the walls of the ship there are weird squares

I noticed it looked odd as well. I booted up the old version and that's just how the ebon hawk use to look.

Share this comment


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.