Mod Details

Enhanced Loot Bags API

Enhanced Loot Bags API 1.0.1+aki-36x

Created by  JustNU

4.1K Downloads

SPT 3.7.6 Compatible

API for mods that want more in depth options for loot bags.

Latest Version 1.0.1+aki-36x
SPT 3.7.6

Updated Aug 8, 2023 at 4:31 PM

Version Notes

- Updated codebase to work with 3.6.X

This download is externally hosted.
Always scan for viruses.

THIS (AND MY OTHER MODS) WILL NOT GET UPDATED ANYMORE ON ACCOUNT ME (JustNU) LEAVING THE SPT-AKI COMMUNITY

ALL OF MY MODS ARE UNLICENCE AKA PUBLIC DOMAIN, SO ANYONE WHO WISHES TO UPDATE/IMPROVE/TAKE OVER THE DEVELOPMENT IS FREE TO DO SO

I HAVE ALSO UPDATED SOURCE ENTRY FOR EVERY MOD OF MINE, IN CASE YOU WANT THE GITHUB REPOS

Replaces default “openRandomLootContainer” function to allow for more in depth customization of loot bag/container loot and its amount. For an example of this mod in action, take a look at this mod.

You need to load your loot bag loot info into AKI’s inventory config under randomLootContainer, DO IT VIA MODS ONLY, TAKE A LOOK AT MOD EXAMPLES IF YOU DON’T KNOW HOW
Don’t forget to make sure your loot bag item has random container parent ID in the item database

customReward entry is required and should always be true

You can have multiple loot pools with different set of loot that you can receive in a single loot bag

nValue is a rarity system, with 1 being fully random and values higher making valuable loot rarer
it also has a demo you can play around with

kvzMmpi.png

In the image showed above, opening the loot bag will give

0-2 of items from loot pool 1,
1-2 of items from loot pool 2,
2-10 items from loot pool 3

at the same time, resulting in 3-14 items total

Version 1.0.1+aki-36x
Download Mod Version
SPT 3.7.6
Latest Compatible SPT Version

793 Downloads

Created Aug 8, 2023 at 4:31 PM

Updated Aug 8, 2023 at 4:31 PM

Virus Total Results

- Updated codebase to work with 3.6.X

Version 1.0.1+aki-37x
Download Mod Version
SPT 3.7.6
Latest Compatible SPT Version

1.4K Downloads

Created Oct 11, 2023 at 9:49 PM

Updated Oct 11, 2023 at 9:49 PM

Virus Total Results

- Updated akiVersion to 3.7.X

Version 1.0.0+aki-34x
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

266 Downloads

Created Feb 10, 2023 at 6:03 AM

Updated Feb 10, 2023 at 6:03 AM

Virus Total Results
Version 1.0.0+aki-35x
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

1.6K Downloads

Created Feb 13, 2023 at 7:42 AM

Updated Feb 13, 2023 at 7:42 AM

Virus Total Results

- Updated akiVersion to 3.5.X

Jeremymayer

https://prnt.sc/MYWFuySSd1R1 i dont understand ??

0 Likes

Opening mre, makes game unresponse in terms of moving anything or trying to move or manipulate anything in menus after opening mre ( which will just buffer and never open ) the rest of the items will also just start load like connection lost type ..

0 Likes

what is your modlist, if i may ask?

0 Likes

and obv, what item were you trying to open

0 Likes

{“order”:[“AAAArtemTrader”,“aaMFACSHOP”,“aCivicPainter”,“ACOG4Life-OpticRework”,“aFannyPack”,“ArtemEquipment”,“aSmallCases”,“AWM”,“b Miraport”,“BoopsQuestAPI-1.1.1”,“Carl-STAR15”,“Choccy-93Raffica-1.0.0”,“Choccy-Hultafors-1.1.2”,“Choccy-Uzi-1.1.0”,“CivicBlackCore”,“CivicGreenCore”,“CivicMagTape”,“CivicRedCore”,“CivicSandCore”,“CivicWhiteCore”,“CNN-Container”,“ColetteBlackpaw-drip”,“DewardianDev-AlgorithmicBarterRandomizer”,“DoorBreacher”,“Dushaoan-AlgorithmicQuestRandomizer”,“EnhancedLootBagsAPI”,“Fifty-Shades-Of-Boomer”,“Fifty-Shades-Of-Boomer-Triggers”,“Fontaine-FOV-Fix”,“friendlyPMC”,“GaaxWeapons”,“hephaestus”,“InsurancePlus”,“JustNUCore”,“KACPDW”,“Lua-CustomSpawnPoints”,“luxuryfromtarkov”,“Lyconox-g36ex-1.2.0”,“Lyconox-shak12ex-1.2.0”,“Lyconox-tt33k-2.2.0”,“Mass_JAK12”,“Mass_M14”,“Mass_QBZ03”,“Mass_type64smg”,“MC-AK12”,“MC-LMG”,“MC-SAWEDOFF”,“MC-SVT40”,“MFAC Eyewear”,“Mira-M16A4”,“MusicManiac-WeaponsAndAttachmentsCustomizer”,“paydaymask”,“ProfileEditorHelper”,“Realistic-FLIR-RS32-1.4.2”,“Realistic-Night-Vision-Goggles-1.1.1”,“Realistic-Reap-ir-1.0.2”,“RealisticMREs”,“refringe-openextracts-1.2.0”,“RepairConfig”,“SamSWAT-FAMAS”,“SamSWAT-L85A2”,“Jiro-BatterySystem”,“SamSWAT-M1014”,“SamSWAT-VALMOD3”,“SamSWAT-Vepr12”,“BrammerN-NoFilters-0.1.0”,“scavequipplus”,“Skwizzy-NoDiscardLimit”,“StalkerVoices”,“streetfashionoftarkov”,“SWAG”,“TheEyeOfAres-FullAutoSTM-1.0.0”,“TheLittleDrummerBoy”,“Virtual\u0027s Custom Quest Loader”,“y1305 items preview”,“yzzz SightsAdjustmentSystem”,“zAdditionalGear-VanillaExtended”,“zDBALA3”,“zExtra RM Ammo”,“zHALO”,“zLCO”,“zM900V”,“zMEPRO21”,“zMFAC PLAP AMMO”,“zRainbowPC-LotsOfLoot-2.1.0”,“zSamSWAT-C79A2”,“zSamSWAT-SUSAT”,“zSolarint-SAIN-ServerMod”,“zzDrakiaXYZ-Waypoints”,“zzzzThermal-bundle”,“Z_USECAdditionalClothing”,“LOTW-LightsAutomaticArmbandAssistant-1.0.0”,“NPCspamRemover”,“RaiRaiTheRaichu-AllTheClothes-1.3.0”,“SPT-Realism-Mod”,“ServerValueModifier”]}

0 Likes

Hey this probably doesn’t help much but are you sure you have the latest version installed?

The other day I tried running realistic MRE’s and another lootbox mod that required this mod as a dependency, they both worked flawlessly. I also had another similar gambling mod that didn’t call for the API and it threw me the same error but was fixed when I uninstalled the API. If I had to guess with my limited understanding of coding this redefines one of the already in-game functions for loot boxes so when you have this mod and don’t need it or vice versa it gives you an undefined error.

0 Likes

never got it to work just gave up on it

it always says something about reward count

weird part is the issue followed me to my 3.7.0 built in which i have very small amount of mods and it was a completely new install nothing to do with my old spt which had all those mods, which i initally thought was the cause of the issue.

very odd, but not the first time

0 Likes

i couldnt reproduce it in the end at all, so yeeeeaaah

0 Likes

same issue.

Mod List:

