Addes lootboxes to the game (that don't require IRL money)
Introduction
Lootboxes have a chance to spawn in stashes and on dead stalkers. Each lootbox will generally describe its contents, but it is randomized.
To open lootboxes, you need to use a lockpick set. Lockpick sets are sold by mechanics. Drag and drop the lockpick set onto the lootbox to open it. Each lootbox has a difficulty rating - this is the condition of the lockpick set that will be consumed when the box is opened. To repair the lockpick set, drag lockpicks onto the set that can be acquired from traders or from drops in the world.
Quick box opening tutorial:
1. You found a box. Hooray!
2. Buy a lockpick set from the mechanic.
3. Note the difficulty on the box. For example, say the box difficulty is 10%.
4. Drag your lockpick set over the box.
5. Enjoy your loot!
6. To fix your lockpick set up, drag and drop lockpicks or lockpick bundles onto your lockpick set.
No conflicts with anything, but not really balanced with Artefact Renovation. I have a tweak to address this.
New game not required, as everything is handled dynamically. MCM support present. If you want to uninstall get rid of all the boxes and picks you have.
Other mod makers can integrate with lootboxes, adding items they have created into lootboxes. Consult custom_loot for usage information.
Changelog
- 1.1.6 - Reduced amount of loot in boxes (guarantee of one). Added weapon attachments and misc drugs to loot pool. Added API for custom items.
- 1.1.5 - Added lockpick sets to a binder, because I can't figure out what's causing the bug otherwise
- 1.1.4.2 - Nerfed artifacts boxes (sorry Maid!). Adjusted drop rate of skeleton keys in lootboxes. Adjusted drop rates.
- 1.1.5.1 - Fix for weapon crates and other crates having skewed drop chances again
1.1.5 Regulated amount of ammo dropped to not have a ridiculous distribution, increased difficulty of rifle crate and removed medical packages from dropping until I figure out how to greatly reduce their chances.
- 1.1.4.2 Fix for weapon crates having skewed drop chances.
- 1.1.4.1 - Tidied the box contents message.
- 1.1.4 - Fix rare boxes not dropping. RUS translation thanks to mrstarman59
- 1.1.3 - Fix cost of lockpick bundle. Adjusted low-end box contents and made skeleton keys rarer. Fix for DX8 plebeians (thanks Cr3pis)
- 1.1.2 - Fix for missing section, made skeleton keys little more rare in lockboxes.
- 1.1.1 - Right-click box open feature available (with lockpick in inventory). Animations toggleable.
- 1.1 - Fixes for PDA crash, possible weapons crash, and looting stashes in places that don't have lootboxes. Block eating of picks when pickset is full condition.
Special credits:
- cakes for sounds and playtesting
- Cr3pis for icons
- Grok for 'borrowed' code from his stash addon
If I wanted more boxes than what spawn could I buy them from you for real money? I do not feel like wasting my time by playing the game and slowly improving my skill and gear.
Sure, venmo me $0.99 and I'll add boxes to your save.
(Don't actually do this. You can up the spawn incidence of boxes through MCM or through arti_lootboxes_mcm.)
what will $99.99 get me?
uh, lethal dose of radiation and 3.6 liters of Vodka, which is not great, not terrible I guess
You'll get a Monolith Box which will contain One Note, And One Death Lamp. Uh Good Luck, King.
This makes me think about STALKER 2 :(
Hello I just logged in on my account after god knows how long to tell you DON'T SAY THAT D':
Gamexguide.com
EA approves.
Anomaly : EA Edition. 10/10.
STALKER: Easy Anomaly
STALKER: Anomoney
Очень понравился этот мод, спасибо автору. Мод отлично впишется в сборку для игры на высокой сложности
It's a wonderful mod, i'll rate 10/10, but there is one minor problem: even with the set of lockpicks it's at 100%, it let you add other lockpicks, wasting them
stonks. godlike. thank you bro.
POG
A bit of help here? Got this error while opening opening one of the lootboxes.
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...ly/anomaly modded\gamedata\scripts\arti_lootboxes.script:363: attempt to index local 'schmuck' (a nil value)
When I read the part of the 'arti_lootboxes.script' that this error points to, I understand it pertains to a PDA that can be obtained from the lootbox, randomly choosing a NPC stalker and assigning the PDA to it?
! [SCRIPT ERROR]: ...md3/anomaly-1.5.1\gamedata\scripts\arti_lootboxes.script:428: attempt to index a nil value
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...md3/anomaly-1.5.1\gamedata\scripts\arti_lootboxes.script:428: attempt to index a nil value
got this by checking a stash in Agroprom Underground and got the same error as above by lockpicking a secured container
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...ly/anomaly modded\gamedata\scripts\arti_lootboxes.script:363: attempt to index local 'schmuck' (a nil value)
I'll fix this, I know the problem
another one
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...md3/anomaly-1.5.1\gamedata\scripts\arti_lootboxes.script:277: attempt to concatenate a nil value
stack trace:
this one came from unlocking a monolith cache
Btw is there an option to turn off the animation for unlocking?
I should have fixed (most of) the crashes by now. I tried to add option for toggling animation but running into some issues. I'll look again later tdoay.
Weird mod, after installing it everyone around me keeps dying for some reason. Appreciate free lootboxes though.
Hmmm and seems your ammo depletes faster than usual?
Now that you mentioned it, yes, I keep losing ammo for no reason too. Must be a new type of dynamic anomaly.
! TRADE OFFER !
I receive:
- all your loot
You receive:
- 1 rifle bullet
Quality addon!
I can't open the boxes? I drag the lockpick on it but nothing happens, plz help
you need to use set of lockpicks
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CInifile::r_section
[error]File : Xr_ini.cpp
[error]Line : 544
[error]Description : fatal error
[error]Arguments : Can't open section 'lootbox_handguns_case_alt'. Please attach [*.ini_log] file to your bug report
A ctd when i killed a monolith, BEFORE i could even search his body
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CInifile::r_section
[error]File : Xr_ini.cpp
[error]Line : 544
[error]Description : fatal error
[error]Arguments : Can't open section 'lootbox_handguns_case_alt'. Please attach [*.ini_log] file to your bug report
stack trace:
Can you add an option to pay technicians to open your lootboxes? just like it happens with encrypted PDAs?
it could add a bit more I M M E R S I V E EA E X P E R I E N C E
I love how the variables are all in german hahaha :D
Awesome idea for a mod mate!
Expression : <no expression>
Function : CInifile::r_section
File : Xr_ini.cpp
Line : 544
Description : fatal error
Arguments : Can't open section 'lootbox_handguns_case_alt'. Please attach [*.ini_log] file to your bug report
stack trace:
Same issue as the guys up above. Hope there's a resolution soon.
Did you update to latest? This should be fixed.
I'll download it now and see. Thx for the fast updates.
Btw, if you have that case already and it breaks on opening, you'll need to toss it away.
Запилил для себя перевод данного мода, если кто еще из русскоговорящего комьюнити заинтересован, прошу: Drive.google.com
спасибо
Got a crash saying this as soon as i opened a stash in Cordon:
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...)/anomaly-1.5.1.2\gamedata\scripts\arti_lootboxes.script:472: attempt to concatenate local 'box_type' (a nil value)
Crash after opening certain stashes on both Old Saves and New Game.
it is only on certain ones, others are working properly.. i have Grok's stash overhaul but idk if that has something to do with this....
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...maly-1.5.1/bin/..\gamedata\scripts\arti_lootboxes.script:472: attempt to concatenate local 'box_type' (a nil value)
Don't have stash overhaul but get the same error...
That crash looks familiar....
Sorry for crash, I tried to make things little more efficient and forgot edge case. It should be stable now.
thank you C:
Hey, thanks for creating the mod. Got a crash while opening one of those 25% briefcases. I'm using GSO and WPO.
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...mes/anomaly-1.5.1\gamedata\scripts\arti_lootboxes.script:217: bad argument #1 to 'find' (string expected, got nil)
Weird we got a nil crash. Either way, I uploaded a fix
EA Games: Scavenge Everything
This comment is currently awaiting admin approval, join now to view.
what is the skeleton key for? because I dropped it from the lootbox and I don't know where to use it
Use it to open the Bone Door in Monolith Armory so you can access the Dimension of Suffering
where is this door ?
I would like to know where this door is too!
I think is a doom reference or something, there is no door to dimension of suffering in the addon lol.
Skeleton key opens any box in a single use.
This comment is currently awaiting admin approval, join now to view.