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

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


Post New Thread Reply   
 
Thread Tools Display Modes
nope.avi
Senior Member
Join Date: Jan 2012
Location: Australia
Old 05-09-2013 , 08:09   Re: [TF2Items] Give Weapon (v3.14, 01/23/2013)
Reply With Quote #1051

The OP headtaker crashes my server with no error logs.
__________________
I quit the FF2 business, I can only provide some assistance and feedback. I was previously a 3D modeler, texture artist and boss maker.
nope.avi is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 05-13-2013 , 20:11   Re: [TF2Items] Give Weapon (v3.14, 01/23/2013)
Reply With Quote #1052

Might be something to do with the model it's got on it, though I doubt it.
con_logfile "logs/conlog.log", please. After a crash, look near the end of that file.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
killerps
Member
Join Date: Jun 2011
Location: Libusza / Poland
Old 05-31-2013 , 13:43   Re: [TF2Items] Give Weapon (v3.14, 01/23/2013)
Reply With Quote #1053

its been a long time.. ;)

any news? whether custom weapon with custom model will start to work properly again?
killerps is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 06-04-2013 , 22:48   Re: [TF2Items] Give Weapon (v3.14, 01/23/2013)
Reply With Quote #1054

Fix is up, 3.141. Bigger update has been stewing this whole time but wasn't yet ready so I figured I'd just post this now.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 06-04-2013 at 22:59.
FlaminSarge is offline
killerps
Member
Join Date: Jun 2011
Location: Libusza / Poland
Old 06-07-2013 , 16:53   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1055

i was playing with custom demo targe, and...
Quote:
L 06/07/2013 - 2259: [SM] Native "SetEntPropEnt" reported: Property "m_hExtraWearableViewModel" not found (entity 136/tf_wearable_demoshield)
L 06/07/2013 - 2259: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 06/07/2013 - 2259: [SM] [0] Line 1330, C:\sourcemod\tf2items_giveweapon.sp::GiveWeap onOfIndex()
L 06/07/2013 - 2259: [SM] [1] Line 1052, C:\sourcemod\tf2items_giveweapon.sp::Command_ Gimme()
my config:
Quote:
"9992"
{
"classname" "tf_wearable_demoshield"
"index" "131"
"slot" "1"
"quality" "6"
"level" "99"
"attribs" "150 ; 1"
"ammo" "-1"
"model" "models/custom/.../x.mdl"
"viewmodel" "models/custom/.../x.mdl"

}
any solutions?
btw. viewmodel still doesn't work
killerps is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 06-07-2013 , 17:05   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1056

Quote:
California Bear- for a server on which to test this; that server is gone now :C canceled...
Flaming, I'd be more than happy to provide you with a test environment if you so desire. PM me or find me on Steam if you are interested.
Mr. Man is offline
N3X15
Junior Member
Join Date: Nov 2012
Location: Seattle, WA
Old 06-13-2013 , 02:38   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1057

I made a modification to this plugin to make configuration vastly simpler and a bit more future-proof, since attribute indices have occasionally changed. It's also easier to see what one has done to a weapon, instead of spending half an hour looking up attribute indices.

Robin's cheap rocket launcher now looks like this, if it were in the config file:
Code:
"custom_give_weapons_vsanity" 
{
    "9205"
    {
        "classname"   "tf_weapon_rocketlauncher"
        "index"       "205"
        "slot"        "0"
        "quality"     "8"
        "level"       "100"
        "ammo"        "200"
        // Old way:
        // "attribs"    "2 ; 10100.0 ; 4 ; 1100.0 ; 6 ; 0.25 ; 16 ; 250.0 ; 31 ; 10.0 ; 103 ; 1.5 ; 107 ; 2.0 ; 134 ; 2.0"
        // "New" way:
        "attribs"
        {
            "damage bonus"                        10110.0
            "clip size bonus"                     1100.0
            "fire rate bonus"                     0.25
            "heal on hit for rapidfire"           250.0
            "critboost on kill"                   10.0
            "Projectile speed increased"          1.5
            "move speed bonus"                    2.0
            "attach particle effect"              2.0
        }
    }
}
However, there's a wee problem: It now requires TF2ItemsInfo in order to look up those attribute indices. It's also no longer backwards compatible, although that should be relatively simple to add back in. Oh, and it spams the console on startup with debugging stuff.

