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-26-2020 , 22:06   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1691

Quote:
Originally Posted by PC Gamer View Post
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.
I reinstalled TF2 Items and it ended up fixing it! Thank you so much for the continued help! Definitely gonna donate. Thanks again!
projectghost is offline
enderandrew
Senior Member
Join Date: Jun 2020
Old 07-15-2020 , 12:39   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1692

New syntax version.
Attached Files
File Type: sp Get Plugin or Get Source (tf2items_giveweapon.sp - 235 views - 236.7 KB)
enderandrew is offline
venter25
Member
Join Date: Jul 2019
Old 11-05-2020 , 23:13   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1693

Is there anyway to only let heavies load heavy weapons only? I do not want other classes able to load weapons that belong to other classes.
venter25 is offline
Nightmare Pyro
Member
Join Date: Mar 2020
Location: Cedar Falls
Old 11-13-2020 , 18:13   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1694

yikes


L 11/13/2020 - 17:09:49: SourceMod error session started
L 11/13/2020 - 17:09:49: Info (map "jb_supermario_v16c") (file "G:\TF2ServerManages\Servers\TFS\Server\tf\ad dons\sourcemod\logs\errors_20201113.log")
L 11/13/2020 - 17:09:49: [SM] Error parsing gameconfig file "G:\TF2ServerManages\Servers\TFS\Server\tf\ad dons\sourcemod\gamedata\tf2items.randomizer.t xt":
L 11/13/2020 - 17:09:49: [SM] Error 1 on line 0, col 0: Stream failed to open
L 11/13/2020 - 17:09:49: [SM] Exception reported: Unable to open tf2items.randomizer: File could not be opened: The system cannot find the file specified.


L 11/13/2020 - 17:09:49: [SM] Blaming: tf2items_giveweapon.smx
L 11/13/2020 - 17:09:49: [SM] Call stack trace:
L 11/13/2020 - 17:09:49: [SM] [0] LoadGameConfigFile
L 11/13/2020 - 17:09:49: [SM] [1] Line 5056, tf2items_giveweapon.sp::TF2_SdkStartup
L 11/13/2020 - 17:09:49: [SM] [2] Line 113, tf2items_giveweapon.sp::OnPluginStart
L 11/13/2020 - 17:09:49: [SM] Unable to load plugin "tf2items_giveweapon.smx": Error detected in plugin startup (see error logs)
L 11/13/2020 - 17:09:49: [SM] Exception reported: Error, can't read file containing the item list : addons\sourcemod\configs\tf2items.weapons.txt
L 11/13/2020 - 17:09:49: [SM] Blaming: tf2items_manager.smx
L 11/13/2020 - 17:09:49: [SM] Call stack trace:
L 11/13/2020 - 17:09:49: [SM] [0] SetFailState
L 11/13/2020 - 17:09:49: [SM] [1] Line 244, tf2items_manager.sp:arseItems
L 11/13/2020 - 17:09:49: [SM] [2] Line 56, tf2items_manager.sp::OnPluginStart
L 11/13/2020 - 17:09:49: [SM] Unable to load plugin "tf2items_manager.smx": Error detected in plugin startup (see error logs)
L 11/13/2020 - 17:10:00: [SM] Exception reported: Script execution timed out
L 11/13/2020 - 17:10:01: [SM] Blaming: tf2itemsinfo.smx
L 11/13/2020 - 17:10:01: [SM] Call stack trace:
L 11/13/2020 - 17:10:01: [SM] [1] Line 1676, tf2itemsinfo.sp::GetAttribIDByName
L 11/13/2020 - 17:10:01: [SM] [2] Line 1562, tf2itemsinfo.sp:recacheItemSchema
L 11/13/2020 - 17:10:01: [SM] [3] Line 269, tf2itemsinfo.sp::OnPluginStart
L 11/13/2020 - 17:10:01: [SM] Unable to load plugin "tf2itemsinfo.smx": Error detected in plugin startup (see error logs)
L 11/13/2020 - 17:10:06: [TF2JailLRModule_PH.smx] Could not load the Prop Common file addons\sourcemod\data\prophunt\prop_common.tx t
L 11/13/2020 - 17:10:06: [nextmap.smx] FATAL: Cannot load map cycle. Nextmap not loaded.
L 11/13/2020 - 17:10:06: [SM] Exception reported: Mapcycle Not Found
L 11/13/2020 - 17:10:06: [SM] Blaming: nextmap.smx
L 11/13/2020 - 17:10:06: [SM] Call stack trace:
L 11/13/2020 - 17:10:06: [SM] [0] SetFailState
L 11/13/2020 - 17:10:07: [SM] [1] Line 143, D:\builds\build-sourcemod-msvc12\windows-1.10\build\plugins\nextmap.sp::FindAndSetNext Map
L 11/13/2020 - 17:10:07: [SM] [2] Line 113, D:\builds\build-sourcemod-msvc12\windows-1.10\build\plugins\nextmap.sp::OnConfigsExecu ted
L 11/13/2020 - 17:10:07: [TF2Jail_Redux.smx] ~~~~~No TF2Jail Map Config set for map 'jb_supermario_v16c', dismantling teleportation~~~~~
L 11/13/2020 - 17:10:07: [TF2JailRedux_TeamBans.smx] [JBANS] Induction error: [1045]: Access denied for user 'root'@'localhost' (using password: NO)
Nightmare Pyro is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 11-14-2020 , 01:08   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1695

