Items do not appear instantly anymore when you loot bodies.
Small disclaimer:
I based this addon on real life and logic and all comments similar to "so it's like in tarkov"/"make it like in tarkov"/"why don't just take it from tarkov" will be deleted.
Description
Time it takes for item to appear depends on weight, size of item and a bit of random.
For easier option tweaks, get MCM here > > > > CLICK TO GET MCM < < < < .
If you meet bugs please set local debugx = false to true, reload after it, reproduce bug and send me log here or in discord xcvb#3398, thanks. (I already know about Haruka's skill system spamming console with this addon. Should be harmless, but will fix soon anyway.)
Changelog
- 0.51:
- Eh, better Sorting Plus compatibility xd previous apparently lagged when player had around 1000 items in inventory (tnx demonized for report and RavenAscendant for fix ;p).
- Changed unregister item to entity callback (tnx demonized again).
- 0.5:
- Correct display of items with Sorting Plus (tnx RavenAscendant).
- MCM volume sliders.
- Fixed red console warnings on looting stashes made by player (tnx demonized).
- 0.41:
- Compatibility for magazines, idk why it was crashing, it shouldn't...
- 0.4:
- Looting sounds (background and for each item) with MCM options to disable. Still not perfect, but it's all I could do, also sorry for it taking so much time, no pun intended. (thanks to IENCE for sharing sounds)
- 0.3 (and 0.2 xd):
- MCM with some options.
- Inventory window HUD indicator to show when you still looting the body like in updated thumbnail (with optional weird animated texture).
I like the sound choices when you loot. It sounds nice. But I found it very odd that there isn't a way to change the volume of the sounds. Also in the new version, it crashes my game whenever a specific item is shown in someone's inventory. I don't know which item it is.
I can add volume, I wasn't sure anyone gonna use it... a bit later tho. As for crash yep I saw.
! [LUA] SCRIPT RUNTIME ERROR
! [LUA] ...l.k.e.r anomaly 2\gamedata\scripts\loot_searching.script:153: attempt to index local 'item' (a nil value)
! [SCRIPT ERROR]: ...l.k.e.r anomaly 2\gamedata\scripts\loot_searching.script:153: attempt to index local 'item' (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: ...l.k.e.r anomaly 2\gamedata\scripts\loot_searching.script:153: attempt to index local 'item' (a nil value)
stack trace:
Fixed hopefully, ty. Seems like unloading magazines for some reasons don't like general item check ;[
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: ...lker gamma/bin/..\gamedata\scripts\loot_searching.script:153: attempt to index local 'item' (a nil value)
stack trace:
Streamable.com
Sorry, try now, think it's fixed. Although I tried my best to reproduce by launching and trying it with different addons, I still don't understand how this is happening and I never crashed ;[
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: ...r call of pripyat\gamedata\scripts\loot_searching.script:153: attempt to index local 'item' (a nil value)
stack trace:
was casually testing the new update on debug mode, and what do u know
Update to 0.41.
right, ill try it now
Hello, great mod. Just had a quick question was there any way of increasing the speed of the looting just a little? I don't have MCM and am just running this via MO2. Only wanted to bump the time it takes to search a little. Thanks in advance!
MCM is an addon (just like any other) that you install and forget about it, it does not conflict with anything and expands the possibilities of other addons, don't really understand why everyone is so scared of it.
However there is loot_searching_mcm script where you can set your values in the upper table.
It's more so my main menu mod I use doesn't support MCM.
Am I editing the lines called time_min and time_max under:
local defaults = {
["time_min"] = 5,
["time_max"] = 15,
["hud_enable"] = true,
["hud_icon"] = 1,
["sound_enable"] = true,
["sound_bg_enable"] = true,
["debugx"] = false,
Or do other lines need to be edited? Just want to make the time to loot slightly quicker.
Thanks for the reply!
Yes, these two. Time is random between min and max (minus weight minus icon size).
Perfect so if I wanted to make the looting finalise quicker I would put a lower value such as["time_min"] = 1, and ["time_max"] = 8,?
As when I lower these values it feels like it still takes the same amount of time to loot as previous and nothing has changed which is odd.
Also no crashes what so ever on my end so far with the updated version of this mod!
["debugx"] = false,
turn to true and see for yourself in console if u wana.
А нельзя ли просто заблокировать клавиши и иконки сортировки, пока идёт поиск предметов?
Клавиши выборочно нельзя. Насчет блока функций по нажатию категорий... возможно, но опять патчи которые я делать не умею и опять неделю сидеть над этим ;[
Я посмотрю, может там легко, но ничего не обещаю.
The small disclamer... it made my day XD
Became a bit annoying ;[
10/10, a must have.
С этим аддоном начали двоится предметы в трупах. Заметил это по 2-м нашивкам, по 2-м модулям и так далее. Или это у меня что то не так, я просто к инфе.
А без этого аддона пробовал? ;]
Какие еще стоят влияющие на инвентарь или лут, хотяб примерно?
Без аддона пробывал, все нормально. Перечислять не буду, там 200+ адаптированных к друг другу аддонам. На протяжении года потихоньку, по дате добавления аддонов пилил, так что не перечислю.
Можно ли сделать пару вещей моде?
1. Из-за особенности появления предметов у тех, у кого установлен Sorting Plus, можно ли сделать, чтобы при появлении очередного предмета, происходил автоскролл, чтобы не приходилось постоянно колёсико мышки крутить? Но желательно, чтобы эта фича была опциональной.
2. Было бы неплохо, если бы информация о том, что вы уже обыскали труп, записывалась в сохранение.
1. Sorting plus слишком сложный для понимания, для меня особенно, выше уже отвечал по этому поводу.
2. Можно, но тогда придется добавлять кучу дополнительных проверок, да и вообще зачем это надо?
В ванильной игре может и не надо, т.к. по умолчанию максимальное количество трупов на локацию - 5, я сделал чтобы трупы сами не исчезали и когда локация заполнена ими, то можно и забыть обыскискивали вы этот труп или ещё нет.
Слишком муторно для "персональной" правки, которую большинство и не заметит. Если бы это было дело пяти минут, я бы сразу и добавил... просто сначала решил что оно того не стоит.
Ну значит, лучше оставить как есть. Я просто подумал, что игра же как-то определяет, что труп был обыскан, например, есть мизерный мод который включает показ трупов на радаре в виде точек и когда один раз заглянешь в инвентарь трупа, то точка с радара исчезает, т.е. эта функция уже встроена в игру.
Nice mod, I really like it!
Is it compatible with wuut's "Anomaly magazines"?
Wasn't this addon kinda abandoned with some bugs? Use Arti and Raven magazines.
I been using it in almost my playthrough and nothing happen, it work perfectly but idk why it happen now
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: ...s/anomaly-1.5.1.2\gamedata\scripts\loot_searching.script:134: attempt to compare number with string
stack trace:
How you guys doing it? xd
It's impossible for the variable we compare here to be string. My only suggestion, although this still should not be possible, to look for any other addon that has any symbols or letters in "inv_weight" of item's .ltx file.
Вылет какой-то рандомный. Сам столкнулся с ним. Вылетало с таким же логом при обыске одного из нпс. Перезагружался раз 5 - не помогло. Выключил аддон, запустил игру, скинул весь свой лут в рюкзак, посмотрел, какие вещи были у нпс - вроде ничего необычного. Забрал всё. Включил аддон, сложил всё к нему - перезагрузился - и с включенным аддоном смог спокойно залутать все эти вещи. Магия, блин...
Using this with Sorting Plus breaks Sorting Plus, despite no file conflicts. There are no errors, Sorting Plus simply stops functioning if Looting Takes time is installed at all.
Sorting plus works with this mod, it does not dynamically sort the loot as you are looting. If you close/open the "body" right after the looting process is finished, the items are sorted.
There is a sorting function that updates the sorting when you mark something as junk or favorite "Resort on Marking". It's totally doable somehow to get a script to "tick" the update every second for example. I'm not a programmer so I don't know how to do it xD.
Anyway, I disabled "Sort NPC Inventory" in SortingPlus because it takes up less space in the HUD when using "LOOTING TAKES TIME"
This comment is currently awaiting admin approval, join now to view.
I know this addon is old already, but had to ask somewhere.
Are you planning on make a version of this to work with stashes? Been thinking of it for a couple hours now hehe
Hm, no, I don't think so. Maybe someone else will.
A must have! 10/10.
How about making a similar mod for skinning mutants? That would be awesome. :)
Mutants are entirely different and probably x time harder to make.
Looting sounds are still pretty quiet for me at max setting. Anyway to manually edit and change? Or maybe you could implement an even higher slider option perhaps?
MCM slider is max volume. Sound is vanilla's, not sure how it can be quiet for you, you will need to change the vanilla ogg files.
does this only work on dropped npcs? cause on looting chests the items just pop up without waiting time...
On NPCs only yes. Containers usually are big and technically when you open it you'll see everything. For stalkers you gotta check the pockets etc.
people act like nikita pioneered fuckn everything.. good work man. thanks for the immersive mod
Hello
Really a nice mod that makes the game even more realistic. 10/10. But I have a little problem with the sound. In the test card the looter sound (backround sound) works but in normal game the sound is very quiet despite full volume in the MCM! can you help me?
best regards
Cordon? Cordon bugging out all sounds. If on other location then no idea.
Maybe i did something wrong, but i installed this like every other mod i've downloaded, With the install mod from archive button on MO2 and selecting the ZIP and then checking it turned on and booting the game. But i can't seem to get it working? is there different way you're supposed to install this?
Try to install in MO2 manually, like create folder in mo2 mods and put gamedata there.
Hey! Out of pure dumb curiosity, would there be a way to add an option that piggybacks on Haruka's Skills system and makes the looting go faster the higher your Scavenging skill is? Not sure if that's something that can be done through your mod itself, or if that's a patch that would have to be made for the Skills mod instead.
Should be easy and people asked for it, I just can't get my hands on it and don't like updating addons with minimum changes ;[
You can try modding channels or catch me in one of them and I'll try to make it (should be 2 mins to make).
The Anomaly Modding Discord itself? Not currently a member but I can look for it to contact you. That, or you can directly message me on Discord if you like. Name's the same on there as it is here. c: