Garry's Mod

Garry's Mod

[ARC9] PolyArms Project
Bug with underbarrel grenade launchers
I set up an NPC battle using an MP5 with a grenade launcher, only for my grenade to disappear. Same with the AR-15. Checking the console gives me this message:

[[ARC9] PolyArms Project] lua/entities/arc9_uplp_riflegrenade.lua:121: bad argument #6 to 'EmitSound' (number expected, got userdata)
1. EmitSound - [C]:-1
2. Detonate - lua/entities/arc9_uplp_riflegrenade.lua:121
3. unknown - lua/entities/arc9_uplp_riflegrenade.lua:167

Timer Failed! [Simple][@lua/entities/arc9_uplp_riflegrenade.lua (line 159)]

I don't know programming so I'm unsure what any of this means, but hopefully it helps
< >
正在显示第 1 - 12 条,共 12 条留言
Darsu  [开发者] 8 月 2 日 上午 1:05 
Cannot replicate, most likely some addon on your side overriding default gmod stuff
Check for anything sound or explosives related
Send link to a bad addon if you find it please
GrechHerald 8 月 4 日 上午 9:16 
it happens with any instance of ZINV+, ZINV++ and coffee man's ZINV (which is a modified version of ZINV++)
it applies to the flashbang and the M203 UBGL but not the frag grenades surprisingly
Sokol 8 月 8 日 下午 6:14 
@GretchHerald THANK YOU I've been trying to fix this for a while now and never would've thought ZINV was the cause
Darsu  [开发者] 8 月 9 日 上午 2:01 
found issue, zinv mod is poorly coded and defines "_" character to a random value (while in normal lua it stands for blank value)
Darsu  [开发者] 8 月 9 日 上午 2:04 
all those zinv addons and its reuploads are ancient and have closed comments, i can't do much other than put them into incompatible arc9 list
最后由 Darsu 编辑于; 8 月 9 日 上午 2:07
GrechHerald 8 月 9 日 上午 9:24 
ah, that explains it, thanks for looking into it!
Nick Dickem 8 月 10 日 下午 8:27 
I'd have to really do some experimenting, I can't imagine it'd have to do with anything regarding the sounds since the grenade just disappears without detonating but Source is jank so it wouldn't entirely surprise me
Darsu  [开发者] 8 月 10 日 下午 11:59 
That's how lua works
If something in code fails (in this case EmitSound due to faulty addon breaking stuff), everything coming after it (explosion and removal of grenade object) stops too
Nick Dickem 8 月 14 日 下午 6:16 
Ahhhh, I see. I don't know much about lua but that makes sense
Nick Dickem 9 月 1 日 上午 12:08 
Okay, so I disabled a bunch of addons. All I really have are a few texture addons, LVS, EFT for Arc9, simple stuff. The only sound addon I have is ReaSFX, so that's the only one I can think of that would be causing a conflict, even though I just tested it by shooting at a wall. I'll do a bit more experimenting tho
Nick Dickem 9 月 1 日 上午 1:17 
Okay, after some more testing, Reagdoll seems to be the culprit, not ReaSFX. Very bizarre
< >
正在显示第 1 - 12 条,共 12 条留言
每页显示数: 1530 50