Raised This Month: $ Target: $400
 0% 

Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011


Post New Thread Reply   
 
Thread Tools Display Modes
Author
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Plugin ID:
491
Plugin Version:
5.8a/b
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    19 
    Plugin Description:
    Traces player sprays on any surface
    Old 05-08-2013 , 05:31   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
    Reply With Quote #1

    Seems to work for me. Sometimes it just wont spray, so i assume its something weird going on.. Like the client changed the spray maybe and it is trying to send a new one, i don't know.
    It will let me spray their spray, then out of nowhere stop working, for a few seconds, then work again. Usually if they go afk or change teams or go spec.

    Players that have never sprayed, sometimes you cant spray their spray, and it seems it is just because the server has not yet gotten the decal file.

    I have the server cache the sprays to web/save stats with sql with the spray n display code, and often some sprays will fail to convert also. When the server gets them, they are 1kb and corrupt. Its likely if you are trying to admin spray such files, it will crash. Perhaps also if you try to spray on an invalid surface/entity as well. Hope this fixes it, because its a good tool to have.

    There is also an easy change that can be made to playerspray func to prevent players from spraying over other player's sprays, so admins can more easily manage stuff, and players can see each others sprays better. I been testing this, it works good.. For admins... Have heard a few complaints from players not being able to overspray others sprays, though i let them overspray their own.
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    BBG_Theory
    Veteran Member
    Join Date: Oct 2010
    Location: NC USA
    Old 05-08-2013 , 15:48   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
    Reply With Quote #2

    I am very sure that the last changes friagram suggested has fixed the crashing. I have switched to friagram's suggested code change on all my servers and it has worked well and with no crashes. As far as I can tell, this problem has been repaired. A huge thanks to Mr. Friagram!!!

    Last edited by BBG_Theory; 05-08-2013 at 15:49.
    BBG_Theory is offline
    namine
    SourceMod Donor
    Join Date: Jul 2010
    Old 05-26-2013 , 20:59   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
    Reply With Quote #3

    Cleaned up the code which it desperately needed (indenting and whatnot)
    Also got rid of the indentation errors from BBG Theory's post!

    Needs some new lines between some functions but it's much cleaner and readable! (this is for aesthetic purposes so won't affect compiling just in case someone asks!)
    Also admin menu doesn't seem to work, ever since BBG Theory's edits (i think D
    Attached Files
    File Type: sp Get Plugin or Get Source (spraytrace.sp - 438 views - 42.0 KB)
    __________________

    Last edited by namine; 05-26-2013 at 21:30.
    namine is offline
    AeroAcrobat
    AlliedModders Donor
    Join Date: Apr 2011
    Location: lives in a circus
    Old 05-27-2013 , 04:39   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
    Reply With Quote #4

    Quote:
    Originally Posted by namine View Post
    Cleaned up the code which it desperately needed (indenting and whatnot)
    Also got rid of the indentation errors from BBG Theory's post!

    Needs some new lines between some functions but it's much cleaner and readable! (this is for aesthetic purposes so won't affect compiling just in case someone asks!)
    Also admin menu doesn't seem to work, ever since BBG Theory's edits (i think D
    have you taken the code from this post ?
    https://forums.alliedmods.net/showpo...&postcount=909
    __________________
    AeroAcrobat is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 05-27-2013 , 08:39   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
    Reply With Quote #5

    :/
    Adminmenu pretty much never works when you reload a plugin that adds to it..
    You can just reload the adminmenu plugin to re-add them to it i think, though there may be another way.

    Might be a good idea to change the spray coords to something other than 0 0 0
    So you dont see disabled sprays on the middle of the map. Lots of maps use 0 0 0 as center like nucleus, and i believe 2 fort. You, can also check if the spray owner is in game or has valid info before printing to hud.

    Also good idea to datapack all of the commands to kick ban players, so you can move the sprays before you remove the player. Atleast this is what i have done when i rewrote this. I would post here, but it would not work due to odd configurations. These are simple/generic changes anyway.
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.

    Last edited by friagram; 05-27-2013 at 08:55.
    friagram is offline
    namine
    SourceMod Donor
    Join Date: Jul 2010
    Old 06-16-2013 , 01:12   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
    Reply With Quote #6

    Quote:
    Originally Posted by AeroAcrobat View Post
    have you taken the code from this post ?
    https://forums.alliedmods.net/showpo...&postcount=909
    Yep
    __________________
    namine is offline
    SilentBr
    Veteran Member
    Join Date: Jan 2009
    Old 07-04-2013 , 23:29   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
    Reply With Quote #7

    This plugin is not working anymore after latest L4D2 update

    L 07/05/2013 - 00:12:49: [SM] Displaying call stack trace for plugin "spraytrace.smx":
    L 07/05/2013 - 00:12:49: [SM] [0] Line 341, /home/groups/alliedmodders/forums/files/3/9/5/3/8/85506.attach::OnPluginStart()
    L 07/05/2013 - 00:12:50: [SM] Native "SDKCall" reported: Invalid Handle 0 (error 4)
    SilentBr is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 07-05-2013 , 02:00   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
    Reply With Quote #8

    What version did you have?

    Line 341 of the full version from the OP is:
    PHP Code:
    AddTempEntHook("Player Decal",PlayerSpray); 
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    sipster19
    Senior Member
    Join Date: Mar 2011
    Old 07-05-2013 , 02:16   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
    Reply With Quote #9

    I have a similar issue with spray tracer basic. I am running SM 1.4.7 and MM 1.9.2.

    L 07/03/2013 - 00:41:21: [SM] Native "AddTempEntHook" reported: TempEntity System unsupported or not available, file a bug report
    L 07/03/2013 - 00:41:21: [SM] Displaying call stack trace for plugin "spraytracebasic.smx":
    L 07/03/2013 - 00:41:21: [SM] [0] Line 114, /home/groups/sourcemod/upload_tmp/phprNhD7t.sp::OnPluginStart()

    Line 114:

    Code:
    AddTempEntHook("Player Decal", PlayerSpray);

    Last edited by sipster19; 07-05-2013 at 02:22.
    sipster19 is offline
    SilentBr
    Veteran Member
    Join Date: Jan 2009
    Old 07-05-2013 , 15:05   Re: Spray Tracer v5.8b (Full v5.8a) updated 6/12/2011
    Reply With Quote #10

    Quote:
    Originally Posted by TnTSCS View Post
    What version did you have?

    Line 341 of the full version from the OP is:
    PHP Code:
    AddTempEntHook("Player Decal",PlayerSpray); 
    I am using SM 1.9.0 39.32 and MM 1.10.0 846 (older donest work for L4D2 server due the latest update)
    SilentBr 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 12:31.


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