Ludeon Forums

RimWorld => Mods => Help => Topic started by: iceshard87 on April 16, 2022, 11:30:59 PM

Title: CE Patch help request: ArmorRating_Blunt/Sharp not applying to attacks
Post by: iceshard87 on April 16, 2022, 11:30:59 PM
(copied from my Steam workshop discussion post)
(If I am in the wrong place, let me know and I will move/delete this)

Looking for assistance troubleshooting a custom CE compatibility patch. The patch applies correctly, and all updated stats show in the creature's info box, but attacks seem to ignore the new ArmorRating_Blunt and ArmorRating_Sharp values. 23 MM RHA still takes bleeding wounds from low caliber handguns, buckshot, and small manhunting animals. 37 MPa blunt armor still takes full damage from unmodified, no-bionics/archotech, human fists.

Update: Bumped it to 230 MM RHA and 370 MPa, same results.

I suspect it may have something to do with how the race is defined in the original mod, but I don't know enough about it.

Patch (note, not remotely balanced yet): https://pastebin.com/iD9agDVm
Screenshot of attacks: https://imgur.com/a/0kSyOV8

Mods:
Combat Extended
A Rimworld of Magic (Defs/GolemDefs)

Tested with:
Marble Golem and Hollow Golem (Defs/GolemDefs/Golem_Race_Base.xml)
Title: Re: CE Patch help request: ArmorRating_Blunt/Sharp not applying to attacks
Post by: RawCode on April 30, 2022, 01:04:40 AM
you should test in _vanilla_ first and only after getting something that works well in vanilla try with mods.

as due to current implementation of modding "framework" any mod may hijack logic behind wounds with custom code and no matter how hard you try something, it may just not work in your 1337 mods setup.
Title: Re: CE Patch help request: ArmorRating_Blunt/Sharp not applying to attacks
Post by: iceshard87 on May 08, 2022, 03:44:22 AM
Quote from: RawCode on April 30, 2022, 01:04:40 AM
you should test in _vanilla_ first and only after getting something that works well in vanilla try with mods.

as due to current implementation of modding "framework" any mod may hijack logic behind wounds with custom code and no matter how hard you try something, it may just not work in your 1337 mods setup.

I don't understand this ridiculous response.  I am literally trying to make a patch to make certain elements of a mod that I DID NOT MAKE compatible with CE.  I did, in point of fact, test it with nothing but the mod in question and CE enabled, and my patch did not work.  I am not sure what you are thinking I am should try, since the patch has no purpose if no mods are enabled.  Thank you for being an idiot, I guess?