Changelog: v1.2 - Add more hooks to trigger the mod function. v1.1 - Requires CatLib - Add menu called "Disable Near Fade" - Add options (v1.0 features): Disable enemy fade and disable camera zoom in when the player is close to an enemy - Add options: disable terrain fade and disable NPC fade - Zero performance impact
Note: Do not talk about the mod Disable Camera Overlap Transparency, because half of it is a copy&paste of my code into his mod without permission. This mod even keep my useless potential bad performance implementation, and rename all my variables to pretend its not a copy, very impressive work. It is funny to see my detailed comparision comment was deleted in that mod page. ostrich
the only reason im using the stolen mod of this version is because it had something this newer version removed, the ability to zoom in ro my hunter with photo mode without my hunter actually disappearing
The problem with the camera was actually 2 things going wrong.
1) When too much of the monster is off-screen, the game thinks that the monster is completely off screen and will fade out the monster. 2) When the monster is between the hunter and the camera, the camera thinks that the monster is terrain and will zoom in the camera.
The recent update fixed issue number 1, so the monster no longer completely fades out when he's mostly off screen. But, they still haven't fixed issue number 2, so the camera still keeps trying to zoom in when the monster gets between the player model and the camera.
Issue number 2 is still fixed by this mod, until the devs themselves decide to that too.
idk why but just wanna note. i was getting long freezes regulary with this mod. (all the freezes fix themselves but often it kicks me out of the party/link group kinda long) wish i could give more info on why so you can fix it but the moment i removed just this mod the freezes where gone.
To anyone experiencing issues with the mod not working until you manually disable and enable it after your save is loaded, I've managed to find a fix for this bug with help of MH Modding Discord. You need to open the .lua file provided by the mod in a text editor, and add the following line of code:
Hello Grzester! I have another mod that causes errors when launching the game, forcing me to turn it off and on (it works fine after that). Does this fix work with other mods too?
That's possible, yeah. This function call hooks the "Apply" function to the player camera, so that it runs when camera is loaded. Just replace "Apply" with the name of the function that causes you troubles.
Just be careful when copying from here. As GavinAndre mentioned, Nexus seems to add some invisible character at the beginning of the line, probably remains of formatting, which throws an 'unexpected symbol' error.
The thing is, I have absolutely no idea where to put this line in the first place. My problem is with this mod. It's a big one, with multiple lua files, so I'm completely lost here. I did ask about it, but no response yet.
would it be possible to have a range for the fade in instead of just a toggle, so we dont have to turn it all the way off or for environment to just turn the fade off on the ground since its useful for walls but visually ugly on the ground
180 comments
v1.2
- Add more hooks to trigger the mod function.
v1.1
- Requires CatLib
- Add menu called "Disable Near Fade"
- Add options (v1.0 features): Disable enemy fade and disable camera zoom in when the player is close to an enemy
- Add options: disable terrain fade and disable NPC fade
- Zero performance impact
Note:
Do not talk about the mod Disable Camera Overlap Transparency, because half of it is a copy&paste of my code into his mod without permission.
This mod even keep my useless potential bad performance implementation, and rename all my variables to pretend its not a copy, very impressive work.
It is funny to see my detailed comparision comment was deleted in that mod page. ostrich
1) When too much of the monster is off-screen, the game thinks that the monster is completely off screen and will fade out the monster.
2) When the monster is between the hunter and the camera, the camera thinks that the monster is terrain and will zoom in the camera.
The recent update fixed issue number 1, so the monster no longer completely fades out when he's mostly off screen. But, they still haven't fixed issue number 2, so the camera still keeps trying to zoom in when the monster gets between the player model and the camera.
Issue number 2 is still fixed by this mod, until the devs themselves decide to that too.
i was getting long freezes regulary with this mod. (all the freezes fix themselves but often it kicks me out of the party/link group kinda long)
wish i could give more info on why so you can fix it but the moment i removed just this mod the freezes where gone.
You need to open the .lua file provided by the mod in a text editor, and add the following line of code:
sdk.hook(sdk.find_type_definition("app.PlayerCameraController"):get_method("onStartCameraController"), nil, Apply)
I put it just above the `mod.Menu(...)` function at the bottom of the script.
After retrying, it's working fine now. I believe the issue was due to non-visible characters when I was copying the text.
Thanks for allowing me to merge this fix!
Just be careful when copying from here. As GavinAndre mentioned, Nexus seems to add some invisible character at the beginning of the line, probably remains of formatting, which throws an 'unexpected symbol' error.
would it be possible to have a range for the fade in instead of just a toggle, so we dont have to turn it all the way off
or for environment to just turn the fade off on the ground since its useful for walls but visually ugly on the ground
or is it locked to on or off