Given these warnings, if you want to use this modified, hacky, unapproved edition of GiveWeapon and are willing to rewrite your config to the format above, the .sp is attached. I hope someone finds it useful and/or stress-reducing.

EDIT: Also added a unified diff (.patch file) so you can see what I screwed around with, in case you're curious. Open in Notepad++ or some other editor with Unix EOL support.
Attached Files
File Type: sp Get Plugin or Get Source (tf2items_giveweapon.sp - 109 views - 229.4 KB)
File Type: patch tf2items_giveweapon.sp.patch (8.2 KB, 98 views)

Last edited by N3X15; 06-13-2013 at 02:53. Reason: Added a diff so people can see what I changed
N3X15 is offline
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 06-14-2013 , 15:14   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1058

Latest TF2ItemsInfo Update broke plugin?
Code:
L 06/14/2013 - 20:58:19: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 06/14/2013 - 20:58:19: [SM] Displaying call stack trace for plugin "tf2itemsinfo.smx":
L 06/14/2013 - 20:58:19: [SM]   [0]  Line 2179, F:\27010\orangebox\tf\addons\sourcemod\scripting\tf2itemsinfo.sp::Native_FindItems()
L 06/14/2013 - 20:58:19: [SM] Native "TF2II_FindItems" reported: Error encountered while processing a dynamic native
L 06/14/2013 - 20:58:19: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 06/14/2013 - 20:58:19: [SM]   [0]  Line 2188, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::MakeTF2IITrie()
L 06/14/2013 - 20:58:19: [SM]   [1]  Line 2299, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::CreateItemInfoTrie()
L 06/14/2013 - 20:58:19: [SM]   [2]  Line 112, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::OnPluginStart()L 06/14/2013 - 20:58:19: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 06/14/2013 - 20:58:19: [SM] Displaying call stack trace for plugin "tf2itemsinfo.smx":
L 06/14/2013 - 20:58:19: [SM]   [0]  Line 2179, F:\27010\orangebox\tf\addons\sourcemod\scripting\tf2itemsinfo.sp::Native_FindItems()
L 06/14/2013 - 20:58:19: [SM] Native "TF2II_FindItems" reported: Error encountered while processing a dynamic native
L 06/14/2013 - 20:58:19: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 06/14/2013 - 20:58:19: [SM]   [0]  Line 2188, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::MakeTF2IITrie()
L 06/14/2013 - 20:58:19: [SM]   [1]  Line 2299, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::CreateItemInfoTrie()
L 06/14/2013 - 20:58:19: [SM]   [2]  Line 112, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::OnPluginStart()

Last edited by Pelipoika; 06-14-2013 at 15:15.
Pelipoika is offline
NameUser
Senior Member
Join Date: Apr 2012
Location: Bay Area, California
Old 06-14-2013 , 17:38   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1059

