Wednesday, January 27, 2021

STAR WARS: The Force Unleashed 2 [DX9]





3D Vision fix for STAR WARS: The Force Unleashed 2.

Update (2021-01-28): added the missing "DX9Settings.ini" file to the fix, which was necessary for it to work correctly. Redownload the fix if you downloaded it before this date.


Fixed
- Shadows.
- Lighting.
- Lightning rays.
- Reflections.
- Haloing problems.
- Stereoized specular reflections.


Known issues
- You need to press F5 to fix shadows and lightning in a very short section of the game when you're directing a spaceship towards Kamino (a long QTE) and the following jump. Press it again when you are done with that section.
- When using force push you may notice the darkened edges of the screen being stereoized and too convergence dependant. I tried to fix that, but other effects needed me to not touch it.
- Decals have imperfect depth and lightsabers become somewhat doubled when they are near the screen with high convergence values. I tried to fix those problems, but I couldn't do it. At least their haloing problem should be fixed.
- If you see any video cutscene crashing because of the fix (I tried to minimize this problem, and after that it only happened to me once), you can either redo that section without the fix or rename the video file in "STAR WARS The Force Unleashed 2\Game\Disc\FMV\Win32" and then watch it with VLC or Windows Media Player.


Installation
- Download this file and extract its contents in the "STAR WARS The Force Unleashed 2" folder, where "SWTFU2.exe" is.
- Use Nvidia Profile Inspector to set these options like this:


StereoProfile: Yes
StereoTextureEnable: 0x00000027

- If you are using a modded exe for higher fps (I use the 60fps one and had no problems with it), set Windows 8 compatibility to "SWTFU2.exe". Otherwise 3D won't be enabled.
- Run "HeliXmodLauncher.exe". You can leave that CMD window open through multiple game sessions. If you're going to launch the game with admin rights, you also need to launch this with admin rights.
- Run the game. Remember to use your preferred convergence preset with F2.
- Warning: this is one of those DX9 games tries to force 60Hz no matter what, and that conflicts with 3D Vision trying to force 120Hz causing an infinite loop at launch. The way to solve it is using a custom resolution with only 120Hz or deleting all other refresh rates with CRU. This problem doesn't happen in 3D Vision Discover (anaglyph) and by extension in HelixVision.


Hotkeys and features
F2: three convergence presets (high, medium and low). If you manually change convergence after pressing this key and then you press F7, the value for this preset will be saved.
F5: toggle to correct shadows and lightning effects in a very short section of the game when you're directing a spaceship towards Kamino (a long QTE) and the following jump. By default, the rest of the game is correctly fixed.


Recommendations
- Use this all in one mod to get 60fps, restored wet effects, more costumes and challenges.
- If you have performance to spare, use Nvidia Profile Inspector to modify the "Star Wars: The Force Unleashed II" profile, setting "Antialiasing compatibility" to "0x000012C5", "Antialiasing - Behavior Flags" to "None", and then forcing SGSSAA (4xMSAA + 4xSGSSAA). Doc with the info. For example, 2560x1440 with 4xSGSSAA and a RTX 2080Ti uses around 60% of the GPU. After this, there's no reason to use the ingame AA.
- Video cutscenes weren't working for me at first, even without the fix. It was because my Windows Media Player wasn't configured (the first setup screens). Once I did that, they worked.


If you liked the fix and want to contribute for more future fixes, you can donate to this PayPal account: masterotakusuko@gmail.com

10 comments:

  1. Awesome work Master. Wish we'd had a sbs option for DX9 games with Helix wrapper.

    ReplyDelete
  2. Thanks masterotaku! But you not include the "DX9Settings.ini", so the fix is not working :(

    ReplyDelete
    Replies
    1. Oh man, I was clumsy. I'll correct that tomorrow in the morning and write it in the post as an update.

      Delete
    2. The update is uploaded. Redownload the fix and DX9Settings.ini should be there.

      Delete
    3. Thanks for the fix Master and welcome back DHR.

      Delete
  3. ah, ha! That was the culprit - I wasn't an idiot! (Well... in this case! :)

    Hey DHR... good to "see" you!

    ReplyDelete
    Replies
    1. (TheBigDogma... not sure why I am coming across as "Anonymous")

      Delete
  4. I couldn't solve the 60hz problem with a custom resolution or CRU, but I did manage to force 120hz with nvidia profile inspector... just set the "Preferred refresh rate" setting to "Highest available".

    Not sure if that works for other games, but it definitely works for TFU2 and seems to me a much easier/less intrusive method!

    ReplyDelete
  5. Hey masterotaku, i was wondering if you are able to do a "Hud Toggle"? Like the one you made for TFU1. I tried this myself, but none of the Debug "d3d9.dll´s" provided are working in this game. I really want a complete HUD toggle for this game. I would pay you (or anyone) 50$ for it. Please help me out... or at least tell me how i could possibly achieve this.

    ReplyDelete