HoldType error only happens if M9K is purchased through F4 menu?
11 replies, posted
I know how to fix the issue and I've fixed it for everything but this is confusing me so I was wondering if anyone else had any input.
I only have the latest version of M9K guns on my server and then the latest version of DarkRP + DarkRPModification. Nothing else on my server that can cause this error. Everything on my server is vanilla/unedited so it's not any outdated files.
[code]
SWEP:SetWeaponHoldType - ActIndex[ "" ] isn't set! (defaulting to normal)[/code]
What I'm confused about is this error ONLY shows up when I buy an M9K gun through DarkRP F4 menu and then pick it up and switch to it. After I actually take the gun out - the error pops up. But if I spawn the same exact gun through Q menu and then take the gun out - the error does not come up in console at all. Even if I switch to a job that has an M9K gun and then take the gun out - the error does not show. It only shows when the M9K gun is bought through F4 menu and then taken out.
Does anyone have any feedback? This error has been killing me and I normally fix everything myself easily but this one is just being impossible.
1. Don't usee m9k it has a shitty base.
2. "Not made for TTT or DarkRP, sorry guys!"
Anything but m9k, seriously.
I probably should have been a little more informative.
I'm looking for feedback on why this is happening. I'm not looking to replace M9K guns. My goal is to find out why it does this and how to fix it. It says it isn't made for DarkRP but that's not the issue AFAIK.
This error is caused by one of the recent GMod updates that removed "SetWeaponHoldType" and replaced it with "SetHoldType".
[QUOTE=smithy285;46634696]This error is caused by one of the recent GMod updates that removed "SetWeaponHoldType" and replaced it with "SetHoldType".[/QUOTE]
Was that really a necessary update :P M9K isnt the only weapon base with this bug.
[QUOTE=smithy285;46634696]This error is caused by one of the recent GMod updates that removed "SetWeaponHoldType" and replaced it with "SetHoldType".[/QUOTE]
I already know that.
I'm asking why this error keeps showing up when I'm buying M9K guns through F4 menu in DarkRP. The M9K weapon pack has already been fixed and set to SetHoldType but the error keeps showing up ONLY when the guns are bought through F4 menu in DarkRP and then taken into hands. The error does NOT show up when I spawn the guns through Q menu.
[QUOTE=smithy285;46634696]This error is caused by one of the recent GMod updates that removed "SetWeaponHoldType" and replaced it with "SetHoldType".[/QUOTE]
Nothing was removed. SetHoldType was added and calls SetWeaponHoldType. If the weapon never uses SetHoldType, SetWeaponHoldType will still be called with "", which is an invalid hold type, which I guess is the bug.
[editline]4th December 2014[/editline]
SetHoldType is needed to properly network the holdtype.
So is replacing SetWeaponHoldType with SetHoldType wrong then?
[QUOTE=spazshot;46638159]So is replacing SetWeaponHoldType with SetHoldType wrong then?[/QUOTE]
What makes you think that?
[QUOTE=Robotboy655;46638196]What makes you think that?[/QUOTE]
I don't think that, I'm just asking cause I'm confused. I'm normally able to figure everything out and fix it myself but this error is kicking my butt.
I have the updated M9K guns that fix the "SWEP:SetWeaponHoldType - ActIndex[ "" ] isn't set! (defaulting to normal)" error and then I have the updated DarkRP that also fixes the error.
This error keeps popping up ONLY when I buy M9K guns through DarkRP F4 menu. I've triple checked everything and there's no outdated files. I've decompiled M9K guns to check if they have SetHoldType and they do. The error only shows up when I buy an M9K gun in DarkRP F4 menu and put the gun in my hands. If I spawn the gun in Q menu and put it in my hands - the error doesn't show up.
You'd start by looking at how F4 menu spawns the guns vs how spawnmenu spawns them.
My friend darkaaja found a fix and we forwarded it to the M9K coder.
This can be marked as solved.
Sorry, you need to Log In to post a reply to this thread.