REDDEV1L24 Posted August 6, 2023 Share Posted August 6, 2023 Getting the below errors when adding these mods and not quite sure where I am going wrong: 2023-08-06T14:16:02 9.484 ERR XML loader: Patching 'blocks.xml' from mod 'BetterStorageOptions' failed: 2023-08-06T14:16:02 9.489 EXC XML.Patch (/configs/remove, line 4 at pos 6): XPath evaluation failed: Expression must evaluate to a node-set. at XmlPatcher.singlePatch (XmlFile _targetFile, System.Xml.Linq.XElement _patchElement, System.String _patchName) [0x00104] in <1eaf79639651486d80e6ce2c0c04b960>:0 at XmlPatcher.PatchXml (XmlFile _xmlFile, XmlFile _patchXml, System.String _patchName) [0x00028] in <1eaf79639651486d80e6ce2c0c04b960>:0 at XmlPatcher+<LoadAndPatchConfig>d__0.MoveNext () [0x00213] in <1eaf79639651486d80e6ce2c0c04b960>:0 UnityEngine.StackTraceUtility:ExtractStringFromException(Object) Log:Exception(Exception) <LoadAndPatchConfig>d__0:MoveNext() UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) 2023-08-06T14:16:02 9.504 ERR XML loader: Patching 'blocks.xml' from mod 'ReinforcedElectricFences' failed: 2023-08-06T14:16:02 9.504 EXC XML.Patch (/configs/set, line 2 at pos 6): XPath evaluation failed: Expression must evaluate to a node-set. at XmlPatcher.singlePatch (XmlFile _targetFile, System.Xml.Linq.XElement _patchElement, System.String _patchName) [0x00104] in <1eaf79639651486d80e6ce2c0c04b960>:0 at XmlPatcher.PatchXml (XmlFile _xmlFile, XmlFile _patchXml, System.String _patchName) [0x00028] in <1eaf79639651486d80e6ce2c0c04b960>:0 at XmlPatcher+<LoadAndPatchConfig>d__0.MoveNext () [0x00213] in <1eaf79639651486d80e6ce2c0c04b960>:0 UnityEngine.StackTraceUtility:ExtractStringFromException(Object) Log:Exception(Exception) <LoadAndPatchConfig>d__0:MoveNext() UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr) The code for these mods is as below: ReinForcedElectricFences: <configs> <set xpath="/blocks/block/[@name='electricfencepost']/property[@name='MaxDamage']/@value">30000</set> <append xpath="/blocks/block/[@name='electricfencepost']/property[@class='RepairItems']"> <property name="resourceForgedSteel" value="20"/> </append> </configs> BetterStorageOptions: <configs> <!-- Remove the following properties from the player created Gun Safe block --> <remove xpath="/blocks/block/[@name='cntGunSafe_Player']/property[@name='LockPickItem']"></remove> <remove xpath="/blocks/block/[@name='cntGunSafe_Player']/property[@name='LockPickTime']"></remove> <remove xpath="/blocks/block/[@name='cntGunSafe_Player']/property[@name='LockPickBreakChance']"></remove> <!-- Change the class on Writable Crates --> <set xpath="/blocks/block/[@name='cntSteelWritableCrate']/property[@name='Class']/@value">SecureLootSigned</set> <set xpath="/blocks/block/[@name='cntIronWritableCrate']/property[@name='Class']/@value">SecureLootSigned</set> <set xpath="/blocks/block/[@name='cntWoodWritableCrate']/property[@name='Class']/@value">SecureLootSigned</set> </configs> Any help would be appreciated. Link to comment Share on other sites More sharing options...
seven Posted August 6, 2023 Share Posted August 6, 2023 Remove the "/" from between 'block' and '[@name' in all those lines. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now