[QUOTE=Nightmare Pyro;2724821]yikes

L 11/13/2020 - 17:10:00: [SM] Exception reported: Script execution timed out
L 11/13/2020 - 17:10:01: [SM] Blaming: tf2itemsinfo.smx
startup (see error logs)

Wow. Lots of unrelated errors with multiple plugins....

I would start by focusing on the Script execution timeout error. See the error above? Script execution timed out. That is because SourceMod will terminate plugins that take too long to load. You can tell SourceMod to allow more time for plugins to load by editing the /tf/addons/sourcemod/configs/core.cfg file. Look for the entry labeled
PHP Code:
'SlowScriptTimeout"   "30" 
Consider changing it to a higher number, like "60". Restart your server. If the error still persists try adding more time with a number like "90".
PC Gamer is offline
DeathMaster
AlliedModders Donor
Join Date: Mar 2009
Old 02-13-2021 , 00:26   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1696

Quote:
Originally Posted by enderandrew View Post
New syntax version.
Do you have the new include file so we can compile it? Seems the online compiler wont work.
Or could you possibly attach a compiled version?

Last edited by DeathMaster; 02-13-2021 at 00:32.
DeathMaster is offline
Ronas963
Member
Join Date: Jun 2016
Location: Denmark
Old 04-13-2021 , 16:40   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1697

Hi I am bad read english I try 2-5 times it is nothing show sm_givew_ex @me 9205 not working but it is old no new update??

Last edited by Ronas963; 04-14-2021 at 03:46.
Ronas963 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 04-15-2021 , 00:36   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1698

Quote:
Originally Posted by Ronas963 View Post
Hi I am bad read english I try 2-5 times it is nothing show sm_givew_ex @me 9205 not working but it is old no new update??
Did you try using the version provided by EnderAndrew? Link: https://forums.alliedmods.net/showpo...postcount=1690
PC Gamer is offline
Ronas963
Member
Join Date: Jun 2016
Location: Denmark
Old 04-15-2021 , 03:59   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1699

Quote:
Originally Posted by PC Gamer View Post
Did you try using the version provided by EnderAndrew? Link: https://forums.alliedmods.net/showpo...postcount=1690
that's not working not show :/
Ronas963 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 04-17-2021 , 00:03   Re: [TF2Items] Give Weapon (v3.14159, 11/29/2013)
Reply With Quote #1700

Quote:
Originally Posted by Ronas963 View Post
that's not working not show :/
Is the giveweapon command working at all? Is it working for regular stock weapons? Is it working for all weapons except Valve weapons? What does the console say when you type: sm_cvar tf2items_valveweapons It should respond with: "1337"

1. Make sure tf2items_giveweapon is actually running.
2. Try to give yourself a rocketlauncher with the command: !giveweapon @me 18

If that doesn't work you need to ensure TF2items is running AND TF2items_giveweapon is running.
PC Gamer 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 14:01.


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