Features:
- Core library mod — only needed if another mod specifically requires it
- Lets modders add custom interactions to game objects via simple XML snippets instead of scripts
- Supports adding interactions to Sims, relationship panel, and phone panel
- Can add entries to AffordanceLists such as the 'Friendly' mixers
- Adds loot actions to LootActions and RandomWeightLoot tunings
- Can add buffs to traits and name/object relationship components to tunings
- Supports adding states and state_triggers to object tunings
- Includes an optional test package with sample interactions to confirm installation
- Must be placed directly in the main Mods folder, not a subfolder
- Requires script mods to be enabled in game options
- Built to work with a specific past game patch (1.50.67, February 2019)
- Older version 1 files should be removed when upgrading to version 2
XML Injector is a background library mod for The Sims 4 that allows other mod creators to make simple game changes using XML snippets instead of writing and maintaining their own scripts. On its own it does nothing visible in the game — it only matters if another mod you use specifically requires it.
For modders, it handles common tasks like adding interactions to objects, Sims, the relationship panel, and the phone, as well as updating AffordanceLists, adding loot actions, trait buffs, object components, and state triggers. This means mod creators can release XML-based mods without needing to compile or maintain a custom script of their own.
This is best suited for players who've been told by another mod that XML Injector is a prerequisite, and for script modders who want to simplify their own mod's tuning changes by relying on a shared, actively maintained library instead of individual scripts.
