Half-Life: Alyx

Half-Life: Alyx

Auto Pickup
45 Comments
GoatHead 7 Dec, 2024 @ 12:24pm 
additionally does not work with Resin Detector
GoatHead 4 Dec, 2024 @ 8:53pm 
This mod sadly does not work with the Resin Watch mod
Sam  [author] 19 Aug, 2024 @ 11:00am 
@Alu Midian , assuming you have both addons enabled and started a new save, open the console and see if you can execute "auto_pickup_enable" command. If the command does not exist, then it's an initialisation issue that they need to fix; if the command is there, then it might be functionality conflict that can be looked into.
Alu Midian 15 Aug, 2024 @ 5:25pm 
seems to conflict with Resin Watch, making this mod not work, that author seems to think it has something to do with scalable init support, but im room temp IQ when it comes to mods so its all moon speak to me
kλleid 4 Dec, 2023 @ 12:34pm 
Bloody brilliant mod, just started playing Levitation on my Quest 2 and gone are the times the controller loses tracking when I move my hand over my shoulder. Thank you! ❤️
wgat 10 Sep, 2022 @ 4:40pm 
goes good with novr
Sam  [author] 9 May, 2022 @ 7:41am 
Make sure you have the Auto Pickup addon enabled even while loading a save.
Mixz0r 7 May, 2022 @ 10:13pm 
I just loaded up a game with only 2 addons enabled in the save file; auto pickup and resin detector. But auto pickup isn't working. Any thoughts? It was fine last time I played. I have validated all files in Steam.
revers 31 Jan, 2022 @ 3:43pm 
Sorry, got it working, I didn't realize that I need to restart a new game (can't use my save) and that's why never heard about the 'Start game with addons' button. Now I see it and it works. Thank you! Now need to resolve using of ammo from backpack... :)
Sam  [author] 31 Jan, 2022 @ 12:12pm 
What does the console say when the game is loaded and you release the ammo?

And just to be sure, did you choose 'Start game with addons'?
revers 31 Jan, 2022 @ 11:58am 
Hi everyone,
It's not working for some reason. The game says it's loaded, however releasing the ammo doesn't add it to the backpack. The ammo is not used, I have Reverb G2, so I'm stuck at the beginning of the game where I have to add ammo to my backpack for the first time. Workshop is installed, and I've created the config file (/steamapps/common/Half-Life Alyx/game/hlvr/cfg/auto_pickup.cfg) with the following contents:

auto_pickup_enable 1
auto_pickup_mode 1
auto_pickup_ammo_insertion_debug 1

Tried to restart Steam / PC - doesn't help at all. Any ideas what do I do wrong please?

Thanks in advance.
Kaundere 6 Sep, 2021 @ 11:26am 
Thank you Sam, I indeed did that and it worked. Restarting Steam is what fixed it in the end.
Sam  [author] 6 Sep, 2021 @ 12:29am 
Try re-downloading, validating game files, restarting the game and Steam.
Kaundere 5 Sep, 2021 @ 4:54am 
For some reason the addon is not showing up in the game at all
rellorT 21 Jul, 2021 @ 9:26am 
honestly one thing that sucks about this mod is that you can't drop collectibles that you take out of your backpack

I was in a firefight with manhacks once and I shat myself so hard that I dropped my mag

yeah this mod takes that away so kinda eh, but cool
pacotaco 8 Jun, 2021 @ 6:27pm 
Thank you for this, my left rotator cuff was starting to get messed up until I found this!
SATAN 20 May, 2021 @ 2:26pm 
Thanks! I've got a herniated neck and raising my arm behind my back makes me cramp up and scream in pain.
Fehnye 10 Apr, 2021 @ 9:57pm 
IT LOOK LIKE LIES BENEATH
Sam  [author] 29 Mar, 2021 @ 3:26pm 
As I suspected... I've added some more security, and increased ammo insertion point detection range. I also added a cvar ( auto_pickup_ammo_insertion_range ) to dynamically change this value, and a debug cvar to visualise the reload ranges ( auto_pickup_ammo_insertion_debug 1 ). Related notes in the description.
BT-Jaylex 29 Mar, 2021 @ 11:19am 
I actually noticed it happens when you quickly move your hand away from the gun as soon as the reloading animation starts.
Sam  [author] 28 Mar, 2021 @ 6:01pm 
I still don't know in what conditions and at what frequency it happens, but I slightly increased some values to prevent it. Do let me know if it still happens.
GiovanH 28 Mar, 2021 @ 12:16pm 
Can confirm that this mod is still causing the pistol clip to be incorrectly positioned.
Wardaddy 25 Mar, 2021 @ 1:31am 
I started at Chapter 2 with the pistol in hand and the magazine was at my knuckles under the trigger. I can release the magazin and I can put another magazin in the magwell, but it spawns outside it. I have other mods installed, but nothing that alters weapons. I try to enable only your mod and look if the problem is solved
Sam  [author] 25 Mar, 2021 @ 1:11am 
Which weapon? Does it always happen? Were you moving your hand fast while reloading - does it happen with slow movement?
Wardaddy 25 Mar, 2021 @ 12:33am 
I have the problem, that the magazine is outside of the gun and not in the magwell.
PlumberBill 15 Mar, 2021 @ 4:02pm 
I wish an auto-reload existed, or some way to prevent reaching over the shoulders every time
BT-Jaylex 14 Dec, 2020 @ 5:55pm 
I noticed it after trying to quickly grab ammo and having more ammo in my inventory than I should have had. I tried it later with 100 resin displaying on my hand, throwing all the resin in a corner and trying to pick it up as fast as possible with both hands. I was managing to duplicate at least one resin stack every time I did this and ended up walking out of the room with 115 resin. It looks a bit glitchy when doing this, with resin disappearing and reappearing sometimes. I also noticed that if you hold an item in both hands and drop them at the same time, only one is picked up and the dropped one moves in a glitchy way, not duplicating on this event but still having unusual behavior. I'll try it out again later to see if I've missed anything.
Sam  [author] 14 Dec, 2020 @ 4:59pm 
Grabbing items with hand shouldn't cause any duplication because each action is contained within each item, and the resources are added to the player in the same frame entity is destroyed, so it is theoretically impossible to count a resource twice. I'd like to know if you can replicate it consistently again, and how.

However I hadn't accounted for picking up an item with both lock-on and hand because well, lock on mode was meant for items further than arm's reach. I now made one action override the other, so they can't be used together to duplicate.

Pistols in the SMG slot are generic pistols, but I forgot to add generic pistol to the weapons list; it should be fixed now.

Custom models compiled with matching attachments to Valve's should work with no issues. I tested 4 different reskins and a generic pistol from the workshop, they worked fine.
BT-Jaylex 13 Dec, 2020 @ 7:55pm 
No problem. The glitch was the fact you can "collect" the resin stack as it is being magnetized into the fabricator which causes a lightening effect to persist forever as the machine is never able to load the resin stack. Expanding the zone as you did makes this impossible now since you can't reach the fabricator while collection is still enabled, so the glitch is fixed. I did find a bug where if you throw all your resin in a pile and grab them quickly to collect, you can slowly duplicate them. Not too major since you can literally just spawn yourself resin without enabling cheats anyway.
All magazines now work correctly except for two fringe cases I found. On maps where the Pistol is oddly placed in the SMG slot the magazine still breaks, and it still breaks on custom additional weapons like the combine magnum (generic Pistol I'm assuming).
Sam  [author] 13 Dec, 2020 @ 3:02am 
It is really hard to debug a VR game with no VR equipment, so thanks a lot for reporting these. I increased the safety measures for reloading all weapons.

I'm not exactly sure what you mean by 'letting go of resin early', I could not replicate that issue myself. Either way, I increased the range auto pickup is disabled for the resin stack when near upgrade stations.

I thought I had fixed the issue with (grouped) shotgun shells, apparently I forgot about it. All should be fine now.
BT-Jaylex 11 Dec, 2020 @ 8:36pm 
I understand.
I played around with this mod again today and found the magazines are still having the same problem, it's just happening slightly less often. Also found a bug where you can break upgrade machines by letting go of the resin too early. Ended up getting the machine in an infinite loop of it's ejecting resin animation by mistake. I also notice that auto pickup doesn't seem to work for Shotgun shells.
Sam  [author] 11 Dec, 2020 @ 3:33am 
The floating magazines should now be fixed.

When the lock-on pickup is done on lock rather than on release, the particle effect gets detached floating in front of the hand, and the gloves cannot lock on for a second or two until it releases on its own. Apart from this technical limitation even if it was picked up on lock on, there would have to be a release where nothing happens. And I feel like pickup on release has a more natural feedback; it's like picking up the item by hand and dropping it, but at distance.
BT-Jaylex 9 Dec, 2020 @ 5:13pm 
Seems like the magazine location in guns is displaced whenever this mod is turned on. So the Pistol has a magazine floating in front of it when you load it. Also it might be a bit better for lock on pickup if the item is picked up when you press grip rather than on release.
Sam  [author] 9 Oct, 2020 @ 7:37am 
Thank you. It's not really complicated. I recorded the hand poses in-game (novr), and hand animated the rest. It's a bit rough in some places because I did not spend more time polishing it.
Adil3tr 7 Oct, 2020 @ 10:46pm 
The gif you have for the mod description is really excellent. You should make a guide about it.
Sam  [author] 3 Sep, 2020 @ 1:33pm 
Since you mentioned, I should let you know that my addons are incompatible with that gloves mod and any addon that uses the same dependency it does; because I do not support their unconstructive practices. You'll need to disable them, including their dependency, to use this, and vice versa.

About the unpin addon: all it does is executing a console command (that I have noted in the description) using map extensions, so it only works in the story maps. You can use my addons as autoexec, and put such commands to "unpin" ragdolls on any map, even while the main functionality is disabled with the *_enable 0 commands if you wish.
Trindalas 3 Sep, 2020 @ 11:24am 
I've tried it with other addons but after the first couple crashes I turned everything else off and tried that way and it still crashed,. (I pretty much only use Glorious Gloves, which makes them more like the gravity gun, and unpin ragdolls. I did recently use the one that adds holdable energy shields too, but as I said, even alone it was crashing. I will check it out and see if I can get some more info.)
I know once I disabled this the other addons played nice just fine (albeit a bit laggy in some areas, every item being grabable by the "gravity gun" is quite resource intensive, lol), so that's why I figured it might have been broken by an update since it wouldn't even run on its own.

It is a bit odd though because it was working fine prior to adding the cfg file (well the mod wasn't working but i mean it wasn't crashing) Had me completely stumped as to why, lol. But yea I will see if I can get more info.

Files verified fine by the way (just did it to be sure)
Sam  [author] 3 Sep, 2020 @ 10:25am 
It did not work at the backyard because apparently the first level has an issue with level transition, so the addon was not enabled. I fixed that now.

I don't know about the crash, it sounds unlikely to be caused by something I can change. Does it crash with no addons, with other addons, with my 'Hacking Puzzle Conversion' addon - did you verify your files? I tested the first 6 transitions in the campaign, they work fine for me with my addons enabled.

Seeing the console output could help finding out the issue. Launch your game with '-console -vconsole' parameters, get to the section where it crashes, open the console (~), then see if it crashes. If it does, open the console, save the log (right click > Save Log...), and upload it to a pastebin so I can take a look at it.
Trindalas 3 Sep, 2020 @ 5:18am 
For some reason this causes the game to crash for me. like it doesnt work at all when picking up the first 2 ammo before getting on the train after first getting the gloves and pistol, and then it crashes for me after it loads the next map. No other mods active. I created the cfg file with the enabled line in it and turned it on in the addons menu, so I am not sure why it is doing this. Did the most recent update to the game break it?
Sam  [author] 5 Aug, 2020 @ 3:18am 
In plain text. You can look at skill.cfg for an example. It should look like this:

cmd val
cmd val
cmd val
BIGGTHICCYY 4 Aug, 2020 @ 9:54pm 
how do i write the commands in the config file
piqey 4 Aug, 2020 @ 1:15am 
I see
Sam  [author] 3 Aug, 2020 @ 11:43pm 
I wrote the fade code myself; it linearly lowers the render alpha until it's completely transparent. The effect is more visible in-game.
piqey 3 Aug, 2020 @ 3:23pm 
Did you use an entity fader for making items disappear or is that just part of the GIF animation?
IntellectualPotato 30 Jul, 2020 @ 10:21am 
Thank you for this
Amazing looped gif also