Raised This Month: $ Target: $400
 0% 

[TF2] ServerGifts


Post New Thread Reply   
 
Thread Tools Display Modes
machede
Member
Join Date: Nov 2011
Location: Italia
Old 10-15-2013 , 01:30   Re: [TF2] ServerGifts
Reply With Quote #11

Quote:
Originally Posted by Horsedick View Post
I was testing this and appears its causing a server crash when you go to pick them up.
on my test server 185.25.204.130:27016
no crash, the plugin works well, very funny.
machede is offline
Jimleet1337
SourceMod Donor
Join Date: Oct 2013
Location: TF2 BEELINE
Old 10-15-2013 , 02:57   Re: [TF2] ServerGifts
Reply With Quote #12

Thanks for this plugin
Work 100%
Jimleet1337 is offline
Send a message via Skype™ to Jimleet1337
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 10-15-2013 , 09:52   Re: [TF2] ServerGifts
Reply With Quote #13

Players wont be able to see this weapon equipped on you, right?
__________________

Last edited by luki1412; 10-15-2013 at 10:07.
luki1412 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 10-15-2013 , 13:10   Re: [TF2] ServerGifts
Reply With Quote #14

Quote:
Originally Posted by luki1412 View Post
Players wont be able to see this weapon equipped on you, right?
Yes.
Leonardo is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 10-15-2013 , 21:02   Re: [TF2] ServerGifts
Reply With Quote #15

Quote:
Originally Posted by Bitl View Post
Can you show me your crash log?

Code:
L 10/13/2013 - 11:36:11: [SM] Displaying call stack trace for plugin "servergifts.smx":
L 10/13/2013 - 11:36:11: [SM]   [0]  Line 320, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\include\tf2_stocks.inc::TF2_GetPlayerClass()
L 10/13/2013 - 11:36:11: [SM]   [1]  Line 182, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\ServerGifts.sp::StartTouch()
L 10/13/2013 - 11:36:52: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 699/prop_physics)
L 10/13/2013 - 11:36:52: [SM] Displaying call stack trace for plugin "servergifts.smx":
L 10/13/2013 - 11:36:52: [SM]   [0]  Line 320, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\include\tf2_stocks.inc::TF2_GetPlayerClass()
L 10/13/2013 - 11:36:52: [SM]   [1]  Line 182, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\ServerGifts.sp::StartTouch()
L 10/13/2013 - 11:40:42: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 675/prop_physics)
L 10/13/2013 - 11:40:42: [SM] Displaying call stack trace for plugin "servergifts.smx":
L 10/13/2013 - 11:40:42: [SM]   [0]  Line 320, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\include\tf2_stocks.inc::TF2_GetPlayerClass()
L 10/13/2013 - 11:40:42: [SM]   [1]  Line 182, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\ServerGifts.sp::StartTouch()

L 10/13/2013 - 11:53:59: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 774/prop_physics)
L 10/13/2013 - 11:53:59: [SM] Displaying call stack trace for plugin "servergifts.smx":
L 10/13/2013 - 11:53:59: [SM]   [0]  Line 320, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\include\tf2_stocks.inc::TF2_GetPlayerClass()
L 10/13/2013 - 11:53:59: [SM]   [1]  Line 182, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\ServerGifts.sp::StartTouch()

L 10/13/2013 - 12:04:03: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 698/prop_physics)
L 10/13/2013 - 12:04:03: [SM] Displaying call stack trace for plugin "servergifts.smx":
L 10/13/2013 - 12:04:03: [SM]   [0]  Line 320, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\include\tf2_stocks.inc::TF2_GetPlayerClass()
L 10/13/2013 - 12:04:03: [SM]   [1]  Line 182, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\ServerGifts.sp::StartTouch()

L 10/13/2013 - 12:17:50: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 758/prop_physics)
L 10/13/2013 - 12:17:50: [SM] Displaying call stack trace for plugin "servergifts.smx":
L 10/13/2013 - 12:17:50: [SM]   [0]  Line 320, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\include\tf2_stocks.inc::TF2_GetPlayerClass()
L 10/13/2013 - 12:17:50: [SM]   [1]  Line 182, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\ServerGifts.sp::StartTouch()
I prob need to update the give weapon plugin - let me look at that and see whats going on

