Sunday, September 5, 2021

Disgaea PC [OpenGL]





3D Vision fix for Disgaea PC. This fix was made using Helifax's OpenGL wrapper and this game has a 60fps cap, meaning that the amount of fps per eye that you will get is 30 (each original frame goes only to one eye).


Fixed
- Stereoized graphics with the necessary custom formula.
- Shadows.


Known issues
- SSAO isn't fixed (I can't hunt shaders and I can't fix it filtering by depth). Don't use that option in the game.
- Some geometry during some special attack animations that put the area very far away, that geometry may become partially 2D. This was necessary to fix shadows, because I can't hunt individual shaders.
- If stages have a background image instead of solid color, that image will be shown at screen depth. Once again, since I can't hunt shaders, I can't stereoize the backgrounds without breaking important things.


Installation
- First run the game at least once to configure it in fullscreen mode and all the other options you want (but don't use SSAO).
- Download this file and extract its contents in the "Disgaea PC" folder, where "dis1_st.exe" is.
- Modify the "dis1_st.exe" properties to always run as administrator.
- Check "3DVisionWrapper.ini". It's configured for 3D Vision monitors by default, but you can change "AlternativeView_Mode" to other values to use SBS or TAB formats.
- Run the game.

Those would be the basic instructions to run the game, but this PC port has a mandatory low internal resolution that can only fixed by using the "Pretty Prinny" mod (an early version of Special K). The problem is that it uses an "OpenGL32.dll" file that conflicts with the fix. The way to solve it? Global injection. The global injection instructions (it's very different from the current easy to use Special K global injection) are explained with an example for Tales of Zestiria here: https://github.com/Kaldaien/TZF/releases/tag/tzf_inject

You'll need the files from the "PPrinny_0_7_x.7z" release.

When everything is set, it will be like this:
- "PrettyPrinny.dll" and "PrettyPrinny.ini" have to be in the "Disgaea PC" folder. Remember to configure your desired internal resolution and other things in the ini.
- The "C:\Users\[YOUR USERNAME HERE]\Documents\My Mods\SpecialK\Profiles\Disgaea PC" will contain a "SpecialK.ini" file (the "OpenGL32.dll" one from the "PPrinny_0_7_x.7z" file, but renamed). That file will contain this block:

[Import.PrettyPrinny]
Architecture=Win32
Role=PlugIn
When=Early
Filename=PrettyPrinny.dll

- In the regedit window, at the "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows NT\CurrentVersion\Windows" location, the "AppInit_DLLs" key should point to the custom location of what was the Pretty Prinny "OpenGL32.dll" file renamed to "SpecialK.dll". Example: "D:\Prinny\SpecialK.dll".
- The "LoadAppInit_DLLs" regedit value should be set to 1 just before you start to play, and set to 0 right after you start playing (I've seen it try to load into other programs if left to 1).


Last thing but also very important: the game has a memory leak problem while playing. As you play more and load more maps, "dis1_st.exe" will use more and more RAM until it crashes. I recommend using the "Large Address Aware" program to allow it to use more RAM. It will make it last longer. The game is alt+tab friendly, so I recommend checking how much RAM it's using every once in a while. I recommend rebooting the game when it's over 2.2 or 2.4GB. That's more or less the danger point (RAM and VRAM share the limit, so you won't see it reach even close to 4GB of system RAM).


Extra note: to hide the top right information window you will probably need to hold the "Pause" key for a few seconds.


Hotkeys (numbers aren't from the numpad)
i: toggle that gives more depth to the usual hub and battle maps. High setting. It may make some special attacks have too much separation. I recommend playing with this or the medium setting. This makes you need more convergence.
o: toggle that gives more depth to the usual hub and battle maps. Medium setting, not so extreme as the previous hotkey. It may make some special attacks have too much separation. I recommend playing with this or the high setting. This makes you need more convergence.
p: toggle for normal depth formula. Not much needed since the previous ones are toggles, but it can help you confirm in what setting you are.
l: high convergence toggle (the value is 6). The default value is 3. Keep in mind that using this toggle will block the normal convergence increase/decrease keys.


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

2 comments:

  1. Thanks for the fix! the link is not working, but will try this out!

    ReplyDelete
    Replies
    1. The direct link to the Pretty Prinny 7z was broken, yes (the blog changed the link for a weird reason. Now it's fixed). But you were already able to download it from another link posted before. Neither are hosted by me anyway.

      Delete