RimWorld

RimWorld

2,803 ratings
XML Extensions
5
5
6
4
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2, 1.3, 1.4, 1.5
File Size
Posted
Updated
735.862 KB
13 Aug, 2021 @ 6:55pm
15 Mar, 2024 @ 12:38am
120 Change Notes ( view )

Subscribe to download
XML Extensions

In 1 collection by Imranfish
Imranfish's Mods
5 items
Description
Read the wiki at the GitHub page[github.com] to learn more.

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, allows for the easy creation of mod settings in XML, and much more.

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.

Settings for mods using XML Extensions are located next to the regular Mod Settings button.


Enhanced Error Reporting for XML Errors
With XML Extensions active, all XML patch errors will now generate a stack trace as well! 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):



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):



In addition, an "Advanced debugging mode" is available which will improve the messages of all XML errors, and will keep track of every Def that gets patched in every patch operation in order to provide you with a list of possibly relevant mods:



Improved Mod Settings UI
A new mod settings menu is added with improved UI. It includes a sidebar with a list of all mods, has a search bar to allow you to search for mods quickly, and has the ability to "pin" mods for quick access.



How to Use
To use this mod as a user, just load this mod after core 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.

Languages:
  • English
Please contact me if you would like to add a translation.

I am willing to take suggestions for improvements and additions to this framework, and will try to fix any bugs reported.

Join the discord! https://discord.gg/mrrEhHnSQy

Read the wiki at the GitHub page[github.com] to learn more.

Also check out [DN] Custom Tag Maker and PublisherPlus!
Popular Discussions View All (4)
63
24 Jan @ 4:22am
PINNED: Bug Reports
Imranfish
8
16 Sep, 2023 @ 5:25am
PINNED: Suggestions
Imranfish
1
29 May, 2023 @ 12:21am
Getting these kind of errors along with Real Ruins
p20 hammerpoints
175 Comments
SinisterBrain 9 Jan @ 1:02pm 
@Rob Bobbert, Yes, I thought the link below with the tab view fix would fix it but it didn't sadly. I have no idea what the problem is.
Big Cheese 31 Dec, 2024 @ 11:33pm 
What do I do if I can't open debug action menu?
Rob Bobbert 30 Dec, 2024 @ 5:21pm 
I seem to be unable to close the window once opened, anyone also getting this error?
Mr_V4ron 30 Dec, 2024 @ 8:55am 
i have medpod mod installed and it shows errors in the dev console and i cant also build medpods
Luv N Hugz |UwU| 25 Dec, 2024 @ 1:41pm 
Is it possible to check another mod's optional patches to then run a separate patch for another mod?

In my case I'm trying to use FrozenSnowFox's Tweaks Filtered Food option to check if I should (or shouldn't) add some custom items to the category.

I was trying to find the information on the wiki but I could not really find the right place to check. I guess I could try to become an XML Extensions expert, but I've managed to get by using vanilla patches and references so far. (Without fully learning it)
YobarIsushcatel 14 Nov, 2024 @ 11:11pm 
Is there anyway to have settings for adding/disabling apparel?
Dorsai! 10 Oct, 2024 @ 6:44pm 
If anyone else has trouble with mod options using tabs, here is a quick workaround I've made, until the devs have time to fix it properly:
https://steamproxy.net/sharedfiles/filedetails/?id=3346589753
Dorsai! 10 Oct, 2024 @ 7:50am 
It seems that with the current version settings pages that use tabs are broken.
Examples are "Mighty Persona Bond Forge Patch" and "Intagrated Storage". Only the settings on the first page are visible.
NuanKi 3 Sep, 2024 @ 11:50am 
@XyTheur
Thats fault of the mod adding the patches, not the framework
WordIsBig 11 Aug, 2024 @ 6:28am 
When I open the page, I can't close it, I just quit the game