Standalone Unfound Loot implementation, fully refactored and revised fork of the Unfound Loot EX feature from True Wasteland Economy by danbngo, which, in its turn, originated from Project Nevada – Extra Options by Gribbleshnibit8 and FO3 Wanderers Edition by FWE team.
Most notable differences between Unfound Loot and previous implementations:
- Event-based processing: no scripts running in GameMode, all cleaning happens on cell enter and on death.
- Loot Menu and Just Loot Menu compatibility with instant OnDeath handler.
- Uses native seen data for cell tracking instead of form list, reducing savegame bloating. Thanks to TrueCourierSix for GetBufferedCellsAlt and all his research on seen data in the engine.
- Can be safely installed mid-game, already visited cells won’t be processed.
- Adds MarkForDelete to disabled world items per standard recommendations.
- Skips containers with notes.
- Skips scripted containers.
- Container items follow the same chance settings as world items.
- Health reduction now affects equipped and dropped gear as well.
- Added customizable global health limit for all gear (effectively, incorporating Extremely Degraded Weapons and Armor), including world items.
- Headgear breaks on decapitation (its condition is set to 0).
See Changelog for more detailed change list.
Focusing on making tougher economy and keeping actual content intact, I’ve added more criteria to the list of non-removables:
– items with zero monetary value,
– scripted items,
– story-related items (for instance, gourmet meals in Ultra-Luxe, irradiated items in Camp Searchlight),
– items too rare to make a difference (Nukalurk Meat, Fire Ant Nectar); I’m considering adding confugurable threshold instead of current 1, after which items will start to be cleaned,
– gameplay items (magazines, although may add a separate setting for them),
– quest items without the quest flag (Deathclaw eggs, ears, fingers, music sheets, Nuka-Cola Quantum),
– rare decorative items.
Some of them we can differentiate by technical features. What falls through, has no distinguishing technical features, is added to whitelist. I accept suggestions for whitelisting with reasoning.
As of beta 1, owned items are always skipped. We are back to the PN-EO way here. Improved gear condition reduction counterbalances them enough for you to stay broke.
How it works
First, set your desired removal chance, 85% by default for world items, 80% for NPCs.
It does not mean, that in a particular cell will remain 85% of loot. It’s a chance, calculated separately for every item: we roll a dice, get a random value from 0 to 99 inclusive, and compare it with your removal chance. If the value is below the chance, the item gets removed. Remember, random number generator (RNG) is a bitch. You can visit multiple cells in a row with zero items removed, and the next cell may be cleaned out completely. It all evens out only with time.
If it’s a stack (ammo, usually), it’s reduced by flat percentage equal to the chance you set. For instance, with chance 80%, 80% of ammo multiplied by modifier will be removed. If you set the ammo modifier to 0.5, the mod will remove 80%*0.5=40% of ammo.
This base removal chance can be influenced by multiple factors:
- Skill. Higher repair skill – up to 10% more loot from robots. Higher survival skill – up to 10% more loot from animals.
- Item type. The removal chance will be multiplied by corresponding item type modifier. If, for instance, you’d like to keep all ammo, set the Ammo modifier to 0. Set to 0.5 to cut removal chance in half, ammo will be found in larger quantities, than at 1.0.
- Race/species. You can set chance multipliers per race or species (humans, ghouls, supermutants, etc.).
Mod-added items are evaluated by their origin:
- Vanilla items are processed normally.
- If an item was added by other mod, it always stays.
- If an item belongs to the same mod as its parent cell, it’s processed normally.
For instance, New California cells are processed like any vanilla cell. But any item, added to it by other mod, always stays.
Recommended lStewieAl’s Tweaks
; allow equipping of broken items bEquipBrokenItems = 1 ; make vendors obey their Buy/Sell flags, restricting which items they accept bBarterCheckActorBuySellFlags = 1
I am a modder, and I don’t want my items to be removed by Unfound Loot
UL already skips items and containers by a lot of criteria: unique, scripted, owned, quest, disabled, expensive, worthless, in visited cells, locked items are always skipped. If your references still fall through, add the “No AI Acquire” flag to them. It will do what it says on the tin. Another way, add your items to the EULxProtected* form lists. Only, please, don’t override them, don’t create the need for patches, use scripts.
Don’t forget to disable this feature in TWE and PN-EO.
Can this mod be safety uninstalled at any time mid-save?
No ESP mod is safe to uninstall. Disable Unfound Loot features in the MCM panel instead.
Hey I have a question. Been using the mod but I want to make it harder. Say I took the base removal chance from 66 to 80, how does the mod apply it to the world exactly? Does it roll everything again? What exactly will/will not be affected after I change it?
Read the description.
Question: So obviously corpse loot covers corpses, but does world items cover both actual items present in the world AND non-corpse containers? And thus the settings there affect both?
Hey Eddoursul, I’m thinking about tweaking my install of your mod to process owned items. Besides making areas look REALLY empty, are there any practical concerns with doing this? I see you added owned items in a later release. What was your rationale?
It’s a purely logical decision, shouldn’t break anything if reverted.
Hardcore presets make inhabited areas too barren.
Sure, makes sense. Thanks for the reply.
I’m looking in the MCM for the mod, and I’m a little confused on how the luck stat works. If my luck effect on base removal chance is 15, does that reduce the removal chance by 15% for every point of luck? Also if my removal chance is 90%, does luck simply reduce it to 75%? Or is it reduced by (0.15×90)? I’m Just confused how the calculation works that’s all.
set fTemp to (( EULxLuckModifier / 10 ) * playerRef.getAV luck) / 100
set fTemp to 1 - fTemp
set fRemovalChance to fRemovalChance * fTemp
Don’ know how to explain, but it’s seems that’s some sort of a conflict or bug when using with this mod (save reworked) https://www.nexusmods.com/newvegas/mods/69062
Whenever I reload a save, things that should be hidden for me to loot get’s swapped for another loot, so something that i’ve found empty could have loot again, something that i’ve don’t looted could have a ton of loot even with 100% remove chance
also sometimes when I save outside a dungeon and enter, all the loot table from corpses are shuffled, can’t get that reinforced leather armour near primm
I don’t know what trigger what, if it’s this mod, or save reworked.
Anyway, thank you so much for this incredible mod!
I was testing just found out that when reloading a save inside a house in goodspring can spawn random loot in containers outside where there was no loot to be found, and it’s random loot
Unfound Loot processes cells and containers in them only once. If something forces containers to respawn, UL will do nothing.
So I extracted the esp file to my FNV data folder and the ini file to my config file but the mod still doesn’t appear in MCM for some reason. How do I know that it’s actually installed properly?
The INI file only enables saving settings between characters, the mod should appear in MCM regardless.
If it does not, look into your MCM installation. Run FNV Diagnostics, it can help with MCM-related issues.
Thanks for the quick response.
I’m not sure if it’s MCM, it might be on my end. I use vortex but I had to manually extracted the esp file into C:\Program Files (x86)\Steam\steamapps\common\Fallout New Vegas myself. Do I have to use Mod Organizer? And would it be possible to use vortex for this?
\common\Fallout New Vegas or \common\Fallout New Vegas\Data?
It should be in Data, this is where all ESM and ESP plugins go.
You can use Vortex, just don’t expect to get help from modders. We use MO2.
Any idea why in my game locked containers are being affected, when I have that option checked? Something’s definitely wrong (probably on my end), because it even ate the Gobi Sniper Rifle.
Did you check if you have a similar feature enabled in some other mod?
I don’t think so. I’ll try playing around with the load order.
Regardless, thanks for the mod. I was skeptical at first (thought it was too harsh), but now I think it’s the way the game should be played.
Default settings may be a bit intense, but in general, it is as harsh as you configure it. It’s a matter of two sliders in MCM.
Anyway, I rechecked the mod with xNVSE 6.20 + JIP LN 56.31 (current versions) in case something broke, everything’s in order. Unique items and locked containers get skipped as intended.
I don’t mean to bother you, but I still haven’t managed to figure out what’s going on (and I’m pretty confident none of my other mods has the same feature). Not sure if this helps, but the issue seems to be limited mostly to ammo boxes. I don’t think I’ve ever opened an empty locked first aid kit, and on the contrary, I can’t recall a locked ammo box with anything in it.
Unfortunately it’s an issue that’s a bit hard to troubleshoot on an existing save because if I’m not mistaken, even if I fixed it, the game wouldn’t repopulate the emptied containers.
I doubt this is the reason, but is there a chance that if I at one point temporarily had the ignore locked containers option unchecked (when I was first tweaking the settings), that that setting has persisted? But I’ve had the issue for dozens of hours, and in all the DLCs, so I don’t think that’s likely.
It cannot and does not distinguish ammo boxes from any other containers.
Again sorry for this nonsense if indeed it has nothing to do with your mod, but I thought I’d just add that when I use the unlock command on the affected containers (after reloading the game), they’re no longer empty.
It has nothing to do with my mod.
Is there any documentation for the INI?
No, it’s supposed to be edited via MCM.
That makes sense, thank you.
where do i put this in my stuff?
do i just drop it into the data folder?
This mod is great, but I have one question; does it remove items in a cell that happen to be sitting on shelves, containers, floors, and the like? Cause I went into the Museum of Technology, (playing TTW, btw), specifically to the hidden area adjacent to the Delta IX Rocket display, to grab the 2 unique, undersized Nuka-Colas hidden in the secret room and they just weren’t there. I searched everywhere in that room and they were missing. Everything else was there though. Did this mod delete them, or could it have been something else?
I don’t remember any unique Nuka-Colas. Yes, it removes everything non-unique. If there were two items, you should have found at least one, the second one would not be unique anymore.
I probably should have chosen my words better, but the Nuka-Colas in question were supposed to be inside a somewhat hidden room. They aren’t unique in any way except for their size; they’re scaled smaller than average and as far as I know, are the only 2 tiny Nuka-Colas in the game with the rest of them all being normal-sized.
Basically, I’m asking if the mod may have deleted them regardless of the fact that they were smaller than normal, or would it treat the size difference as unique and skip their deletion?
Another example I could use; inside the sat-com array, in one of the towers, there’s a small section that’s boarded up and can’t actually be accessed by the player, but behind these boards in this section sits a ridiculously huge teddy bear. I’m talking like 4 times the size of a normal teddy bear. The developers put this in as an Easter egg or some such collectible thing.
Would Unfound Loot RNG that teddy bear for deletion, or would it leave it alone because it’s different?
If it has the same Form ID as other teddy bears, Unfound Loot would remove it. Changed scale does not make it unique or collectible, because you won’t be able to distinguish it in your inventory. Although, if you see changelogs, I whitelist certain decorative items once they are reported. If you tell me where this teddy bear is, I’ll exclude it from removal.
Never mind, I just turned it off and checked a previous save and both Nuka-Colas, along with a staggering amount of other items, were absolutely in the locations they were supposed to be.