Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

XML Extensions

Read the wiki at the [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2F15adhami%2FXmlExtensions%2Fwiki]GitHub page[/url][github.com] to learn more. Note: Steam keeps taking down my GitHub links, you can simply Google "XML Extensions GitHub" directly instead Read the change notes for the latest news. XML Extensions is a framework and modding tool that is focused on extending the general functionality of XML mods. This framework adds many more patch operations and allows for the easy creation of mod settings in XML. More Patch Operations XML Extensions includes many new patch operations for modders to use. These operations are much more powerful and dynamic, and allow you to basically do programming in XML; you have access to if-statements, for-loops, mathematical operations, etc. Create Mod Settings in XML With XML Extensions, you can easily create mod settings for your mod, all in XML! You may use these settings to toggle patch operations, change values within your patch operations, or use them in C# to do anything else. Enhanced Error Reporting for XML Errors With XML Extensions active, all XML patch errors will now generate a stack trace. This means that you can figure out exactly which patch failed, and in some cases, it will even tell you what part of the patch failed. All you need to do is have XML Extensions activated in your modlist while testing your mod. Here is an example of a trace for a broken patch (you can easily figure out the error is that the letter "N" should be capital in defName): [img]https://i.imgur.com/7lvnPt6.png[/img] The vanilla error message for the exact same patch (only reports the parent patch, not the one that actually failed; no clue as to what went wrong): [img]https://i.imgur.com/N8aE3ec.png[/img] There is a [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3515858072]standalone version[/url] of this feature as well. How to Use To use this mod as a user, just load this mod after core and the DLCs, but before all other mods that depend on it. As a modder, you need to mark this mod as a dependency in Steam Workshop, and include the dependency in your About.xml. I am willing to take suggestions for improvements and additions to this framework, and will try to fix any bugs reported. Join the discord! [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fdiscord.gg%2FmrrEhHnSQy]https://discord.gg/mrrEhHnSQy[/url] Read the wiki at the [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2F15adhami%2FXmlExtensions%2Fwiki]GitHub page[/url][github.com] to learn more. Also check out [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3548013918]XmlDocument Viewer[/url] for another helpful XML modding tool.