NegativeMaxHealthFix
Stops the game setting your max health to negative, which happens for whatever reason.
Screenshots 1 screenshots
About this mod Author’s original text
Negative Max Health Fix - Stops the game setting your max health to negative, which happens for whatever reason.
What the fuck is this?
Negative Max Health Fix is a mod that attempts to fix an issue where the game sometimes, for no clear reason, sets a characterbody's max health to a negative value.
Care to be more of a nerd?
No, because genuenly i have no fucking idea why this happens at all.
It was said that apparently this bug was caused by Holy.dll's multithreaded code, however, it can continue happening even if you where using the "fixed" version that can be found on the discord server.
After hating this bug for so long, i've decided to try and find out a reason why this was happening by hooking directly into the MaxHealth's set method and recalculating stats if the incoming value was negative. While i couldn't find the reason, i did notice that my mod stopped at least 10 instances where the MaxHealth stat was being set to a negative value.
Oh also the mod will log a fatal error if MaxHealth is being set to negative, so if you find that in a log, feel free to send it my way, maybe we can find out what the fuck this is lol.
Why?
This bug is so fucking shit there's no way to replicate it and literally kills good runs it sucks and i want to kill it.
Donations
Feel free to give me a coffee here
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: