Skip to content

[Bug]: PatchOperationReplace fails on K4G_Apparel_LabCoat due to missing node after K4G Empires of Old - Core update #4563

@ThresholdVoyager

Description

@ThresholdVoyager

Rimworld version: v1.6
Combat Extended version: v1.6.7.2.0
Combat Extended source (Steam, GitHub, etc.): Steam
Your operating system: Windows 11
Your mod list:
Harmony
RimWorld
RimWorld - Royalty
RimWorld - Ideology
RimWorld - Biotech
RimWorld - Anomaly
RimWorld - Odyssey
HugsLib
[K4G] Empires of Old - Core
[K4G] Empires of Old - The Alekeepers
[K4G] Empires of Old - The Engineers Institute
[K4G] Empires of Old - The Faceless Sultanate
[K4G] Empires of Old - The Harbingers of Death
[K4G] Empires of Old - The Medieval Alekeepers
[K4G] Empires of Old - The Red Hammer Union
[K4G] Empires of Old - The Rimworld Authority
[K4G] Empires of Old - The Rising Sun
[K4G] Empires of Old - The Starving Vagrants
[K4G] PawnKind Extension
[K4G] Vanilla Weapon Retextures
Combat Extended
Log Publisher from HugsLib

Description:
After a recent update to K4G Empires of Old - Core, the statBases/StuffEffectMultiplierArmor node under K4G_Apparel_LabCoat appears to have been removed or restructured. The existing CE compatibility patch still attempts a PatchOperationReplace targeting that node, which no longer exists, resulting in a patch failure error on every game load.

Expected behavior:
Successfully apply if the node still exists, or
Silently skip the operation (e.g. via PatchOperationConditional) if the node no longer exists in the updated mod — without throwing an error.

To reproduce:

  1. Install K4G Empires of Old - Core (Steam Workshop Link: https://steamcommunity.com/sharedfiles/filedetails/?id=2950690769) at its current version.
  2. Install Combat Extended (current steam version).
  3. Start the game and load any save, or start a new game.
  4. Open the game log — the PatchOperationReplace error for K4G_Apparel_LabCoat will appear on every load.

Screenshots & log dumps:
https://gist.github.com/HugsLibRecordKeeper/35ccf4bbe6bafaa095d674b8e0209e49

I hereby verify that I have done the following:

  • Confirmed that my game version and load order are correct.
  • Confirmed that I am running the appropriate and most updated version of Combat Extended and required compatibility patches.
  • Confirmed I am not running any mods with known incompatibilities with Combat Extended.
  • Disabled Combat Extended and attempted to reproduce the behavior without success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions