Description

Holding shift and moving mouse over an item transfers it (technically acts as a double click) for Anomaly 1.5.1

Preview
Mouse over transfer items
Comments
Emmet.Otter
Emmet.Otter

(buried)

Hmmm, theres already a right click and transfer all.

Reply Good karma Bad karma-5 votes
eric7237cire Author
eric7237cire

It's true. However, for example, when I loot, often I want most of their stuff, except like 2 things. If I use transfer all, then I have to drop those 2 things by hand.

It can be nice too in merchants, like sell 10 kinds of artifacts, just shift glide over the 10 things, instead of clicking 20 times.

Reply Good karma+9 votes
Johnspartan919
Johnspartan919

2% faster tho

Reply Good karma Bad karma-1 votes
spitsphire51151
spitsphire51151

what exactly did you add/change in the "utils_ui.script" ?

the artifact renovation mod modifies this same script and they appear to conflict.

Reply Good karma Bad karma+1 vote
eric7237cire Author
eric7237cire

I recommend doing the following --

Use the converter tool to get the unmodded config files

So running

```
converter.exe -unpack -xdb .\db\configs\config.db0 -dir .\unpacked
converter.exe -unpack -xdb .\db\configs\scripts.db0 -dir .\unpacked
```

Most mods change things in one of these 2. The exception are animations,sounds,models, but these are binary so the diff is not very useful.

Then using a tool like winmerge to visualize the changes. This is really nice since the tool does a directory diff, including sub directories. So you can easily see what any mod actually changed.

I added code to function UICellContainer:On_Hover(idx), UICellContainer:OnKeyboard(dik, keyboard_action), UICellContainer:Reset, and __init


Reply Good karma+2 votes
GabeCPB0
GabeCPB0

An absolute must! Thanks a lot!

EDIT 7/8/21: I've written this in another mod, might as well write in this one too.

This addon really changed the way I visually approach item management, which takes a big, big chunk of time in any Stalker game.
For anyone wondering, it goes exceptionally well with three other addons, the "Alt Stacking", the "Sorting Plus", and the "New Item Highlight". If memory serves me well, all of them by author RavenAscendant.

And again, thanks to eric7237cire. In all my Stalker playing time, managing items never was this easy!

Reply Good karma Bad karma+5 votes
eric7237cire Author
eric7237cire

You're welcome ! And my thanks goes to the developers who made this game so easy to mod. I don't know LUA personally (which I think is the scripting language this game uses) but it was thankfully not too different than other languages I do know.

Reply Good karma+5 votes
pooms
pooms

Вы абсолютно правы! Возможность модификации даёт долгую жизнь игре и простор творчеству.

Reply Good karma Bad karma+1 vote
Johnspartan919
Johnspartan919

i mean, to add to what i said, its faster sure, but then it gets stuck and i keep unequipping and reequipping my backpack because its stuck.

Reply Good karma Bad karma0 votes
eric7237cire Author
eric7237cire

Ah yes, I uploaded a new version that should help that.

Reply Good karma+2 votes
GabeCPB0
GabeCPB0

Thanks. Turns out, I was having the same problem and couldn't figure out what was happening 'till coming back here.

Reply Good karma Bad karma+1 vote
Jurkonov
Jurkonov

Very nice

Reply Good karma Bad karma+3 votes
nicodarrys
nicodarrys

Lol you save my live for reduce sound pollution when I sell lots weapon parts to mechanics on 3 AM.

Reply Good karma Bad karma+2 votes
M4770
M4770

splendid mod! super useful, thx alot :)
my mouse says also thx ^^

Reply Good karma Bad karma+2 votes
Guest
Guest

Great work.... but I get a CTD when push shift on new game loadout menu... how to stop? Thanks.

Reply Good karma Bad karma+1 vote
eric7237cire Author
eric7237cire

Do you have the crash log handy? A workaround is to only use shift in the game's vendor & inventory screens and to double click in the new game menu.

Reply Good karma+1 vote
Minotaur21
Minotaur21

Here is the relevant portion of my log when this occurred for me. I may have written a comment or two so the line number is probably off slightly.

LUA error: c:/stalker anomaly\gamedata\scripts\utils_ui.script:2008: attempt to index field 'actor' (a nil value)

The issue is with this portion of the script:

if idx and (self.hover.idx ~= idx) and self.shift_transfer_mode and ( (not db.actor:has_info("inventory_wnd_open")) or

Doing a nil check for actor fixes the issue in the new game screen but prevents function in a normal inventory screen. I'm not that great at scripting, so hopefully some of this information can be helpful to you.

Reply Good karma Bad karma+1 vote
Suslik_of_death
Suslik_of_death

Thx for this mod. Can you make mode like this but for disassemble items? I realy tired for monotonous actions. I think press right alt for this so good idea

Reply Good karma Bad karma+2 votes
eric7237cire Author
eric7237cire

Ah yes, I can. I used shift + left alt. I had the same issue. The downside is this will have more conflicts since it touches another script file. I'll release this when I get a chance.

Another trick is if you press Ctrl and shift, it will transfer all the items. But to go back to single transfer you have to quit and re-enter inventory.

Reply Good karma+3 votes
eric7237cire Author
eric7237cire

Ok, I uploaded the version that should do this. Let me know if this works for you. I also get tired of monotonous actions :)

Reply Good karma+3 votes
Suslik_of_death
Suslik_of_death

Perfecto! Now the battle between greed and laziness is over

Reply Good karma Bad karma+1 vote
MedsDenier
MedsDenier

Very useful mod made even better with this update. Fantastic!

Reply Good karma Bad karma+1 vote
Guest
Guest

Could you make a version which transfers items whilst already pushing shift *on* the item? As it stands, you hold shift, then the next item you move to transfers. But what about the item transfering the moment you push shift? If not that's OK, because this is simply an excellent mod that will go a long way to reducing RSI and carpal tunnel issues in many players. You are literally helping players medical problems with a mod like this and you should be commended for it.

Reply Good karma Bad karma+1 vote
Oldemor
Oldemor

The mod worked fine until i decided to change some mods. The shift+t to grab all works fine but not tthe shift+hover function.
Load order:
JSRS P.1 - Main Addon
JSRS P.2 - Cracks + Impacts Patch
JSRS P.3 - New Tracers Patch
SCO3 Addon - Anomaly Sounds
SCO3 Addon - New Footsteps
SCO3 Addon - New Object Sounds
SCO3 Addon - Stereo Thunder (non directional)
SCO3 P.1 Real Mutant Sounds
SCO3 P.2 New Outdoor Sounds
SCO3 P.3 New Underground Sounds
AI_Upscaled_ALL_Anomaly_weapons_scopes_attachments_knivesaxesgrenades
01. Boomsticks and Sharpsticks 23-Apr-2021_1.5.1
03. Quick_Melee_Food_Drug_and_drinks_REQUIRED!!!!!!!!
07. Patch_AFTER_JSRS_Port_3.6_Sound_Overhaul
Food_drug_and_drinks_animations_v0.8.6.8
Trader Overhaul (Main Folder)
B&S Patch
Vivid Icons
Main Compatibility Patch
FasterTooltips
Fillable_canteens_v_0.4
Knife-Binoc-pistol
00 SIDHUD MAIN FILE [INSTALL FIRST ALWAYS]
02 Different Color Scheme [DARK]
99 Minimalist Psybar Fix
shift_hover_transfer_2021_05_17

*Edit
I just set up a spam mouse 1 macro on my keyboard:)

Reply Good karma Bad karma+1 vote
OttoVonLitmarck
OttoVonLitmarck

Hey eric7237cire I was playing with your mod yesterday and I encountered/experienced a CTD while trying to use a improvised stimpack (via the shortcut), don't know if it was just a fluke or not, but I thought I should post the fatal error part for you, regardless:

! [LUA] SCRIPT RUNTIME ERROR
! [LUA] c:/games/anomaly\gamedata\scripts\ui_inventory.script:2819: attempt to index a nil value
! [SCRIPT ERROR]: c:/games/anomaly\gamedata\scripts\ui_inventory.script:2819: 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: c:/games/anomaly\gamedata\scripts\ui_inventory.script:2819: attempt to index a nil value

stack trace:

hopefully this has helped you in someway or another

Reply Good karma Bad karma+1 vote
Guest
Guest

Excuse me sir, is possible the fix artefact renovation overwrite problem ?

Reply Good karma Bad karma+1 vote
cringeybabey
cringeybabey

I just made a patch for this mod and Artefact Renovation. LMK if you want to include it as an optional patch with the downlaod, and I can remove my upload. Thanks for the mod, I've wanted this for a while now!

Moddb.com

Reply Good karma Bad karma+1 vote
spitsphire51151
spitsphire51151

could you make a version where instead of shift acting as double click it acts as a single click?

the issue ive noticed with the current version is that the shift function doesent work if your cursor is currently over an item, you have to move it to a blank space in the inventory then back.
if the items your wanting to transfer are towards the middle of the list you end up transferring items you didn't want to move.

Reply Good karma Bad karma+1 vote
Noxilian
Noxilian

That functionality is available in Modular Miscellaneous Tweaks - Moddb.com

I actually prefer this mod's functionality since it allows me to just slide my mouse around over all the items I want. You can avoid the problem you're talking about by hovering over an item you don't want to transfer that is next to the item you do want to transfer.

I just wish the "take full stack" method disabled when releasing Ctrl, but it's not a big deal.

Reply Good karma Bad karma+1 vote
Noxilian
Noxilian

Hey, despite what I posted to the other user above, I found the solution to the Ctrl bug where it doesn't revert to "single" item mode if you use Shift+Ctrl.

It works fine if you separate out the conditionals instead of having them part of the elseif chain. For example:

if dik == K_CTRL then
self.holding_ctrl = false
end
if dik == K_SHFT then
self.holding_shift = false
end
if dik == K_ALT then
self.holding_alt = false
end

Reply Good karma Bad karma+1 vote
MarqØ
MarqØ

I wish someone posted something like this but a fix to ammunition stacks suddenly disappearing if you move the whole stack FROM the stash TO your backpack.

Reply Good karma Bad karma+1 vote
saturnit3
saturnit3

Amazing work, hope this works in my heavily modified mo2 load order
cheers

Reply Good karma Bad karma+1 vote
JackTheReaperr
JackTheReaperr

Strangely enough, I'm still unequipping stuff despite this bug being corrected earlier. I think this occurs when I'm opening containers while pressing shift (arrive running and opening), but i'm not sure.

Is someone experiencing something similar?

Reply Good karma Bad karma+1 vote
bandit1379
bandit1379

Yes I'm also getting items transferring out of my inventory when I'm not holding Shift. Happens when I open stashes/loot corpses. Doesn't happen all the time, not sure what causes it. Maybe I just need to make sure I'm never holding Shift down when I try to loot.

I just did a little testing and I can't seem to trigger it, IDK.

Reply Good karma Bad karma+1 vote
JackTheReaperr
JackTheReaperr

I have a hunch that it has something to do with shift binded to run. I tried fiddling with the script to change the transfer button but couldnt succeed.

EDIT: Found a workaround. As soon as you open a stash/corpse/trader, press shift one time without moving the mouse. It won't unequip stuff anymore.

Reply Good karma Bad karma+1 vote
alisen88
alisen88

Every day addons come out, some are stupid, some are good, only some are very good and imaginative. This one is in the latter category, it is amazing, but it conflicts with "Artefact renovation" and makes it unusable. In comments above I read that someone left a patch (my own) but the link doesn't work, can you help me?

Reply Good karma Bad karma+1 vote
]{oNtrAst
]{oNtrAst

Is it possible to program the movement of one element to a clamped shift + 1 left-click? And could you do it or explain how?

Reply Good karma Bad karma+1 vote
schizodelic
schizodelic

I got this in the nitpicked pack.
was searching google to try and make my own hotkey for transferring items.
just saw this listed while browsing and haad to com in to add a big thankyou comment
so THANKYOU so much, great QOL mod

Reply Good karma Bad karma+1 vote
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.