Fallout 4
0 of 0

File information

Last updated

Original upload

Created by

GELUXRUM

Uploaded by

GELUXRUM

Virus scan

Safe to use

Tags for this mod

About this mod

F4SE plugin that allows you to block scripted injections to LeveledLists. Configurable via .ini

Requirements
Permissions and credits
Mirrors
Donations


Information
Spoiler:  
Show
Why:
  • I absolutely despise scripted injections due to how much of a headache they are if you want to have control over what spawns where; not to mention how the primary users of them i.e. weapon mods, do not use the same LeveledLists so you end up with some weapons polluting all LeveledLists and another weapon only being present in a single random LeveledList you rarely encounter. Here's a pretty good summary by Jonathan Ostrus:
    Ugh script injections annoy me. The only way to remove them is to reset the entire leveled list nuking all scripted injections. It also makes conflict resolution a pain because it's not really easy to identify if a mod injects to a list at a glance. You have to go look through any script references the mod has. And then potentially decompile the scripts.
  • Rather than having to make small patches to fiddle with the scripts/quests to do the above you can use this plugin to automatically block them. With the ability of being able to choose from blocking specifically ammo, armor, NPC, weapon or all item injections via the .ini files.
  • If by any chance there are NPCs or items you'd like to be whitelisted there's also an option to do that too by listing their FormID in a custom .ini file.


.ini File Configuration
Spoiler:  
Show
GLXRM_InjectionBlocker.ini:
  • This file is used by the plugin to allow you to control what kind of injections are blocked by default by setting these values to either 1/0 to enable/disable blocking for the respective category:
    bBlockAllItems=1
    bBlockAmmo=1
    bBlockArmor=1
    bBlockNPCs=1
    bBlockWeapons=1

Custom .ini files:
  • The plugin also provides you with the ability to create custom .ini files that will be read to construct a list of whitelisted Forms. This allows you to let specific Forms bypass the blocks set above if you happen to want an item or NPC to be injected in cases like quest rewards, CC content, your own mods etc.
  • All you have to do is create an .ini file with any name inside the Data\InjectionBlocker folder. The plugin will then read the files in that folder and output which ones have been loaded in the .log as well as the Forms it is trying to whitelist:
    ---> Loaded file: Data\InjectionBlocker\MyWhitelist.ini
    ---> Attempting to whitelist 1DB4C~Fallout4.esm
    ---> Success
    ---> Attempting to whitelist 1F276~Fallout4.esm
    ---> Success
    ---> Attempting to whitelist 1F669~Fallout4.esm
    ---> Success
  • To add a Form to the whitelist you have to write entries like this in the new .ini you've created:
    1F669~Fallout4.esm=1
    1F276~Fallout4.esm=0
    1D95A~Fallout4.esm=0
    1DB4C~Fallout4.esm=1
  • The FormID of the Form DOES NOT include the Load Order Index. For example the Commie Whacker from Nuka World has the FormID 06052926 so you will only write the last 6 numbers (while also removing any leading zeros) alongside the name of the file it originates from. You need to set the line to equal either 1 or 0 as it allows you to control what gets whitelisted without the need of deleting the whole line:
    52926~DLCNukaWorld.esm=1


Requirements


Credits and Stuff
Spoiler:  
Show
Me, myself and I:
  • You can leave comments in the Posts tab to ask me about whatever
  • Best way to get a quick response is to find me in the MAIM Hub Discord server

Credits:

Source:
  • You can find the source code on GitHub