边缘世界 RimWorld

边缘世界 RimWorld

Quarry [Adopted]
jfullernz 2023 年 4 月 27 日 上午 4:40
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 ()
< >
正在显示第 1 - 3 条,共 3 条留言
Ogliss  [开发者] 2023 年 4 月 27 日 下午 1:37 
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 2023 年 4 月 28 日 下午 3:13 
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 2023 年 7 月 12 日 下午 12:05 
[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>
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50