Monday, October 23, 2023

Yakuza Kiwami 2






3D Vision and geo-11 fix for Yakuza Kiwami 2. It includes improvements for arcade games.

Update (2023-10-23): added geo-11 fix. Autoconvergence enabled by default, and with lots of automatic presets for the many minigames of the game. Dynamic depth for some elements. A lot more properly fixed effects.
Update (2021-04-11): fix merged with the Yakuza 6 fix (except two configurations), with some improvements and more fixed effects (like blood). Automatic convergence presets are disabled in favor of better performance. Use the left stick click to quickly use low convergence if you need it.


Fixed
- Shadows.
- Lighting.
- Clipping.
- Sun light.
- Realistic specular reflections.
- Screen space reflections.
- Ambient occlusion.
- Motion blur.
- Water and its related reflections.
- Rain, which appears in very few cutscenes.
- Blood.
- Decals.
- Haloing problems.
- HUD at depth with fixed clipping.
- Stereoized arcade games, with new aspect ratio and scanlines options.
- And more small fixes.


Known issues
- The mirrors in the back room of the cabaret club are inverted. I couldn't find a way to fix them without affecting the rest of the game.


Installation
- (geo-11, with build v0.6.182): download this file and extract its contents in the "Yakuza Kiwami 2" folder, where "YakuzaKiwami2.exe" is. Remember to edit "d3dxdm.ini" to change your "direct_mode" to the output you need. For 3D Vision monitors, both "nvidia_dx11" and "nvidia_dx9" work, but "nvidia_dx9" has much worse performance.
- (Older 3D Vision fix, for historic purposes or 2D users): download this file and extract its contents in the "Yakuza Kiwami 2" folder, where "YakuzaKiwami2.exe" is.
- Run the game and let it overwrite the profile the first time.
IMPORTANT for 3D Vision users: in the ingame options, choose fullscreen.


Information about automatic convergence
By default (if you haven't used the previous work in progress fix or manually saved convergence), the fix is shipped with a low convergence value (0.6), but gameplay automatically switches to higher convergence (2.0). There are also automatic combinations of convergence and HUD depth for playind darts, cabaret club dates and Majima Construction missions.

In the end I didn't enable a preset for heat moves, because it was triggered sometimes during normal battle situations. Click the left stick button or press 3 to manually switch to low convergence to enjoy those moves better.

The fix relies on having a low convergence setting saved as default, remember that. If you want to disable all automatic convergence stuff, open "d3dx.ini" and remove all "preset = " lines, except for the "preset = Arcade" ones.



Information about arcade games
Without the fix, arcade games (Virtua Fighter 2.1 and Virtual On) were 2D, with borders, 4:3 and with scanlines.

With the fix, they will cover the full 16:9 screen area, be in 3D, have tweakable HUD depth, and with disabled scanlines. Wider aspect ratios are untested. The drawbacks of the extended view area are that the internal 1024x768 resolution gets stretched and the internal HUD looks more pixelated.

Example1
Example2

The related constants in "d3dx.ini" are y5 (scanlines), z5 (X axis) and w5 (Y axis). Press "F6" to enable scanlines, press "1" (not the numpad) to switch between three X axis border settings, and press "2" (not the numpad) to switch between two Y axis border settings.

If you want to use the default aspect ratio, set y5 to 0, z5 to 1 and w5 to 1.


Hotkeys (numbers aren't from the numpad)
F1: convergence presets (only if you disable autoconvergence). The last two are very high, intended for the arcade game Virtual On. You will have to manually change them for Virtua Fighter 2.1, because there wasn't a way to add an automatic convergence preset that didn't make Virtual On more annoying to use.
XB_LEFT_THUMB (L3) or 3: low convergence (0.6) toggle (only if you disable autoconvergence), good for non important cutscenes that still trigger gameplay convergence, or for heat moves.
F2: HUD depth presets. 40% depth by default. It doesn't affect prerendered cutscenes, to avoid other unintended effects.
- F3: HUD toggle. Not disabled by default.
F5: partial depth of field toggle (some closeups). Not disabled by default. Just use the ingame DoF setting if you want to disable it.
F6: arcade scanlines toggle. Disabled by default.
1: arcade X aspect ratio presets. Full 16:9 screen by default.
2: arcade Y aspect ratio presets. Full 16:9 screen by default.
4: convergence and HUD depth preset made for the Majima Construction minigame.



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

12 comments:

  1. awesome work like usual Masterotaku!
    Huge thanks for all the hard work

    ReplyDelete
  2. You are doing God's work. Thanks alot! Long live 3D Vision even if Nvidia doesnt GAF about it anymore.

    ReplyDelete
  3. Is there a way to disable the filtering in the arcade games?

    ReplyDelete
    Replies
    1. The fix disables the scanlines (which can be reenabled with a hotkey), but there isn't any extra filtering going on. Arcade games internally run at 1024x768, apparently with supersampling. I can't change that resolution, and that's why they can look low resolution or blurry.

      Delete
  4. Is this mod available at Yakuza Kiwami 2 section at Zettamods?
    Where else can I download the mod?

    ReplyDelete
    Replies
    1. Worth noting that Zettamods is now dead, and we are still hosting the mod properly. Don't get our mods from other random sites that can't be trusted.

      Delete
  5. Is there any way to enable the steam overlay when using this? Thanks!

    ReplyDelete
    Replies
    1. Good news for you here- download the dxgi loader we use for 3Dmigoto here:
      https://github.com/bo3b/3Dmigoto/releases/download/1.3.16/dxgi.dll

      And drop that into the game folder. That changes the order of hooking and allows the steam overlay to install and run.

      Delete
    2. Awesome! Thank you!

      Delete
    3. Wow @bo3b, the sizes of each .dll are so, different. The one that came with this mod is 3.2Mb, and the one you provided is 144Kb. Why such a differences? - Thank you again for helping.

      Delete
    4. The dxgi.dll is just a loader, so it's small. All it does is force the d3d11 to get loaded earlier than normal. I built it just for cases like this where we want to change load order. You still need all the other files in the fix.

      Delete
  6. Totally appreciate your assistance.
    FYI, I just tried it, and F3 no longer toggles the HUD, but the Steam Overlay does load.

    ReplyDelete