Last edited by Horsedick; 10-15-2013 at 21:06.
Horsedick is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 10-19-2013 , 09:07   Re: [TF2] ServerGifts
Reply With Quote #16

Nope still seeing an error and a crash happening

Code:
L 10/18/2013 - 16:05:26: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 820/func_tracktrain)
L 10/18/2013 - 16:05:26: [SM] Displaying call stack trace for plugin "ServerGifts.smx":
L 10/18/2013 - 16:05:26: [SM]   [0]  Line 320, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\include\tf2_stocks.inc::TF2_GetPlayerClass()
L 10/18/2013 - 16:05:26: [SM]   [1]  Line 182, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\ServerGifts.sp::StartTouch()
suggestions to fix?
Horsedick is offline
Bitl
Senior Member
Join Date: Jul 2012
Old 10-20-2013 , 18:49   Re: [TF2] ServerGifts
Reply With Quote #17

Quote:
Originally Posted by Horsedick View Post
Nope still seeing an error and a crash happening

Code:
L 10/18/2013 - 16:05:26: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 820/func_tracktrain)
L 10/18/2013 - 16:05:26: [SM] Displaying call stack trace for plugin "ServerGifts.smx":
L 10/18/2013 - 16:05:26: [SM]   [0]  Line 320, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\include\tf2_stocks.inc::TF2_GetPlayerClass()
L 10/18/2013 - 16:05:26: [SM]   [1]  Line 182, C:\steamappservers\232250-tf\tf\addons\sourcemod\scripting\ServerGifts.sp::StartTouch()
suggestions to fix?
Sorry, but I don't know how to fix it. It works for me and other people though, so it may be a problem with your server.

Try reinstalling TF2Items, Give Weapon, ans this plugin, and if nothing works, reinstall your server from scratch.

This plugin was tested on Sourcemod 1.5.1.
__________________
My Plugins
Modified Plugins:
Building Spawner
Monster
It's Raining Men!
Tutorials:
Custom Gamemode

I DON'T DO PLUGIN REQUESTS.

Last edited by Bitl; 10-20-2013 at 18:51.
Bitl is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-20-2013 , 23:38   Re: [TF2] ServerGifts
Reply With Quote #18

Quote:
Originally Posted by Bitl View Post
Sorry, but I don't know how to fix it. It works for me and other people though, so it may be a problem with your server.

Try reinstalling TF2Items, Give Weapon, ans this plugin, and if nothing works, reinstall your server from scratch.

This plugin was tested on Sourcemod 1.5.1.
The cause is simple: you can't just assume the second entity touching the first is a client and have to validate that it's in the client range.

At the start of the StartTouch hook:

PHP Code:
if (client MaxClients)
{
    return 
Plugin_Continue;
    
// Or Plugin_Stop... not sure if it will block trains if you use Plugin_Continue;
    // return Plugin_Stop;

__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-20-2013 at 23:38.
Powerlord is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 10-21-2013 , 16:52   Re: [TF2] ServerGifts
Reply With Quote #19

Quote:
Originally Posted by Bitl View Post
Sorry, but I don't know how to fix it. It works for me and other people though, so it may be a problem with your server.

Try reinstalling TF2Items, Give Weapon, ans this plugin, and if nothing works, reinstall your server from scratch.

This plugin was tested on Sourcemod 1.5.1.
Powerlord pretty much covered it and after reading its pretty clear its just cause I have a train running in the map or other type of entity so apparently its conflicting with that. I'll keep a eye out for an update to avoid this issue but reinstalling those items and the server is pointless.
Horsedick is offline
Bitl
Senior Member
Join Date: Jul 2012
Old 10-21-2013 , 21:13   Re: [TF2] ServerGifts
Reply With Quote #20

Quote:
Originally Posted by Horsedick View Post
Powerlord pretty much covered it and after reading its pretty clear its just cause I have a train running in the map or other type of entity so apparently its conflicting with that. I'll keep a eye out for an update to avoid this issue but reinstalling those items and the server is pointless.
Updated.

1.1.2:

-Fixed a crash that involved trains.
__________________
My Plugins
Modified Plugins:
Building Spawner
Monster
It's Raining Men!
Tutorials:
Custom Gamemode

I DON'T DO PLUGIN REQUESTS.
Bitl 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 04:56.


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