What am i doing wrong here

Started by 999999999BlackHole, March 06, 2023, 06:32:28 AM

Previous topic - Next topic

999999999BlackHole

I tried to make a patch to make it so that mechband antenna doesnt self destruct itself, and if i just delete that section in the def it works, but somehow when i use patch operation remove it doesnt work, here is the log:[Reuseable Mechbands] Patch operation Verse.PatchOperationRemove(Defs/ThingDefs_Buildings[defName="BurnoutMechlinkBooster"]/comps/li[3]) failed
file: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\Reuseable Mechbands\1.4\Patches\Patch.xml
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.PatchOperation:Complete (string)
Verse.LoadedModManager:ClearCachedPatches ()
Verse.LoadedModManager:LoadAllActiveMods ()
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__6_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()




And here is the code:<?xml version="1.0" encoding="utf-8" ?>
<Patch>
  <Operation Class="PatchOperationRemove">
    <xpath>Defs/ThingDefs_Buildings[defName="BurnoutMechlinkBooster"]/comps/li[3]</xpath>
  </Operation>
</Patch>