GrooveypenguinX.basedonJehreeCaseFramewrok-Groovey_Fannypack Flowless-Anastasia GrooveypenguinX.basedonJehreeCaseFramewrok-Small Cases LOTW-LightsAutomaticArmbandAssistant PaPa-potkanSCC Rhyufer-Bootlegger Flowless-Svetlana Kwebber321-The Dealer NikitaWaifu and Penntastic/PudgeNubbins-viktoriya Artem Trader Version 1.0.4 von Crackbone MFAC Shop Version 1.0.3 von Pettan (Built off PRISCILU by Reis) SariaShop Version 1.1.3 von DJ (Built off MFAC Shop by Pettan) Virtuals Custom Quest Loader Version 1.4.1 von Virtual Enhanced Loot Bags API Version 1.0.1 von JustNU QuestZoneAPI Version 1.1.0 von Boop - updated for 3.6 by Dirtbikercj JustNUCore Version 1.1.0 von JustNU Artem Equipment Version 1.0.0 von Crackbone viktoriya Version 0.9.3 von NikitaWaifu and Penntastic/PudgeNubbins Priscilu Version 2.5.1 von Reis Priscilu Special Weapons Version 1.4.1 von Reis gunsmith Version 2.0.6 von Alex paydaymask Version 1.0.1 von STUOKD IgorTrader Version 1.0.4 von Pycak Zenitco Version 1.0.0 von DJ (Built off MFAC Shop by Pettan) The Dealer Version 1.0.0 von Kwebber321 Jeovani Version 1.1.2 von Jeo RopeShop Version 1.0.0 von Rope (Built off Saria by DJ) Anastasia Version 0.3.0 von Flowless Svetlana Version 0.3.0 von Flowless potkanSCC Version 1.0.1 von PaPa Bootlegger Version 2.0.2 von Rhyufer FoodDrinkRedux Version 4.2.0 von Revingly LPARedux Version 4.3.0 von Revingly Painter - Trader Version 1.0.1 von CivicIAm SandCore Version 1.0.2 von CIVICIAM Black Core Version 1.0.6 von CIVICIAM White Core Version 1.0.4 von CIVICIAM Green Core Version 1.0.6 von CIVICIAM Mag Tape Version 1.0.3 von CIVICIAM Small Cases Version 1.0.1 von GrooveypenguinX.basedonJehreeCaseFramewrok scavequipplus Version 1.0.3 von STUOKD Groovey_Fannypack Version 1.0.1 von GrooveypenguinX.basedonJehreeCaseFramewrok MFAC Gear Version 2.0.0 von Pettan, backend by Mighty_Condor MFAC Guns Version 2.0.2 von Pettan, backend by Mighty_Condor Cnn-Container Version 3.1.0 von Cannuccia Additional Clothing - Vanilla Extended Version 1.1.2 von JustNU AdditionalGear - Tan Module, Armored Vests Version 1.0.3 von JustNU AdditionalGear - Tan Module, Backpacks Version 1.0.3 von JustNU AdditionalGear - Tan Module, Rigs Version 1.0.4 von JustNU AdditionalGear - Vanilla Extended Version 1.0.8 von JustNU AdditionalGear - Black Module, Armored Vests Version 1.0.1 von JustNU AdditionalGear - Tan Module, Headwear Version 1.0.4 von JustNU AdditionalGear - Tan Module, Misc. Version 1.0.3 von JustNU AdditionalGear - BEAR Version 1.0.1 von Ashley Schaeffer BMW Additional Clothing - BEAR Version 1.0.2 von Ashley Schaeffer BMW AdditionalGear - USEC Version 1.0.2 von Ashley Schaeffer BMW USEC Additional Clothing Version 1.0.2 von Ashley Schaeffer BMW AdditionalGear - DigitalFlora Version 1.0.4 von Ashley Schaeffer BMW, JustNU GuestGear - DigitalFlora Version 1.0.5 von Ashley Schaeffer BMW, JustNU RopesContainer Version 1.1.2 von Rope And DJ luxuryfromtarkov Version 1.0.1 von STUOKD streetfashionoftarkov Version 1.0.1 von STUOKD AllTheClothes Version 1.4.0 von RaiRaiTheRaichu Tactical Tarkov Customizations (TTC) Version 1.0.0 von CivicIAm Punisher Boss Version 0.6.9 von GrooveypenguinX.basedonSSHUSECCommander PunisherGear Version 0.6.9 von GrooveypenguinX.basedonChoccysExample jonbernthal Version 1.0.0 von servph Punisher Voice Version 0.6.9 von GrooveypenguinX.basedonJUSTNUSTALKERVoices SAIN Version 2.1.5 von z-Solarint SVM Version 1.7.0 von KMC, EmuRC-GhostFenixx Eyes Of A Trader Version 1.3.1 von Platinum Realistic MREs Version 1.1.1 von JustNU NPCspamRemover Version 1.0.0 von pettan LightsAutomaticArmbandAssistant Version 1.0.0 von LOTW Remove Backpack Restrictions Version 1.1.1 von DJ Remove Container Restrictions Version 1.1.2 von DJ JoshMateBetterBackPacks Version 1.5.0 von Josh Mate Hultafors Version 1.1.3 von Choccy OpticRework Version 1.2.2 von ACOGforlife, SAMSWAT Realistic-NVGs Version 1.1.6 von Borkel, Snofielf, jc980, Props Realistic-Thermals Version 1.0.1 von Borkel lasers Version 1.0.1 von Alex DrakiaXYZ-Waypoints Version 1.3.0 von DrakiaXYZ MoreCheckmarksBackend Version 1.5.9 von VIP Expanded Task Text Version 1.2.2 von Dirtbikercj AlgorithmicBarterRandomizer Version 1.3.0 von DewardianDev AlgorithmicQuestRandomizer Version 1.1.0 von DewardianDev DoorBreacher Version 1.1.2 von Tron, Props Fontaine FOV Fix Version 1.8.0 von Fontaine mouse-penalty-fix Version 1.0.1 von Alex biggerstash Version 2.4.3 von Kiki custom-raid-times Version 1.5.0 von Refringe Andrudis-QuestManiac Version 2.4.0 von Andrudis lockpick_ammo Version 1.3.1 von nektonick SPTQuestingBots Version 0.2.8 von DanW HoltzmanShield Version 370.0.2 von jbs4bmx NoDiscardLimit Version 1.3.0 von Skwizzy SWAG + DONUTS Version 3.2.1 von nooky and props SPT Realism Version 0.14.1 von Fontaine The Error:

