Similar items dont stack anymore. I think items feel more like real objects when they take up space in the inventory. Should be compatible with everything
Now added a list of stackable items so that patches etc dont clutter your inventory. You can add some more items to the list
stackable_items = {
["e_syringe"] = true,
["prt_i_ammo"] = true,
["bolt"] = true,
["bolt_bullet"] = true,
["batteries_dead"] = true,
["bandit_patch"] = true,
["army_patch"] = true,
["csky_patch"] = true,
["dolg_patch"] = true,
["ecolog_patch"] = true,
["freedom_patch"] = true,
["greh_patch"] = true,
["isg_patch"] = true,
["killer_patch"] = true,
["monolith_patch"] = true,
["renegade_patch"] = true,
["stalker_patch"] = true
}
With the monkeypatch-script this should be compatible with everything as it doesnt overwrite any files
Upd2: Monkeypatch for compatibility thanks to Tosox
Upd1: Whitelist for stackable items
Another step on the road to real inventory tetris!
I like it. Does what it says 10/10.
Do you think you can make a version where the same items with different attachments and conditions are separated like this? Saves a ton of time instead of clicking and scrolling through the small box in the inventory just to disassemble or take a scope off a weapon when you have a couple of the same exact weapon, or an armor with a lower condition in the inventory, like what was done in the trilogy.
Yeah ill try
(buried)
Worst trash from dead air now in Anomaly. Sad.
I didn`t even place any score, just said my opinion.
feature request: add black list of items, that will stack normaly
Done
Do things such as duct tape still have multiple uses?
Yes, also works with mods like "combine all"
Yup. Anotha mod list classic.
а что за иконки на скриншоте? подскажите
Cr3pis Moddb.com в основном, мяса - Moddb.com
Also BIRD Bullet icons Moddb.com
It's very reminiscent of Oblivion Lost.
I like it!!!
Im self-teaching LUA, Thank you for making your code grouped into sections and very neat. Amazing QOL immersion i never thought i needed
Not my code, i just edited out one section. This is the base anomaly gamecode (with small fixes by sota)
but the result leads to increased load in inventory every single item has its own weight, Some people may prefer this addon over stack items also i noticed that stack items can increase game performance for weaker pc especially if the items has HD icons Both ideas are good, it depends on you
mr__dude, you have a bunch of different edits there that don't relate to this mod. Can you comment?
I modified the base utils_ui.script from anomaly (with a few fixes from sota for ultrawide and icon placement). The functions from this script deal with drawing the inventory and other gui-elements.
Idk which edits exactly you mean, so they are eighter vanilla code or from sotas ui rework Moddb.com
Now theres only one function
god bless the inventory tetris
hi! that looks wery nice, but this mod, dont work with "shift_hover_transfer_2021_05_17". idk how fix that, and i mist choose - normal work with items, or not stack items :(
i use nitpickers modpack fasttransfer (also shift transfer) Moddb.com and it works fine
Compatibility with EFP?
Right now idk. Ill try it with monkeypatching then it should work
can you put a limit on inventory space...like EFT...it makes more sense , closer to realism imo
Would be cool but idk how
You can probably also just monkey match the FindSimilar function like this (no need to overwrite the original script anymore):
utils_ui_UICellContainer_FindSimilar = utils_ui.UICellContainer.FindSimilar
utils_ui.UICellContainer.FindSimilar = function(self, obj, sec)
if (not sec) or (stackable_items[sec]) then
return false
end
return utils_ui_UICellContainer_FindSimilar(self, obj, sec)
end
Btw, I would also recommend to just remove the "local" keyword from the whitelist in case modders want to access it.
Thanks will try this later
Ah wait no, I am retarded, that's wrong code. Give me a sec
So, I edited the code in the comment. Now it should work.
Отличный мод, Но есть проблема. Заметил что батарейки от КПК все равно суммируются
Я сделал так, чтобы некоторые мелкие предметы всё ещё складывались, потому что их очень много.
Чтобы это изменить вам нужно изменить файл и закомментировать (или удалить) строку ["dead_batteries"] = true,
Интересно можно ли сделать ограниченный инвентарь чтоб он был не безконечен а был к примеру на 70-100 ячеек в зависимости от надетого рюкзака
Было бы круто, но я пока не знаю как
What's this UI?
ui rework by sota Moddb.com
Is this compatible with G.A.M.M.A.?
Should be. It doesnt replace any files, just adds to a script
thx, it's really compatible
total chaos.
would you be able to explain how to find the names of specific items or categories of items? i would prefer to have all ammo stack for example, is it possible to do that without having to add each ammo separately into your script?
Yeah there is a way. Will put this in a new update. To get a specific item name you can just look it up in the debug menu. To check if an item is ammo you can use "IsItem("ammo",sec)"
Bro, what are these icons? Can I link to them?
Crisp icons Moddb.com, mutant parts Moddb.com, bullet icons Moddb.com
Can't wait to spend a literal cubic meter of electronics on that detector upgrade