Raised This Month: $7 Target: $400
 1% 

Invalid Item ID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
projectghost
Junior Member
Join Date: May 2020
Old 05-07-2020 , 02:05   Invalid Item ID
Reply With Quote #1

Hey everyone!

I'm pretty new to all of this but please bear with me. I just recently set up a server in which TF2 Items is very integral. Each player is assigned a random weapon at the beginning of the round however I noticed something odd. When I was supposed to get some items I noticed I didn't. I typed in console sm_giveweapon 1104 (airstrike as this was one of the weapons I wasn't getting) and an error appeared with TF2 Items in the console saying it was an invalid ID. Basically, any weapon released after around 2014 is not recognized by my version of TF2 Items. I've been looking around everywhere to find another version but I'm having trouble. What should I do?

Thanks everyone and I appreciate all of the help
projectghost is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-08-2020 , 16:39   Re: Invalid Item ID
Reply With Quote #2

Wrong thread. This probably should be posted in the tf2items_giveweapon plugin thread.

Try this:
1. Install TF2ItemsInfo plugin. If you are already using it go to step 2.
2. Recompile your tf2items_giveweapon
3. OPTIONAL: Since you are going to recompile tf2items_giveweapon anyway, why not do the fix for flamethrowers and Jungle Inferno weapons?
3a. Try changing line 1878 in the source code before recompiling.
Code:
   From:  new flags = OVERRIDE_CLASSNAME | OVERRIDE_ITEM_DEF | OVERRIDE_ITEM_LEVEL | OVERRIDE_ITEM_QUALITY | OVERRIDE_ATTRIBUTES;

   To:  new flags = OVERRIDE_CLASSNAME | OVERRIDE_ITEM_DEF | OVERRIDE_ITEM_LEVEL | OVERRIDE_ITEM_QUALITY | PRESERVE_ATTRIBUTES;
4. Put your newly compiled tf2items_giveweapon plugin in your plugins directory.
5. Change map
6. Test plugin by using: !gimme 1104
7. Have fun!
PC Gamer is offline
projectghost
Junior Member
Join Date: May 2020
Old 05-19-2020 , 13:42   Re: Invalid Item ID
Reply With Quote #3

Quote:
Originally Posted by PC Gamer View Post
Wrong thread. This probably should be posted in the tf2items_giveweapon plugin thread.

Try this:
1. Install TF2ItemsInfo plugin. If you are already using it go to step 2.
2. Recompile your tf2items_giveweapon
3. OPTIONAL: Since you are going to recompile tf2items_giveweapon anyway, why not do the fix for flamethrowers and Jungle Inferno weapons?
3a. Try changing line 1878 in the source code before recompiling.
Code:
   From:  new flags = OVERRIDE_CLASSNAME | OVERRIDE_ITEM_DEF | OVERRIDE_ITEM_LEVEL | OVERRIDE_ITEM_QUALITY | OVERRIDE_ATTRIBUTES;

   To:  new flags = OVERRIDE_CLASSNAME | OVERRIDE_ITEM_DEF | OVERRIDE_ITEM_LEVEL | OVERRIDE_ITEM_QUALITY | PRESERVE_ATTRIBUTES;
4. Put your newly compiled tf2items_giveweapon plugin in your plugins directory.
5. Change map
6. Test plugin by using: !gimme 1104
7. Have fun!
When you say recompile, do you mean running compile.exe in the scripting folder? Because I've done that and unfortunately I am still getting this error.

Also, I am noticing probelms with flamethrowers let me try your fix.

Thanks so much for the reply, I really appreciate the help!
projectghost is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-19-2020 , 16:59   Re: Invalid Item ID
Reply With Quote #4

To compile the tf2items_giveweapon plugin you go to a command prompt, change into the scripting directory, and type: spcomp tf2items_giveweapon

That will create a file called tf2items_giveweapon.smx that you move into your plugins directory.

If that's too hard.... copy the .smx files I've attached to this post into your plugins directory.

I hope this helps. If not let me know.
Attached Files
File Type: sp Get Plugin or Get Source (tf2itemsinfo.sp - 133 views - 91.4 KB)
File Type: smx tf2itemsinfo.smx (33.0 KB, 144 views)
File Type: sp Get Plugin or Get Source (tf2items_giveweapon.sp - 143 views - 233.4 KB)
File Type: smx tf2items_giveweapon.smx (68.0 KB, 143 views)
PC Gamer is offline
Reply


Thread Tools
Display Modes

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 04:00.


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