ThinkInvis / RoR2-TILER2

A library mod for Risk of Rain 2.
GNU General Public License v3.0
2 stars 1 forks source link

StatHooks: failed to apply IL patch (regen modifiers) #15

Closed Undead-Tech closed 3 years ago

Undead-Tech commented 3 years ago

With Aetherium installed Tiler2 throws the above error. Now I'm not exactly sure how this effects the mods that throw the error when they try to hook RecalculateStats (theres a few) however given 3.0.4 attempts to prevent this I figured to report about it.

LogOutput.log

Undead-Tech commented 3 years ago

Well, one thing I have noticed is massive hp regen when you have shields, disabled aetherium and it was normal.

ThinkInvis commented 3 years ago

Basically, this means that both TILER2 and another mod (probably Aetherium in this case) tried to change the same bit of vanilla code, and that that other mod got to it first and changed it sufficiently that TILER2 can no longer recognize what it's supposed to modify.

Because of how much of a vitally important mess RecalculateStats is, it's one of the most likely places for this to happen. I'll try to see about making my IL patch more resilient, but it might be that Aetherium's author has to change theirs instead.

cheeeeeeeeeen commented 3 years ago

This is one of the reasons why I didn't want to separate from TILER2. It's too precious for me to leave behind.

ThinkInvis commented 3 years ago

Closing as a moot point: StatHooks is no longer a TILER2 module, and has been migrated to R2API.RecalculateStatsAPI. Coincidentally, this should make it more compatible with other mods -- or at least less likely to be the one to break.