Garry's Mod

Garry's Mod

Ammo Dropper
 Tämä aihe on kiinnitetty, joten se on todennäköisesti tärkeä
8Z  [kehittäjä] 24.4.2018 klo 19.00
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.
< >
Näytetään 1-11 / 11 kommentista
8Z  [kehittäjä] 24.4.2018 klo 19.03 
Example bug report:

Maxpowerammo lähetti viestin:
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.
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
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
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  [kehittäjä] 8.12.2019 klo 18.51 
Hmm, not sure how the hook interacts with world spawned props. Can you show me a map that does this?
Shootist lähetti viestin:
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  [kehittäjä] 9.12.2019 klo 23.53 
Thank you for the report - if I get the time I might autodisable this feature in these specific maps.
doesn't work with TFA apparently
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.12.2022 klo 17.21 
[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
why am i GETTING SO MANY ERRORS?!?!?!?!?!
Like, EVERY ACTION. Entity created, Entity Damaged, Player Spawning, etc.
< >
Näytetään 1-11 / 11 kommentista
Sivua kohden: 1530 50