TypeError: Cannot read properties of undefined (reading ‘customReward’) TypeError: Cannot read properties of undefined (reading ‘customReward’) at Function.customOpenRandomLootContainer (T:\SPT-EFT\user\mods\EnhancedLootBagsAPI\src\mod.js:49:31) at InventoryCallbacks.openRandomLootContainer (T:\SPT-EFT\user\mods\EnhancedLootBagsAPI\src\mod.js:14:16) at InventoryItemEventRouter.handleItemEvent (C:\snapshot\project\src\routers\item_events\InventoryItemEventRouter.ts:83:48) at ItemEventRouter.handleEvents (C:\snapshot\project\src\routers\ItemEventRouter.ts:43:38) at ItemEventCallbacks.handleEvents (C:\snapshot\project\src\callbacks\ItemEventCallbacks.ts:22:52) at RouteAction.action (C:\snapshot\project\src\routers\static\ItemEventStaticRouter.ts:20:56) at ItemEventStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61) at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62) at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30) at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38) TypeError: Cannot read properties of undefined (reading ‘customReward’) TypeError: Cannot read properties of undefined (reading ‘customReward’) at Function.customOpenRandomLootContainer (T:\SPT-EFT\user\mods\EnhancedLootBagsAPI\src\mod.js:49:31) at InventoryCallbacks.openRandomLootContainer (T:\SPT-EFT\user\mods\EnhancedLootBagsAPI\src\mod.js:14:16) at InventoryItemEventRouter.handleItemEvent (C:\snapshot\project\src\routers\item_events\InventoryItemEventRouter.ts:83:48) at ItemEventRouter.handleEvents (C:\snapshot\project\src\routers\ItemEventRouter.ts:43:38) at ItemEventCallbacks.handleEvents (C:\snapshot\project\src\callbacks\ItemEventCallbacks.ts:22:52) at RouteAction.action (C:\snapshot\project\src\routers\static\ItemEventStaticRouter.ts:20:56) at ItemEventStaticRouter.handleStatic (C:\snapshot\project\src\di\Router.ts:51:61) at HttpRouter.handleRoute (C:\snapshot\project\src\routers\HttpRouter.ts:72:62) at HttpRouter.getResponse (C:\snapshot\project\src\routers\HttpRouter.ts:44:30) at AkiHttpListener.getResponse (C:\snapshot\project\src\servers\http\AkiHttpListener.ts:145:38)

