Garry's Mod

Garry's Mod

Ammo Dropper
 This topic has been pinned, so it's probably important
8Z  [developer] 24 Apr, 2018 @ 7:00pm
Bug reporting thead
Please concentrate all bug reports here, for easier tracking and visibility (I don't follow the comment section).

When you are reporting, please post anything outputted into console. They allow me to pinpoint the source of error.
< >
Showing 1-11 of 11 comments
8Z  [developer] 24 Apr, 2018 @ 7:03pm 
Example bug report:

Originally posted by Maxpowerammo:
The quickdrop function seems pretty bugged, I can only quickdrop 357, smg and ar2 ammo, nothing else.
But via the ammodropper_menu I can drop any hl2 ammo.
Quickdrop_all also works for all hl2 weapons except SLAMS.

SLAMS give these errors if I try to quickdrop or quickdrop_all(they are droppable via the ammodropper_menu however):

ammodropper_quickdrop_all:
[Ammo Dropper] lua/autorun/client.lua:129: bad argument #1 to 'lower' (string expected, got no value)
1. lower - [C]:-1
2. QuickDrop - lua/autorun/client.lua:129
3. unknown - lua/autorun/client.lua:144
4. unknown - lua/includes/modules/concommand.lua:54

ammodropper_quickdrop:
[Ammo Dropper] lua/autorun/client.lua:129: bad argument #1 to 'lower' (string expected, got no value)
1. lower - [C]:-1
2. QuickDrop - lua/autorun/client.lua:129
3. unknown - lua/autorun/client.lua:143
4. unknown - lua/includes/modules/concommand.lua:54

I tested all of this without any other mods installed.
LawlenMcVallen 22 Dec, 2018 @ 11:38am 
I seem to be getting the same issue.
] ammodropper_menu (command entered)

[Ammo Dropper] lua/autorun/client.lua:36: attempt to index global 'AmmoDropper' (a nil value)
1. unknown - lua/autorun/client.lua:36
2. unknown - lua/includes/modules/concommand.lua:54
>KB> >KEKSQUAD 24 Oct, 2019 @ 2:53pm 
Still a thing.
[Ammo Dropper] lua/autorun/shared.lua:341: attempt to index local 'data' (a nil value)
1. GetMaxDropAmt - lua/autorun/shared.lua:341
2. OnRowSelected - lua/autorun/client.lua:97
3. SelectItem - lua/vgui/dlistview.lua:497
4. SelectFirstItem - lua/vgui/dlistview.lua:504
5. unknown - lua/autorun/client.lua:109
6. unknown - lua/includes/modules/concommand.lua:54
Shootist 8 Dec, 2019 @ 12:24am 
Not sure if anyone else has made mention of this so I apologize if i'm repeating. I had the option "Replace all default ammo boxes" enabled, jumped into a world that auto spawned ammo and said world ammo started to spawn non-stop. When I turned the option off, it stopped.
Made sure I wasn't being a dummy and had 2 options that shouldn't be on at the same time enabled. They were not. A warning for those who have this add-on enabled and jump into a world that spawns ammo I suppose?
8Z  [developer] 8 Dec, 2019 @ 6:51pm 
Hmm, not sure how the hook interacts with world spawned props. Can you show me a map that does this?
Maxpowerammo 9 Dec, 2019 @ 10:57am 
Originally posted by Shootist:
I had the option "Replace all default ammo boxes" enabled, jumped into a world that auto spawned ammo and said world ammo started to spawn non-stop.
I've seen that happen on the noamz maps, they have infinite ammo spawners that respawn ammo as soon as it's picked up (or removed / replaced).

So ammo dropper replaces the spawned ammo, the map detects that the ammo is gone and spawns a new one, which ammo dropper replaces again, and so on.

I don't think there's much that can be done, other than a warning for maps that do this.

These are the maps I'm talking about for reference:
https://steamhost.cn/steamcommunity_com/workshop/filedetails/?id=107264421
8Z  [developer] 9 Dec, 2019 @ 11:53pm 
Thank you for the report - if I get the time I might autodisable this feature in these specific maps.
SabinyAK-19 12 Feb, 2020 @ 6:55am 
doesn't work with TFA apparently
NNinja1255 23 Nov, 2021 @ 2:08pm 
Error when using the ad_quickdrop_all. Maybe an "if <thing>~=nil then" thing could fix?

[Ammo Dropper] lua/autorun/client.lua:149: attempt to index a nil value
1. QuickDrop - lua/autorun/client.lua:149
2. unknown - lua/autorun/client.lua:158
3. unknown - lua/includes/modules/concommand.lua:54
Nickers 19 Dec, 2022 @ 5:21pm 
[Ammo Dropper] lua/autorun/shared.lua:188: attempt to call method 'getJobTable' (a nil value)
1. GetAmmoCount - lua/autorun/shared.lua:188
2. OnRowSelected - lua/autorun/client.lua:97
3. OnClickLine - lua/vgui/dlistview.lua:443
4. unknown - lua/vgui/dlistview_line.lua:81
Uklejamini 28 Jan, 2023 @ 12:27pm 
why am i GETTING SO MANY ERRORS?!?!?!?!?!
Like, EVERY ACTION. Entity created, Entity Damaged, Player Spawning, etc.
< >
Showing 1-11 of 11 comments
Per page: 1530 50