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
< >
Showing 1-12 of 12 comments
Darsu  [developer] Aug 2 @ 1:05am 
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
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 Aug 8 @ 6:14pm 
@GretchHerald THANK YOU I've been trying to fix this for a while now and never would've thought ZINV was the cause
Darsu  [developer] Aug 9 @ 2:01am 
found issue, zinv mod is poorly coded and defines "_" character to a random value (while in normal lua it stands for blank value)
Darsu  [developer] Aug 9 @ 2:04am 
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
Last edited by Darsu; Aug 9 @ 2:07am
ah, that explains it, thanks for looking into it!
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  [developer] Aug 10 @ 11:59pm 
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
Ahhhh, I see. I don't know much about lua but that makes sense
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
Okay, after some more testing, Reagdoll seems to be the culprit, not ReaSFX. Very bizarre
< >
Showing 1-12 of 12 comments
Per page: 1530 50