RimWorld

RimWorld

Quarry [Adopted]
jfullernz 27 Apr, 2023 @ 4:40am
Incompatibility with Miniminer (Linux)
Rimworld Version 1.4
OS: Linux Ubuntu 22.02
Works fine when Miniminer is removed, and Miniminer works when Quarry is removed, yet both together result in the following error trace when initializing the game.


[Quarry] Patch operation Verse.PatchOperationAdd(/Defs/ThingDef[defName="Mech_MiniMiner"]/race/mechEnabledWorkTypes) failed
file: /home/jasmine/.steam/debian-installation/steamapps/workshop/content/294100/2007576583/1.4/MiniMechMiner/Patches/Patches_Mech_MiniMiner.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 ()
< >
Showing 1-3 of 3 comments
Ogliss  [developer] 27 Apr, 2023 @ 1:37pm 
im afraid im unable to reproduce this, im unsure if its a linux specific issue- i dont have access to a linux system to test on, you are loading miniminer first aye?
jfullernz 28 Apr, 2023 @ 3:13pm 
Thanks, that was the problem. Quarry is auto-sorting to near the top and mini-miner is near the bottom. A manual drag to have mini-miner above quarry corrected the error. There was no loading order conflict through when it was below, and autosorting throws it out again.
Maybe something to look at for load order sorting if possible?
TurtleShroom 12 Jul, 2023 @ 12:05pm 
[Quarry - Start of stack trace] Verse.PatchOperationAdd(xpath="/Defs/ThingDef[defName="Mech_MiniMiner"]/race/mechEnabledWorkTypes"): Failed to find a node with the given xpath [End of stack trace] The top operation is the one that failed, the ones below it are the parents Source file: C:\Program Files (x86)\Steam\steamapps\workshop\content\294100\2007576583\1.4\MiniMechMiner\Patches\Patches_Mech_MiniMiner.xml

I have the solution for this error, and perhaps even OP's problem. The Mini-Miner doesn't have Work Types when your Patch searches for them.

Here is how to make a Patch that corrects that:
<Operation Class="PatchOperationConditional" MayRequire="ludeon.rimworld.biotech"> <!-- Does this exist? --> <xpath>/Defs/ThingDef[defName="Mech_Skullywag"]/race/mechEnabledWorkTypes</xpath> <!-- If it does, add this. --> <match Class="PatchOperationAdd"> <success>Always</success> <xpath>/Defs/ThingDef[defName="Mech_MiniMiner"]/race/mechEnabledWorkTypes</xpath> <value> <li>QuarryMining</li> <li MayRequire="dubwise.rimefeller">RimefellerCrafting</li> </value> </match> <!-- If it DOES NOT, add this instead. --> <nomatch Class="PatchOperationAdd"> <success>Always</success> <xpath>/Defs/ThingDef[defName="Mech_MiniMiner"]/race</xpath> <value> <mechEnabledWorkTypes MayRequire="ludeon.rimworld.biotech"> <li>QuarryMining</li> <li MayRequire="dubwise.rimefeller">RimefellerCrafting</li> </mechEnabledWorkTypes> </value> </nomatch> <!-- If the first XPATH does not exist, the original code stands. --> </Operation>
< >
Showing 1-3 of 3 comments
Per page: 1530 50