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

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


Post New Thread Reply   
 
Thread Tools Display Modes
projectghost
Junior Member
Join Date: May 2020
Old 05-07-2020 , 22:00   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1681

Quote:
Originally Posted by MAGNAT2645 View Post
Hmm, try to use Item Designer instead of this GiveWeapon plugin.
Thank you so much, this is just what I needed!

projectghost is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-07-2020 , 22:53   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1682

Quote:
Originally Posted by Hoto Cocoa View Post
You will need to use TF2ItemsInfo to get the item data from the game.
I also believe this is the correct answer. I am able to use !gimme 1104, or !gimme 15150 and it works for me.

From original post:
Cvars...
tf2items_use_tf2ii (default is 1): Only matters if TF2ItemsInfo is loaded (and plugin was compiled with TF2II include). 1 to grab weapon data from TF2ItemsInfo (therefore automatically updating weapons), 0 to not.
PC Gamer is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-17-2020 , 11:22   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1683

Can anyone help me to resolve a bug with this plugin? When you use the !gimme command more than once it will display one of the older previous weapons in the HUD Inventory Select (weapon selection when you scroll the mouse).

See Video for example:
PC Gamer is offline
projectghost
Junior Member
Join Date: May 2020
Old 05-19-2020 , 13:38   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1684

Quote:
Originally Posted by PC Gamer View Post
I also believe this is the correct answer. I am able to use !gimme 1104, or !gimme 15150 and it works for me.

From original post:
Cvars...
tf2items_use_tf2ii (default is 1): Only matters if TF2ItemsInfo is loaded (and plugin was compiled with TF2II include). 1 to grab weapon data from TF2ItemsInfo (therefore automatically updating weapons), 0 to not.
When I use TF2 Item info, I still get Invalid Item Index. Do I need to update a plugin?
projectghost is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-19-2020 , 17:03   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1685

Try using these attached plugins. Let me know they work for you.
Attached Files
File Type: sp Get Plugin or Get Source (tf2itemsinfo.sp - 78 views - 91.4 KB)
File Type: smx tf2itemsinfo.smx (33.0 KB, 143 views)
File Type: sp Get Plugin or Get Source (tf2items_giveweapon.sp - 94 views - 233.4 KB)
File Type: smx tf2items_giveweapon.smx (68.0 KB, 137 views)
PC Gamer is offline
projectghost
Junior Member
Join Date: May 2020
Old 05-20-2020 , 01:41   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1686

Quote:
Originally Posted by PC Gamer View Post
Try using these attached plugins. Let me know they work for you.
Hey man, thanks for the response I appreciate all of your help.

Unfortunately I am still getting that error even with the plugins you provided. It says "[TF2Items] Invalid Weapon Index." Is my TF2Items plugin outdated?

Again, I appreciate all of your help

Last edited by projectghost; 05-20-2020 at 01:41.
projectghost is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-20-2020 , 14:16   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1687

Make sure tf2items is running. At console, type: sm exts list
Latest version: https://builds.limetech.io/?project=tf2items

Make sure tf2items_manager is running. At console, type: sm plugins list
Note: This doesn't come compiled for you with tf2items above. You have to do it yourself.

Make sure tf2itemsinfo is running. At console, type: sm plugins list

Make sure tf2items_giveweapon plugin is running. At console, type: sm plugins list

Make sure tf2items_giveweapon is using weapon information from tf2itemsinfo. At console, type: tf2items_use_tf2ii 1

If one of these plugins above is installed but not running after map change it might be because it is timing out. If so, increase the "SlowScriptTimeout" value in your \addons\sourcemod\configs\core.cfg file to something like "90"

If any of this helped to resolve the problem please consider a donation to Allied Modders.
PC Gamer is offline
projectghost
Junior Member
Join Date: May 2020
Old 05-20-2020 , 14:55   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1688

Quote:
Originally Posted by PC Gamer View Post
Make sure tf2items is running. At console, type: sm exts list
Latest version: https://builds.limetech.io/?project=tf2items

Make sure tf2items_manager is running. At console, type: sm plugins list
Note: This doesn't come compiled for you with tf2items above. You have to do it yourself.

Make sure tf2itemsinfo is running. At console, type: sm plugins list

Make sure tf2items_giveweapon plugin is running. At console, type: sm plugins list

Make sure tf2items_giveweapon is using weapon information from tf2itemsinfo. At console, type: tf2items_use_tf2ii 1

If one of these plugins above is installed but not running after map change it might be because it is timing out. If so, increase the "SlowScriptTimeout" value in your \addons\sourcemod\configs\core.cfg file to something like "90"

If any of this helped to resolve the problem please consider a donation to Allied Modders.
Okay this is really good. I don't have tf2items_manager running. I can see that I have to compile it myself but I don't know how. Could you tell me exactly what I have to do? I know on my other forum posts you've explained to me how to compile in general but I don't know how to compile a completely new plugin. As always I appreciate all the help you've given me and I'd be lost without you.
projectghost is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-20-2020 , 19:48   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1689

1. Place tf2items_manager.sp in your /addons/sourcemod/scripting directory.
2. Go to a command prompt (DOS prompt).
3. Change into scripting directory. Example: cd\tf2server\tf\addons\sourcemod\scripting
4. Type: spcomp tf2items_manager
5. If you don't have errors the spcomp command above will generate a new file called tf2items_manager.smx
6. Move or copy the tf2items_manager.smx file into your plugins directory. Example: \tf2server\tf\addons\sourcemod\plugins

--- or ---

Place the attached tf2items_manager.smx file into your plugins directory. Change map. Test it.
Attached Files
File Type: sp Get Plugin or Get Source (tf2items_manager.sp - 94 views - 14.4 KB)
File Type: smx tf2items_manager.smx (7.8 KB, 140 views)
PC Gamer is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 05-21-2020 , 01:10   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1690

tf2items_manager is a separate standalone plugin that uses TF2Items to modify all weapons that match a config file. I don't believe it's necessary for GiveWeapon to function.

I believe nosoop is working on a new TF2ItemsInfo replacement that has a compatibility plugin for GiveWeapon.
__________________
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
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 22:47.


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