边缘世界 RimWorld

边缘世界 RimWorld

[Dizzy] Poor Sight Matters More
moo 6 月 25 日 下午 10:19
1.6 patch failing
[[Dizzy] Poor Sight Matters More] Patch operation Verse.PatchOperationReplace(Defs/StatDef[defName="MoveSpeed"]/parts/li[1]/factorFromGlowCurve/points/li[1]) failed
file: Z:\SteamLibrary\steamapps\workshop\content\294100\3392675400\Patches\SightAffectsSpeed.xml
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch2 (string)
Verse.PatchOperation:Complete (string)
Verse.LoadedModManager:ClearCachedPatches ()
Verse.LoadedModManager:LoadAllActiveMods (bool)
Verse.PlayDataLoader:DoPlayLoad ()
Verse.PlayDataLoader:LoadAllPlayData (bool)
Verse.Root/<>c:<Start>b__10_1 ()
Verse.LongEventHandler:RunEventFromAnotherThread (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__28_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 ()

Mod list at https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3507289931
< >
正在显示第 1 - 8 条,共 8 条留言
moo 6 月 29 日 下午 3:10 
XML extensions is out - so here's more context:

[[Dizzy] Poor Sight Matters More - Start of stack trace]
Verse.PatchOperationReplace(xpath="Defs/StatDef[defName="MoveSpeed"]/parts/li[1]/factorFromGlowCurve/points/li[1]"): 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: Z:\SteamLibrary\steamapps\workshop\content\294100\3392675400\Patches\SightAffectsSpeed.xml
Dizzy Ioeuy  [开发者] 6 月 29 日 下午 3:41 
There are 472 mods in that list... I am not about to dig through it and then find the exact incompatibility. Poor Sight Matters works without any errors in vanilla v1.6. You need to troubleshoots your mods.

Having said that, I have a guess for you that it is this code, from the mod Stats Matter (continued):

<Operation Class="XmlExtensions.ApplyPatch">
<patchName>MoodMatters_MoodPatch</patchName>
<arguments>
<li>movespeed</li>
<li>Move speed</li>
<li>MoveSpeed</li>
<li>90</li>
<li>110</li>
</arguments>
</Operation>

That reads as a brutal table change.

But I could be wrong. In fact I likely am... 471 more mods to go.

XML extensions is a ♥♥♥♥♥♥♥ mess and once that mod is in place, and another mod depends on it to operate, I'm not likely to be of any further help.

Good luck.
moo 6 月 29 日 下午 3:43 
Ok, I'll see if the mod author can check that

Thanks!
velcroboy333 6 月 30 日 下午 12:40 
Stats Matter maintainer here. That patch doesn't come from my mod it does not use XML Extensions. I tested both these mods together and they work as intended just fine. Must be another mod.
velcroboy333 6 月 30 日 下午 12:43 
Oh, I see where you got that from now. I forgot I had some experimental stuff I was testing for fun. That file is only a .txt file though and should not have any effect.
moo 7 月 4 日 下午 3:46 
Found it, Rimbody - Stat Module
Dizzy Ioeuy  [开发者] 7 月 5 日 下午 3:56 
Yep, he adds a <li> definer and changes the entry:

<Operation Class="PatchOperationAdd">
<xpath>*/StatDef[defName = "MoveSpeed"]/parts</xpath>
<order>Prepend</order>
<value>
<li Class="Maux36.Rimbody_StatModule.PhysiqueFatHinderancePart"/>
</value>
</Operation>
Maux 7 月 7 日 下午 4:33 
Rimbody developer here.

It seems your patch relies on list ordering, but isn't that bound for incompatibilities like this? You'll have conflict with any mod that prepends statparts on move speed. And it being a stat, I can see many mods would want to add to parts.

I believe the better compatibility would be for this mod to implement targeted patch by doing something like li[Class="StatPart_Glow"] instead of li[1]?
最后由 Maux 编辑于; 7 月 7 日 下午 4:33
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50