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

[TF2Items] Item Designer - Advanced Give Item


Post New Thread Reply   
 
Thread Tools Display Modes
Vininator
New Member
Join Date: Aug 2018
Old 08-22-2018 , 21:30   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #151

L 08/11/2018 - 21:35:00: [SM] Exception reported: Attributes size out of bounds: 16 [0 ... 15]
L 08/11/2018 - 21:35:00: [SM] Blaming: GiveItem.smx
L 08/11/2018 - 21:35:00: [SM] Call stack trace:
L 08/11/2018 - 21:35:00: [SM] [0] TF2Items_SetNumAttributes
L 08/11/2018 - 21:35:00: [SM] [1] Line 142, C:\sourcemod compile 1.3.5 hg3053\scripting\GiveItem.sp::GiveItem

It's breaking most things like tf2attributes, is it just a certain file missing or what?
Vininator is offline
Darik
New Member
Join Date: Apr 2019
Old 04-28-2019 , 11:17   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #152

Hello, I like your plugin it is great, but I have a question, how can you make a small update to give weapons to the bots, because I use them to test, would it be possible?
Darik is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 04-28-2019 , 14:30   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #153

Quote:
Originally Posted by Darik View Post
Hello, I like your plugin it is great, but I have a question, how can you make a small update to give weapons to the bots, because I use them to test, would it be possible?
Maybe you can try changing line 69 in the sourcecode...

From this:
Code:
COMMAND_FILTER_NO_BOTS,
To this:
Code:
//COMMAND_FILTER_NO_BOTS,
I don't use this plugin but maybe the change will allow targeting of Bots.
PC Gamer is offline
Darik
New Member
Join Date: Apr 2019
Old 04-28-2019 , 19:20   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #154

Quote:
Originally Posted by PC Gamer View Post
Maybe you can try changing line 69 in the sourcecode...

From this:
Code:
COMMAND_FILTER_NO_BOTS,
To this:
Code:
//COMMAND_FILTER_NO_BOTS,
I don't use this plugin but maybe the change will allow targeting of Bots.
Thanks for the explanation, but what program should I have to open smx files?
Darik is offline
zyox123cc
Senior Member
Join Date: Jul 2016
Location: spycrab
Old 04-29-2019 , 08:15   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #155

Quote:
Originally Posted by Darik View Post
Thanks for the explanation, but what program should I have to open smx files?
Press Source use notepad open
__________________
sv_downloadurl Recommended FREE website
000webhost(File is too big (max. 32MB)! Upload will be skipped.)
rejetto
(Local_computer_host)
Getting material/model paths easy way (Windows)
steam profile
Youtube
zyox123cc is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 04-29-2019 , 21:05   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #156

Quote:
Originally Posted by Darik View Post
Thanks for the explanation, but what program should I have to open smx files?
You wouldn't edit the smx file. You would edit the sp file. I use Notepad++ to edit the sp file. When you are done editing the sp file you would then compile it using the included spcomp program.

1. Step one. Get Notepad++ or some other editor of your choice. Link: https://notepad-plus-plus.org/

2. Step two. Get the sourcecode of the plugin. It is called GiveItem.sp . This can be found on the first post of this plugin thread. Link: https://forums.alliedmods.net/showthread.php?p=1353985

3. Step three. Put the GiveItem.sp file into your scripting directory. It will be something like: /yourserverdirectory/tf/addons/sourcemod/scripting/

4. Step four. Edit GiveItem.sp with Notepad++. Save it when you are done.

5. Step five. Compile GiveItem.sp. Use command prompt. Change to your scripting directory. Compile your source by typing in: spcomp GiveItem

6. Step six. Step five above will create a file called GiveItem.smx. Copy that into your plugins directory.

7. Step seven. Change map. This should reload your plugin. Now you can test plugin.

I hope this helps.
PC Gamer is offline
EMRandall13
Junior Member
Join Date: Sep 2016
Old 06-17-2019 , 17:27   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #157

This is what happens whenever I try to compile GiveItem.sp while putting COMMAND_FILTER_NO_BOTS in double brackets

This also stops it from actually compiling.

//// GiveItem.sp
//
// C:\hlserver\tf\addons\sourcemod\scripting\Giv eItem.sp(25) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk.
//
//
// C:\hlserver\tf\addons\sourcemod\scripting\Giv eItem.sp(26) : warning 234: symbol "FCVAR_PLUGIN" is marked as deprecated: No logic using this flag ever existed in a released game. It only ever appeared in the first hl2sdk.
//
//
// C:\hlserver\tf\addons\sourcemod\scripting\Giv eItem.sp(70) : error 035: argument type mismatch (argument 5)
// C:\hlserver\tf\addons\sourcemod\scripting\Giv eItem.sp(71) : error 035: argument type mismatch (argument 6)
// C:\hlserver\tf\addons\sourcemod\scripting\Giv eItem.sp(5 : warning 203: symbol is never used: "tn_is_ml"
EMRandall13 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 06-17-2019 , 22:11   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #158

EMRandall13... I tested the fix today and learned that you are correct. My original suggested fix was incorrect. Oops!

I did this today to fix it. I changed line 69 in the sourcecode...

From this:
Code:
COMMAND_FILTER_NO_BOTS,
To this:
Code:
COMMAND_FILTER_ALIVE,
And it compiled without errors. I haven't tested it in game, but I've attached it to this post for you.
Attached Files
File Type: sp Get Plugin or Get Source (GiveItem2.sp - 112 views - 9.2 KB)
File Type: smx giveitem2.smx (9.0 KB, 117 views)
PC Gamer is offline
EMRandall13
Junior Member
Join Date: Sep 2016
Old 06-18-2019 , 21:32   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #159

Thanks for the new code, I can confirm that this is in working order.

Here's some commands in the txt file that I've been experimenting on. I plan to add at least two unique weapons for every class when I'm done.
Attached Thumbnails
Click image for larger version

Name:	BotCrop-min.png
Views:	263
Size:	75.7 KB
ID:	176022  
Attached Files
File Type: txt Adv GiveItem Commands.txt (1.1 KB, 177 views)

Last edited by EMRandall13; 06-18-2019 at 21:36. Reason: Couldn't attach the file properly the first time.
EMRandall13 is offline
DistortedAnimations
Junior Member
Join Date: Oct 2019
Old 11-02-2019 , 20:04   Re: [TF2Items] Item Designer - Advanced Give Item
Reply With Quote #160

Sorry for necroing, but can we have a weapon with unchanged attributes ? Like a weapon itself with no custom attributes ?
DistortedAnimations 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:44.


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