搜索结果: *

  1. XML XPath Syntax for Mods

    @Zervox Yeah, I have been following that thread. It provides some clarity about narrow node replacements, but we are still missing a method to make attribute or subnode changes that do not result in collisions with other mods that make changes to the same nodes. Thanks for the effort on this.

    It is my hope that as more mod tools are released and more mod questions are answered with examples by the devs, that patching operations with XPath will be supported. I doubt the base logic for modules merging will be exposed, so this is something that needs to be supported in the base game....or a mod tool will need to support these types of patch operations with XPaths.
  2. XML XPath Syntax for Mods

    I looked at the mod you posted @Zervox :

    This looks like adding new xml assets or overwriting specific assets. I don't see XPath used in these samples. My ask was about using XPath syntax to make programatic changes as a patch/diff.

    Could you clarify how this can be used to make programmatic changes? Lets say I want to only change the multiplayer/singleplayer setting on items, with XPath you could overwrite just that specific attribute on xmlnodes with the attribute, instead of overwriting the full xml node. From what I can gather from the mod you posted, overwriting full nodes is supported, but not overwriting single attributes.

    Does that make sense?

    Also, thanks for the doc link - it solves about half of the collision issues, but would still bar mods that change the same xml nodes (as far as I understand).

    EDIT: From the mod text:
    We might need to make a custom XmlSerializer/Deserializer when the full dev kit come out so that xml will add modification to a specific item instead of overriding every single property of that item.

    So I take it XPath/serialization was not part of the roadmap for xml modifications? (or not currently understood?)
  3. XML XPath Syntax for Mods

    I have made mods for other games with similar module organization and XML implementation. Games like X4 Foundations, Rimworld, and 7 Days to Die. Those games make use of xml diffs/patches, using xml xpath syntax to make programatic, sweeping changes to the base game files in minimal code and...
  4. Thank you!

    I just wanted my opinion to float on the front page for a moment, but I have been sadly reminded why internet forums suck.  I guess it's back to lurking.
  5. Thank you!

    Dear Adorno, Idibil, I have been playing M&B for years and Brytenwalda is my favorite mod.  I think I have like 15 saved level 20+ heroes.  I was (and am) more excited for this mod than for any other game this year (even skyrim!).  So don't listen to some of these whining sods - take your...
后退
顶部 底部