Def Finder - Niilo007/RimWorld-NQoL GitHub Wiki

Def Finder

Related:


Standard Search

The standard search uses search words to find the best matching def.

Usage

The | character can be used to separate search terms.
Starting a search term with - will make it a blacklisted term.


Example

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

Explanation

The search term is an exact match to the defName 'Beer'.
The file name of 'Wort' contains the search term.


Example

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

Explanation

The labels of 'Beer' and 'Meat_Cow' both start with the search term.


Example

Input:

beef

Best Match:

Meat_Cow
beef
ImpliedDefs

Second Best Match:

Meat_Yak
yak beef
ImpliedDefs

Explanation

The label of 'Meat_Cow' matches the search term 'beef' exactly.
The label of 'Meat_Yak' contains the search term.


Example

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

Explanation

'Penoxycyline' and 'DeathAcidifier' have the search term in their descriptions.


Xpath Search

Xpath search no variables demo.

Xpath search and variable input window.

Usage

The xpath search supports NQoL xml variables.


Example

Input:
Defs/*/*/*[text()="Designator_Forbid"]

Output:

Designator_Forbid  

Orders
orders
D:\SteamLibrary\steamapps\common\RimWorld\Data\Core\Defs\Misc\Designations\DesignationCategories.xml


Example

Input:
Defs/*[*/*[text()="Designator_Forbid"]]/defName

Output:

<defName>Orders</defName>

Example

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


File View

The right half of the def finder UI displays the full parent file of the found def.

Full def search tab.

File Search


Known Overlapping Mods

Please note that overlapping mods are not necessarily incompatible.


⚠️ **GitHub.com Fallback** ⚠️