bo3b / 3Dmigoto

Chiri's DX11 wrapper to enable fixing broken stereoscopic effects.
Other
788 stars 124 forks source link

Help with overlay text #122

Closed CasketPizza closed 4 years ago

CasketPizza commented 4 years ago

I have little idea on how this is working or any of its proper uses but I'm so close to achieving my goal. I've read through all the ini files I can but can't find anything about changing the overlay text. I managed to get a toggle key for hunting on/off, but that re-enables the parts of the hud I want disabled, and marking them doesn't create replace.txt files. It gives some sort of error, but I'm able to achieve nearly what I need by cycling through with 1, 2, 4 and 5, but then the only thing that's in the way now is 3Dmigoto's green text overlay. I just need to hide it while keeping it enabled, or change the font to an invisible typeface, maybe setting it to 0, any ideas? PLEASE I'm SO CLOSE, pretty much begging for help! bitmoji

bo3b commented 4 years ago

You can turn off the overlay with the Numpad 0 key. This is a toggle, where you can on/off at will. This is the hunting=2 setting. And the toggle_hunting key by default. There are extensive comments in the hunting section of the d3dx.ini that explain this.

It can also be disabled completely in the d3dx.ini file, for a small performance bump.

If you are trying to just disable parts of a HUD or a UI, you can use the 'skip' feature of [ShaderOverride*] sections. It's OK to get errors on the HLSL dumps, for 'skip' you are just looking for the hash code for the shader in question.

CasketPizza commented 4 years ago

Thanks for the quick reply <3 i have read through that all and yes it disable the overlay, but as i mentioned above, it re-enables the shaders its hiding, and doesnt write a replace.txt file to disable perminantly. I've uploaded a video of what its doing here. https://youtu.be/x3nf-65s-UU I just need to keep the hidden elements hidden, while also hiding the text.

bo3b commented 4 years ago

If I'm understanding what you want, the best way to do this is what I said in the second half of the prior response. You just make a [ShaderOverride*] section with the hash= the number you hunted, and then add handling=skip. It's not at all hard. Read the section in the d3dx.ini about [ShaderOverride]. If you do some google searches you can find multiple examples of people having done this for no-HUD gaming.

The hunting process is named 'hunting' for a reason. It's not the way to disable shaders, except temporarily while you are hunting for the one in question. The shader is disabled so that you can see what it does. There are other options like pink that make it stand out instead. Once you find the shader you want to disable you hit the 'mark' key to save the shader code and give you the hash code. You can look in the log or in the ShaderFixes folder to find the hash code, which will be part of the filename.

https://github.com/bo3b/3Dmigoto/wiki/Using-3Dmigoto-to-find-and-fix-shaders

DarkStarSword commented 3 years ago

(This is in reply to an email from the OP on a semi-related topic that for some reason came through this bug report despite their question not showing up here)

3DMigoto will usually draw the overlay to the back buffer just before the present call, but there is a way to override that to draw at any other arbitrary point(s) in the frame, which is usually used to solve issues like the overlay only drawing in one eye in 3D Vision Direct mode, making it show up on Steam in home streaming, etc - but can also be used to redirect it somewhere that won't end up on the screen at all.

The simplest way is probably to draw the overlay immediately after the present call rather than before it, on the assumption that the game is going to draw over every pixel on the screen, thereby covering up the overlay. This addition to the present command list should do the trick:

[Present] post special = draw_3dmigoto_overlay

Considering that you will be running with hunting on, but no longer able to see what is happening in hunting mode, you might also want to disable any key bindings related to hunting (all the prev/next keys, the numpad 0 hunting toggle, etc).

Cheers, -Ian

On Tue, 19 Jan 2021 at 03:24, Chaiechan notifications@github.com wrote:

Hi bo3b, I have a problem with 3Dmigoto and need your help. The subject is Mafia III DE, the bad optimized game, and I have 2 issues with it. Firstly, the fps cap and I managed to fix it. However, there is another issue; the stuttering. I want to play this game smoothly and tried a few things but failed. But after setting 3Dmigoto, the game started to run smoothly. I have no idea how it works but the problem is solved. However, there is still a tiny problem; overlay text. Numpad 0 key hides it but also the smoothness goes away. "Key to turn hunting itself on/off. This will also show/hide overlay." I don't want to turn hunting off. I just want it running without overlay. Like sonatamartica, I'm so close to achieving my goal and need your help too much.

Footnote: I have nothing to do with shaders by the way.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/bo3b/3Dmigoto/issues/122#issuecomment-762351640, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAC4WZJI4WCLLHNAYWTH52DS2ROFPANCNFSM4K7VZFJA .

-- http://darkstarsword.net http://darkstarshout.blogspot.com http://github.com/DarkStarSword

symant233 commented 1 year ago

Also if you want to use 0 in game but not to toggle overlay, you can change toggle_hunting in d3dx.ini to toggle_hunting = no_modifiers VK_F12 and press F12 in game.