Quote:
Originally Posted by King Cnut
I'm not sure which plugin is causing the issue. But I'm getting server crashes with this error.
Code:
L 07/16/2015 - 20:49:37: [SM] Native "TF2Items_GiveWeapon" reported: [TF2Items] Invalid Weapon Index (-1)
L 07/16/2015 - 20:49:37: [SM] Displaying call stack trace for plugin "tf2-weapon-restrictions.smx":
L 07/16/2015 - 20:49:37: [SM] [0] Line 472, C:\Users\John\Downloads\sourcemod-1.7.2-windows\scripting\tf2-weapon-restrictions.sp::Timer_ReplaceWeapon()
Can anyone help me pin down if it's Give Weapons causing the problem, or the TF2 Weapons Restrictions plugin causing the problem?
|
First off, hi there! It's me, 404 from Facepunch! Remember me? Former TF2 Classic dev? Yeah I see you got banned/left Facepunch and I know exactly why (it sucks!)
Secondly, in response to your question, the error tells you what plugin is causing the issue:
Code:
L 07/16/2015 - 20:49:37: [SM] Displaying call stack trace for plugin "tf2-weapon-restrictions.smx":
Code:
tf2-weapon-restrictions.smx
There's your answer.
However, because its being used in conjunction with Give Weapon, it could be both. I'd fathom a guess that Weapon Restrictions is trying to restrict a custom weapon you've created with Give Weapon, and failing to do so because Weapon Restrictions wasn't built to handle weird IDs from Give Weapon.
Now, there's not really much that can be done to fix this, to my knowledge. And by fix it, I mean "recoding Weapon Restrictions to fix this". You can fix this by simply removing either Weapon Restrictions or Give Weapon. Or just not using Weapon Restrictions when you're using Give Weapon.