RimWorld

RimWorld

[Dizzy] Poor Sight Matters More
moo 25. juni kl. 22: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
< >
Viser 1-8 af 8 kommentarer
moo 29. juni kl. 15: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  [udvikler] 29. juni kl. 15: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 29. juni kl. 15:43 
Ok, I'll see if the mod author can check that

Thanks!
velcroboy333 30. juni kl. 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 30. juni kl. 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 4. juli kl. 15:46 
Found it, Rimbody - Stat Module
Dizzy Ioeuy  [udvikler] 5. juli kl. 15: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. juli kl. 16: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]?
Sidst redigeret af Maux; 7. juli kl. 16:33
< >
Viser 1-8 af 8 kommentarer
Per side: 1530 50