0 Likes
madd8888

oh i am using 3.5.5

0 Likes
JustNU

3.5.5 server? if so, then its most likely not compatible

0 Likes
madd8888

TypeError: Cannot read properties of undefined (reading ‘getItems’)

TypeError: Cannot read properties of undefined (reading ‘getItems’)

at Function.customOpenRandomLootContainer (I:\New folder (4)\user\mods\EnhancedLootBagsAPI\src\mod.js:26:46)

at InventoryCallbacks.result.openRandomLootContainer (I:\New folder (4)\user\mods\EnhancedLootBagsAPI\src\mod.js:14:16)

at InventoryItemEventRouter.handleItemEvent (C:\snapshot\project\obj\routers\item_events\InventoryItemEventRouter.js)

at ItemEventRouter.handleEvents (C:\snapshot\project\obj\routers\ItemEventRouter.js)

at ItemEventCallbacks.handleEvents (C:\snapshot\project\obj\callbacks\ItemEventCallbacks.js)

at RouteAction.action (C:\snapshot\project\obj\routers\static\ItemEventStaticRouter.js)

at ItemEventStaticRouter.handleStatic (C:\snapshot\project\obj\di\Router.js)

at HttpRouter.handleRoute (C:\snapshot\project\obj\routers\HttpRouter.js)

at HttpRouter.getResponse (C:\snapshot\project\obj\routers\HttpRouter.js)

at AkiHttpListener.getResponse (C:\snapshot\project\obj\servers\http\AkiHttpListener.js)

TypeError: Cannot read properties of undefined (reading ‘getItems’)

TypeError: Cannot read properties of undefined (reading ‘getItems’)

at Function.customOpenRandomLootContainer (I:\New folder (4)\user\mods\EnhancedLootBagsAPI\src\mod.js:26:46)

at InventoryCallbacks.result.openRandomLootContainer (I:\New folder (4)\user\mods\EnhancedLootBagsAPI\src\mod.js:14:16)

at InventoryItemEventRouter.handleItemEvent (C:\snapshot\project\obj\routers\item_events\InventoryItemEventRouter.js)

at ItemEventRouter.handleEvents (C:\snapshot\project\obj\routers\ItemEventRouter.js)

at ItemEventCallbacks.handleEvents (C:\snapshot\project\obj\callbacks\ItemEventCallbacks.js)

at RouteAction.action (C:\snapshot\project\obj\routers\static\ItemEventStaticRouter.js)

at ItemEventStaticRouter.handleStatic (C:\snapshot\project\obj\di\Router.js)

at HttpRouter.handleRoute (C:\snapshot\project\obj\routers\HttpRouter.js)

at HttpRouter.getResponse (C:\snapshot\project\obj\routers\HttpRouter.js)

at AkiHttpListener.getResponse (C:\snapshot\project\obj\servers\http\AkiHttpListener.js)

0 Likes
JustNU

were you trying to open MREs or something else? are you on the latest version? what is your mod list?

0 Likes
Tron

Doesn’t appear to be working after 3.5.7+

0 Likes
Heliax

This will be insane once devs start utilizing this

0 Likes

Details