Def Finder - Niilo007/RimWorld-NQoL GitHub Wiki
The standard search uses search words to find the best matching def.
The |
character can be used to separate search terms.
Starting a search term with -
will make it a blacklisted term.
Input:
Beer
Best Match:
Beer
beer
D:\SteamLibrary\steamapps\common\RimWorld\Data\Core\Defs\Drugs\Alcohol_Beer.xml
Second Best Match:
Wort
wort
Alcohol_Beer.xml
The search term is an exact match to the defName 'Beer'.
The file name of 'Wort' contains the search term.
Input:
bee
Best Match:
Beer
beer
D:\SteamLibrary\steamapps\common\RimWorld\Data\Core\Defs\Drugs\Alcohol_Beer.xml
Second Best Match:
Meat_Cow
beef ImpliedDefs
The labels of 'Beer' and 'Meat_Cow' both start with the search term.
Input:
beef
Best Match:
Meat_Cow
beef
ImpliedDefs
Second Best Match:
Meat_Yak
yak beef
ImpliedDefs
The label of 'Meat_Cow' matches the search term 'beef' exactly.
The label of 'Meat_Yak' contains the search term.
Input:
prevent
Best Match:
Penoxycyline
penoxycyline
D:\SteamLibrary\steamapps\common\RimWorld\Data\Core\Defs\Drugs\Penoxycyline.xml
Second Best Match:
DeathAcidifier
death acidifier
Hediffs_BodyParts_Bionic.xml
'Penoxycyline' and 'DeathAcidifier' have the search term in their descriptions.
The xpath search supports NQoL xml variables.
Input:
Defs/*/*/*[text()="Designator_Forbid"]
Output:
Designator_Forbid
Orders
orders
D:\SteamLibrary\steamapps\common\RimWorld\Data\Core\Defs\Misc\Designations\DesignationCategories.xml
Input:
Defs/*[*/*[text()="Designator_Forbid"]]/defName
Output:
<defName>Orders</defName>
Input:
Defs/*[*/*[text()="Designator_Forbid"]]
Output:
<defName>Orders</defName><label>orders</label><order>900</order><specialDesignatorClasses><li>Designator_Cancel</li><li>Designator_Deconstruct</li><li>Designator_Mine</li><li>Designator_PlantsHarvestWood</li><li>Designator_PlantsCut</li><li>Designator_PlantsHarvest</li><li>Designator_Hunt</li><li>Designator_Slaughter</li><li>Designator_Tame</li><li>Designator_Haul</li><li>Designator_Unforbid</li><li>Designator_Forbid</li><li>Designator_Claim</li><li>Designator_SmoothSurface</li><li>Designator_PaintBuilding</li><li>Designator_PaintFloor</li><li>Designator_RemovePaint</li><li>Designator_PlanAdd</li><li>Designator_PlanRemove</li></specialDesignatorClasses>
Orders
orders
D:\SteamLibrary\steamapps\common\RimWorld\Data\Core\Defs\Misc\Designations\DesignationCategories.xml
The right half of the def finder UI displays the full parent file of the found def.
Please note that overlapping mods are not necessarily incompatible.