RimWorld

RimWorld

3,050 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)
68
19 Jun @ 3:08pm
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
200 Comments
Nekrux 16 hours ago 
@Kaedys: I guess that's one of the reasons why some modders just quit the scene.
Kaedys 21 hours ago 
Yes, I'm sure screaming and becoming hysterical is definitely going to make an update happen faster. 1.6 is still in beta . Chill out and deal without the mods that aren't updated yet, or learn C# and update it yourself if you just can't wait.
AzoorFox 24 Jun @ 10:30am 
UPDATE WHEN????????????????????????
Kaedys 22 Jun @ 1:48pm 
Until it's dropped on live, it *is* quite unreasonably to *expect* an update. If one happens before then, awesome, but part of playing on the *beta* branch is that it's inherently unstable and subject to change. If you want all your favorite mods, wait until it's live (and then a bit, tbh), or as Tawny suggested, update and recompile it yourself. Y'all forget mods are done as *hobbies*, not *jobs*.

That said, Imranfish has certainly not been especially active on the XML Extensions Discord server in, well, years now, so if someone like Mlie is willing to take it on, probably for the best.
Th232r 22 Jun @ 10:53am 
Hundreds of mods are out and working in 1.6, hoping for a update is not unreasonable at all. Maybe drop your pitchforks and go back to vanilla instead of trying to white night for strangers... Maybe.
JoeOwnage 22 Jun @ 5:36am 
I heard Mlie is picking this up
Lokki 21 Jun @ 6:20am 
@Tawnylure i agree these people are dumb as hell but i doubt the mod author is returning anyways.
Tawnylure 19 Jun @ 1:04pm 
1.6 literally just dropped, I can totally understand asking when 1.6 fully releases, BUT ITS ON THE BETA BRANCH!

Literally chill out, and let the developer work on his own time.
Rimworld mods are mostly made out of passion, and completely for free on the modders time. If you want 1.6 earlier, make a fork and update it yourself and submit a merge request on the github repo.
2498timmy 19 Jun @ 2:51am 
1.6 update?
t0m4s1t0 17 Jun @ 1:11pm 
Black screen on load in 1.6