Saturday, June 15, 2019

Final Fantasy IX







3D Vision and geo-11 fix for Final Fantasy IX. It requires dgVoodoo to wrap DX9 to DX11. Tested mostly with the Moguri Mod, which provides features such as 16:9 aspect ratio, upscaled backgrounds, and some reorchestrated music. The fix works without it (I made it with regex), but I recommend using it.

Update (2022-07-23): added geo-11 fix, completely redone in a better way (multiple hotkeys are removed now, and others were changed or added), and confirmed working with dgVoodoo v2.79 and all older versions. Also confirmed working with the latest Moguri Mod (version 8.3.0.0). The 3D Vision fix will remain outdated.


Fixed
- Polygonal graphics are now stereoized.
- Things that appeared only in one eye (cutscenes, some HUD text and pictures, battle swirl, etc).
- Stereoized prerendered backgrounds by using the hidden depth the game provides. Optional button/key to switch graphics to mono when in those areas.
- Rain.
- Spells and other battle effects.
- HUD at depth and hotkeys for it.
- Added a fog and draw distance hotkey, if you want to see more of the overworld.


Known issues
- Status effects on characters during battles are at more depth than they should. In theory I can't touch them due to conflicts with other elements. I also tried to get real depth out of them, and even though there's something there, it breaks with different camera angles during battles.


Installation
- geo-11 (with build v0.6.40): download this file and extract its contents in the "FINAL FANTASY IX\x64" folder, where "FF9.exe" is. Remember to edit "d3dxdm.ini" to change your "direct_mode" to the output you need. It's sbs by default. For 3D Vision monitors, use "Borderless Fullscreen" in the Moguri Mod configuration (the fix forces flip model) and "direct_mode = nvidia_dx11" in "d3dxdm.ini".
- 3D Vision (outdated): download this file and extract its contents in the "FINAL FANTASY IX\x64" folder, where "FF9.exe" is.
- Download the latest version of dgVoodoo. Confirmed latest working version is v2.79.
- Copy the "D3D9.dll" file from the "MS\x64" dgVoodoo folder to the "FINAL FANTASY IX\x64" folder.
- Open "dgVoodooCpl.exe" to configure the game like this (you can use different resolution, AA and texture filtering settings):





- After applying the settings, it should have generated a "dgVoodoo.conf" file in the "FINAL FANTASY IX\x64" folder.
- Launch the game.

My Moguri Mod configuration:




(REALLY OLD INSTRUCTIONS, NOT NEEDED FOR GEO-11) IMPORTANT INSTRUCTIONS: Triggering exclusive fullscreen and 3D Vision
If you are using the 391.35 drivers, you can skip this section. The game will work in 3D as is, as long as you don't disable fullscreen optimizations.

If you have newer drivers, the game will be in 2D. This is because it uses an old Unity engine version that doesn't have an exclusive fullscreen command option.
To enable 3D, you need Special K. At the time of writing this post, I have been using the 10.1 version.
- Copy the "SpecialK64.dll" to the "FINAL FANTASY IX\x64" folder and rename it to "dxgi.dll".
- Run the game once so it generates a "dxgi.ini" file. The game may crash this time.
- Open "dxgi.ini" and set the following existing options to these values:

d3d9=false
d3d9ex=false
d3d11=true
d3d12=false
Vulkan=false
OpenGL=false
SafeFullscreenMode=true

Then run the game and press alt+enter. It should trigger 3D Vision and you will see the HUD at depth. At this point, you can't alt+tab or alt+enter the game anymore. It will crash if you do it. The Steam overlay works.

If those settings weren't enough to trigger 3D, try these too:

Borderless=true
Fullscreen=true

Or as a last resource:
OverrideRes=2560x1440 (or whatever resolution you use). Default is "0x0".




Recommended profile settings
The game isn't demanding, so I recommend using 8xMSAA in dgVoodoo and then using Nvidia Profile Inspector to enhance the existing AA and use 8xMSAA + 8xSGSSAA if you have a lot of performance to spare, maybe with some negative LOD bias too.


Hotkeys (not from the numpad)
1 or XB_RIGHT_THUMB: convergence presets (0, 2, 4, 8, 12). 4 by default.
2: HUD depth presets. 40% depth by default.
3: HUD toggle. Not disabled by default.
4: overworld fog and draw distance toggle. Not disabled by default. One press disables the fog. The second press also increases draw distance (see the overworld screenshot in the blog post). The third press goes back to default.
5 or XB_LEFT_THUMB: toggle to set 2D backgrounds (and 3D characters in them) to 2D, at the same depth as your current HUD depth setting. This doesn't affect the overworld or battles, so you can use it if the game makes the 2D backgrounds hard to see correctly.


(Old information) You can discuss the fix and the game here. Note: I haven't played finished the game yet. If it needs an update, I'll do it.


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

6 comments:

  1. Can't wait to play this again in 3D! Never even knew about the Moguri mod!

    ReplyDelete
  2. awesome work, again :) fixed my infamous black screen / no music on startup issue … just one problem / newb question ^^; how do I hide the special k UI? I click close box and it always comes back... then game crashes?

    ReplyDelete
  3. also, alt+enter doesn't do anything for me, nor does ctrl+t. ctrl+shift+backspace won't close my special k control panel either. crashes every time on title screen

    ReplyDelete
  4. Hello, maybe I missed something, can somebody tells me where I can find "d3dxdm.ini" file ?

    ReplyDelete
    Replies
    1. Okay, I found it ! But it doesn't works for me. No 3D Vision. :-(

      Delete
  5. To clarify for anyone.

    It didn’t work with the newer dgvoodoo 2.83 but did with one masterotaku specified (2.79)

    Fix is amazing this game is awesome

    ReplyDelete