Raised This Month: $51 Target: $400
 12% 

[TF2Items] Give Weapon (v3.14159, 11/29/2013)


Post New Thread Reply   
 
Thread Tools Display Modes
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-12-2015 , 20:01   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1381

Set attribute "item style override" to 0.0
Potato Uno is offline
littlemouse
Junior Member
Join Date: Jun 2015
Old 07-12-2015 , 21:05   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1382

Quote:
Originally Posted by Darkbear View Post
You should look at item_games.txt first. If you still have problem, I suggest you to use the skin override of the custom weapon.
littlemouse is offline
Darkbear
Junior Member
Join Date: May 2015
Old 07-13-2015 , 06:14   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1383

Quote:
Originally Posted by Potato Uno View Post
Set attribute "item style override" to 0.0
thanks, my code is:

"custom_give_weapons_vlolz"
{
"9999"
{
"classname" "saxxy"
"index" "1071"
"slot" "2"
"quality" "6"
"level" "100"
"attribs" "134 ; 19"
"ammo" "-1"
}
}

so which part have problem?

Last edited by Darkbear; 07-13-2015 at 06:15.
Darkbear is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 07-13-2015 , 21:31   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1384

You need to add the item style override to the "attribs" section. The 134 ; 19 part gives it an unusual (?). Delete that and replace it with "542 ; 0".
Potato Uno is offline
Darkbear
Junior Member
Join Date: May 2015
Old 07-13-2015 , 23:04   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1385

Quote:
Originally Posted by Potato Uno View Post
You need to add the item style override to the "attribs" section. The 134 ; 19 part gives it an unusual (?). Delete that and replace it with "542 ; 0".
Thank you, it works now. that 134;19 I just copy from another item, but I find that why I can't use golden frying pan because it, thank you

Last edited by Darkbear; 07-14-2015 at 01:00.
Darkbear is offline
Zrexachill
New Member
Join Date: Jul 2015
Old 07-16-2015 , 12:31   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1386

how do i get the plugin to work. I installed the plugin but in the console it spams:
L 07/16/2015 - 11:24:22: [SM] Exception reported: Plugin not runnable
L 07/16/2015 - 11:24:22: [SM] Call stack trace:
Zrexachill is offline
King Cnut
Senior Member
Join Date: Sep 2014
Old 07-16-2015 , 17:35   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1387

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?
__________________
*tips fedora, unsheaths katana, teleports behind u, nods respectfully*
King Cnut is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 07-16-2015 , 20:35   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1388

Quote:
Originally Posted by King Cnut View Post
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.

Last edited by 404UserNotFound; 07-16-2015 at 20:41.
404UserNotFound is offline
King Cnut
Senior Member
Join Date: Sep 2014
Old 07-17-2015 , 08:41   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1389

Quote:
Originally Posted by abrandnewday View Post
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.
Yeah, FP is a den of circle-jerking bush league trolls, no surprise there!

I'm actually using Weapon Restrictions to restrict all but stock weapons on a server. We are only running Give Weapon because it's a required plugin for Weapon Restrictions and we do not have any custom weapons added in any way. The crashing the server part is certainly a pain in the ass. I would just love to figure this out
__________________
*tips fedora, unsheaths katana, teleports behind u, nods respectfully*
King Cnut is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 07-17-2015 , 09:08   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1390

If you can pinpoint which player/item is causing this, that would help. I will look up that restrictions plugin though, and take a look at the source code.
404UserNotFound is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode