RimWorld

RimWorld

Job Splitter
👑KeirLoire 29 May, 2023 @ 12:32pm
Patch Operation Error with /Common/Patches/Mods/Vanilla Factions Expanded - Mechanoids.xml
The error is due to <allowedWorkTypes> placeholder is not found. And I can't seem to find the git repository with the 1.4 update and I really want to make a PR for this.

<Patch> <!-- Vanilla Factions Expanded - Mechanoids --> <Operation Class="PatchOperationFindMod"> <mods> <li>Vanilla Factions Expanded - Mechanoids</li> </mods> <match Class="PatchOperationSequence"> <operations> <li Class="PatchOperationConditional"> <xpath>/Defs/ThingDef[defName = "VFE_Mechanoids_AutohaulerBase"]/comps/li[@Class = "VFE.Mechanoids.CompProperties_MachineChargingStation"]/allowedWorkTypes</xpath> <nomatch Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[defName = "VFE_Mechanoids_AutohaulerBase"]/comps/li[@Class = "VFE.Mechanoids.CompProperties_MachineChargingStation"]</xpath> <value> <allowedWorkTypes> <li>Rearming</li> <li>Loading</li> <li>Mortifying</li> <li>Delivering</li> </allowedWorkTypes> </value> </nomatch> <match Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[defName = "VFE_Mechanoids_AutohaulerBase"]/comps/li[@Class = "VFE.Mechanoids.CompProperties_MachineChargingStation"]/allowedWorkTypes</xpath> <value> <li>Rearming</li> <li>Loading</li> <li>Mortifying</li> <li>Delivering</li> </value> </match> </li> <li Class="PatchOperationConditional"> <xpath>/Defs/ThingDef[defName = "VFE_Mechanoids_AutominerBase"]/comps/li[@Class = "VFE.Mechanoids.CompProperties_MachineChargingStation"]/allowedWorkTypes</xpath> <nomatch Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[defName = "VFE_Mechanoids_AutominerBase"]/comps/li[@Class = "VFE.Mechanoids.CompProperties_MachineChargingStation"]</xpath> <value> <allowedWorkTypes> <li>Drilling</li> </allowedWorkTypes> </value> </nomatch> <match Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[defName = "VFE_Mechanoids_AutominerBase"]/comps/li[@Class = "VFE.Mechanoids.CompProperties_MachineChargingStation"]/allowedWorkTypes</xpath> <value> <li>Drilling</li> </value> </match> </li> </operations> </match> </Operation> </Patch>
Last edited by 👑KeirLoire; 29 May, 2023 @ 2:13pm
< >
Showing 1-1 of 1 comments
👑KeirLoire 29 May, 2023 @ 12:49pm 
Don't mind my suggested code because it is also causing an error, just remove the Patch because it really is pointless. Upon digging deeper, CompProperties_MachineChargingStation doesn't really have allowedWorkTypes property anymore.

/2023507013/Source/VFECore/VFECore/Compos/ThingComps/CompProperties_MachineChargingStation.cs
Last edited by 👑KeirLoire; 29 May, 2023 @ 2:11pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50