Quote:
Originally Posted by Pelipoika View Post
Latest TF2ItemsInfo Update broke plugin?
Code:
L 06/14/2013 - 20:58:19: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 06/14/2013 - 20:58:19: [SM] Displaying call stack trace for plugin "tf2itemsinfo.smx":
L 06/14/2013 - 20:58:19: [SM]   [0]  Line 2179, F:\27010\orangebox\tf\addons\sourcemod\scripting\tf2itemsinfo.sp::Native_FindItems()
L 06/14/2013 - 20:58:19: [SM] Native "TF2II_FindItems" reported: Error encountered while processing a dynamic native
L 06/14/2013 - 20:58:19: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 06/14/2013 - 20:58:19: [SM]   [0]  Line 2188, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::MakeTF2IITrie()
L 06/14/2013 - 20:58:19: [SM]   [1]  Line 2299, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::CreateItemInfoTrie()
L 06/14/2013 - 20:58:19: [SM]   [2]  Line 112, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::OnPluginStart()L 06/14/2013 - 20:58:19: [SM] Native "GetArraySize" reported: Invalid Handle 0 (error: 4)
L 06/14/2013 - 20:58:19: [SM] Displaying call stack trace for plugin "tf2itemsinfo.smx":
L 06/14/2013 - 20:58:19: [SM]   [0]  Line 2179, F:\27010\orangebox\tf\addons\sourcemod\scripting\tf2itemsinfo.sp::Native_FindItems()
L 06/14/2013 - 20:58:19: [SM] Native "TF2II_FindItems" reported: Error encountered while processing a dynamic native
L 06/14/2013 - 20:58:19: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 06/14/2013 - 20:58:19: [SM]   [0]  Line 2188, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::MakeTF2IITrie()
L 06/14/2013 - 20:58:19: [SM]   [1]  Line 2299, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::CreateItemInfoTrie()
L 06/14/2013 - 20:58:19: [SM]   [2]  Line 112, C:\SRCDS\orangebox\orangebox\tf\addons\sourcemod\scripting\tf2items_giveweapon.sp::OnPluginStart()
I'm having a similar error
Code:
L 06/14/2013 - 21:33:23: [SM] Displaying call stack trace for plugin "tf2itemsinfo.smx":
L 06/14/2013 - 21:33:23: [SM] [0] Line 2179, F:\27010\orangebox\tf\addons\sourcemod\scripting\tf2itemsinfo.sp::Native_FindItems()
L 06/14/2013 - 21:33:23: [SM] Native "TF2II_FindItems" reported: Error encountered while processing a dynamic native
L 06/14/2013 - 21:33:23: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 06/14/2013 - 21:33:23: [SM] [0] Line 2188, C:\sourcemod\tf2items_giveweapon.sp::MakeTF2IITrie()
L 06/14/2013 - 21:33:23: [SM] [1] Line 2299, C:\sourcemod\tf2items_giveweapon.sp::CreateItemInfoTrie()
L 06/14/2013 - 21:33:23: [SM] [2] Line 112, C:\sourcemod\tf2items_giveweapon.sp::OnPluginStart()
__________________

Last edited by NameUser; 06-14-2013 at 17:38.
NameUser is offline
Send a message via Skype™ to NameUser
N3X15
Junior Member
Join Date: Nov 2012
Location: Seattle, WA
Old 06-15-2013 , 00:48   Re: [TF2Items] Give Weapon (v3.141, 06/04/2013)
Reply With Quote #1060

Quote:
Originally Posted by NameUser View Post
I'm having a similar error
Code:
L 06/14/2013 - 21:33:23: [SM] Displaying call stack trace for plugin "tf2itemsinfo.smx":
L 06/14/2013 - 21:33:23: [SM] [0] Line 2179, F:\27010\orangebox\tf\addons\sourcemod\scripting\tf2itemsinfo.sp::Native_FindItems()
L 06/14/2013 - 21:33:23: [SM] Native "TF2II_FindItems" reported: Error encountered while processing a dynamic native
L 06/14/2013 - 21:33:23: [SM] Displaying call stack trace for plugin "tf2items_giveweapon.smx":
L 06/14/2013 - 21:33:23: [SM] [0] Line 2188, C:\sourcemod\tf2items_giveweapon.sp::MakeTF2IITrie()
L 06/14/2013 - 21:33:23: [SM] [1] Line 2299, C:\sourcemod\tf2items_giveweapon.sp::CreateItemInfoTrie()
L 06/14/2013 - 21:33:23: [SM] [2] Line 112, C:\sourcemod\tf2items_giveweapon.sp::OnPluginStart()
sm plugins reload tf2items_giveweapon after waiting for the server to load fixed it for me. I think TF2II is taking a lot of time to start up.

Last edited by N3X15; 06-15-2013 at 00:50.
N3X15 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 06:11.


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