Raised This Month: $ Target: $400
 0% 

[ANY] Stuck (08/27/2015)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
El Diablo War3Evo
Veteran Member
Join Date: Jun 2013
Plugin ID:
4261
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    You are stuck ? This command can save your life !
    Old 07-25-2015 , 09:47   Re: [ANY] stuck (08/18/2014)
    Reply With Quote #1

    This program tends to lag or crash the server if someone spams stuck command.

    Here is an update I wrote to prevent that... Some servers may need to have multiple players spam it, and it will lag / crash your server.


    So, here is the fix!


    Notes:
    * The smx file requires 1.7 sourcemod that is inside the zip file.
    * I only changed stuck.sp, you can just download that and recompile it for yourself.
    Attached Files
    File Type: zip stuck.zip (12.0 KB, 90 views)
    File Type: sp Get Plugin or Get Source (stuck.sp - 156 views - 8.7 KB)
    __________________

    Last edited by El Diablo War3Evo; 07-25-2015 at 09:50.
    El Diablo War3Evo is offline
    Schpraaankiii
    Veteran Member
    Join Date: Dec 2009
    Location: Sweden Norrköping
    Old 07-25-2015 , 15:44   Re: [ANY] stuck (08/18/2014)
    Reply With Quote #2

    Quote:
    Originally Posted by El Diablo War3Evo View Post
    This program tends to lag or crash the server if someone spams stuck command.

    Here is an update I wrote to prevent that... Some servers may need to have multiple players spam it, and it will lag / crash your server.


    So, here is the fix!


    Notes:
    * The smx file requires 1.7 sourcemod that is inside the zip file.
    * I only changed stuck.sp, you can just download that and recompile it for yourself.
    The lag spikes are not due to spam. They occur emedietly after any player executes the command.
    __________________
    CAOSK-ESPORTS.COM
    Schpraaankiii is offline
    Send a message via Skype™ to Schpraaankiii
    El Diablo War3Evo
    Veteran Member
    Join Date: Jun 2013
    Old 07-25-2015 , 16:41   Re: [ANY] stuck (08/18/2014)
    Reply With Quote #3

    Quote:
    Originally Posted by Schpraaankiii View Post
    The lag spikes are not due to spam. They occur emedietly after any player executes the command.
    Then you need a better service with more CPU power.

    We run our servers on a box (Intel Xeon E3 1245v2) with no problems after this fix. If your running on a cheap VPS, and just using this feature once and not spamming 'stuck' and this lags your server... you should then reconsider getting a better VPS.

    Our box was getting lag to a point where it would cause players to leave, after creating this fix. We no longer have that issue. I used a program I created to watch player's commands and record this to a file. We found out how the player was lagging the server and it was via "stuck" spamming.

    Code:
    L 07/25/2015 - 09:12:30: [say] #9 -W3E- Bandit ./Pazz ****************** "/open"
    L 07/25/2015 - 09:12:30: [say_team] #15 Zahna ******************  "stand up"
    L 07/25/2015 - 09:12:39: [say] #12 KUSH ******************  "its force crouch zahna."
    L 07/25/2015 - 09:12:39: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:39: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:39: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:39: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:39: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:39: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:39: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:40: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:40: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:40: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:40: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:40: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:40: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:42: [say_team] #15 Zahna ******************  "o"
    L 07/25/2015 - 09:12:42: [say] #12 KUSH ******************  "the torch is making me"
    L 07/25/2015 - 09:12:43: [say_team] #15 Zahna ******************  "kk"
    L 07/25/2015 - 09:12:48: [say_team] #15 Zahna ******************  "ur safe bb <3"
    L 07/25/2015 - 09:12:51: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:51: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:52: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:52: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:52: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:53: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:53: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:53: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:53: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:53: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:53: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:53: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:53: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:53: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:53: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:54: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:54: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:54: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:54: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:54: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:54: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:54: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:54: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:54: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784  
    L 07/25/2015 - 09:12:54: [stuck] #16 Buff Skeleton King STEAM_0:1:80216784
    __________________

    Last edited by El Diablo War3Evo; 07-25-2015 at 16:49.
    El Diablo War3Evo is offline
    Schpraaankiii
    Veteran Member
    Join Date: Dec 2009
    Location: Sweden Norrköping
    Old 07-25-2015 , 16:45   Re: [ANY] stuck (08/18/2014)
    Reply With Quote #4

    Quote:
    Originally Posted by El Diablo War3Evo View Post
    Then you need a better service with more CPU power.

    We run our servers on a box (Intel Xeon E3 1245v2) with no problems after this fix. If your running on a cheap VPS, and just using this feature once and not spamming 'stuck' and this lags your server... you should then reconsider getting a better VPS.
    We have more then enough performance. We're running 5 servers on a dedicated server and having this issue. Maybe there's a conflict with another plugin or something like that...
    __________________
    CAOSK-ESPORTS.COM
    Schpraaankiii is offline
    Send a message via Skype™ to Schpraaankiii
    El Diablo War3Evo
    Veteran Member
    Join Date: Jun 2013
    Old 07-25-2015 , 16:53   Re: [ANY] stuck (08/18/2014)
    Reply With Quote #5

    Quote:
    Originally Posted by Schpraaankiii View Post
    We have more then enough performance. We're running 5 servers on a dedicated server and having this issue. Maybe there's a conflict with another plugin or something like that...
    I plan to update this script I wrote for everyone: https://forums.alliedmods.net/showthread.php?t=254928 , but I have not created the time.. the last time I updated it .. it was without testing. I'll soon have an update that everyone can use that can help you find players whom like to spam commands that may cause a similar issue.


    A another way to find if another plugin is causing issues is to unload it and see if the issues stop.
    __________________

    Last edited by El Diablo War3Evo; 07-25-2015 at 16:55.
    El Diablo War3Evo is offline
    Erreur 500
    Senior Member
    Join Date: Aug 2012
    Location: Paris, France
    Old 07-27-2015 , 06:56   Re: [ANY] stuck (08/18/2014)
    Reply With Quote #6

    I think that some of your lag are due to my plugin. In fact if you keep default CVAR value for stuck_radius and stuck_step, it will test (at worst) 152160 positions around the player to unstuck him. And to test 1 position, it teleport player, trace vectors, and realize 3d vector operations.

    I will try to work on a better unstuck algorithm.
    The best I can recommend to you to reduce lag, is to increase CVAR value of stuck_step (you can also reduce value of stuck_radius too).
    This is an example of what they do :
    __________________
    My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

    Need private plugin ? We can found an agreement !
    Steam : Erreur 500

    Last edited by Erreur 500; 07-27-2015 at 07:03.
    Erreur 500 is offline
    El Diablo War3Evo
    Veteran Member
    Join Date: Jun 2013
    Old 07-27-2015 , 20:14   Re: [ANY] stuck (08/18/2014)
    Reply With Quote #7

    Because people whom know servers that use this plugin, can get their friends to spam it and it will cause your server to lag out or crash.


    How the old plugin works - first check and see if the player is stuck, if stuck then check a timer to see if we can really see if they are stuck.

    How my fix works - first check a timer to see if the player can even do use stuck, then if they can use stuck, then check and see if they are stuck, and if they are stuck, then check to see if they are really stuck.


    https://forums.alliedmods.net/showpo...0&postcount=43


    So I recommend everyone use my fix above, until Erreur 500 can fix his based on possibly my fix?
    __________________

    Last edited by El Diablo War3Evo; 07-27-2015 at 20:26.
    El Diablo War3Evo is offline
    Erreur 500
    Senior Member
    Join Date: Aug 2012
    Location: Paris, France
    Old 07-28-2015 , 04:48   Re: [ANY] stuck (08/18/2014)
    Reply With Quote #8

    Quote:
    Originally Posted by El Diablo War3Evo View Post
    Because people whom know servers that use this plugin, can get their friends to spam it and it will cause your server to lag out or crash.


    How the old plugin works - first check and see if the player is stuck, if stuck then check a timer to see if we can really see if they are stuck.

    How my fix works - first check a timer to see if the player can even do use stuck, then if they can use stuck, then check and see if they are stuck, and if they are stuck, then check to see if they are really stuck.


    https://forums.alliedmods.net/showpo...0&postcount=43


    So I recommend everyone use my fix above, until Erreur 500 can fix his based on possibly my fix?
    Yes, there is a spam command issue on my current version. If you want a fix you can use the fix by El Diablo War3Evo. For me, it will be fix on the next version.
    __________________
    My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

    Need private plugin ? We can found an agreement !
    Steam : Erreur 500
    Erreur 500 is offline
    Erreur 500
    Senior Member
    Join Date: Aug 2012
    Location: Paris, France
    Old 08-27-2015 , 09:10   Re: [ANY] stuck (08/27/2015)
    Reply With Quote #9

    ///////////////// UPDATE \\\\\\\\\\\\\\\\\\\\\\\

    v 1.3
    - Add new command !unstuck same as !stuck
    - Update unstuck algorithm: 24 times better than the old one!
    - Update unstuck algorithm: Now players stuck in invisible wall in the sky (=clip in hammer) can be unstuck!
    - If you're still stuck after run !stuck and be teleported on an other place, plugin will try to find a better place right now (7 times max)
    - Remove lag caused by !stuck command.
    - Remove stuck.inc


    And I don't know why, but if you run a server with replay enabled, unstuck algorithm won't work !
    __________________
    My public creation : PortalMod - Free Duels - Unusual Effects - Particle fireworks - !stuck

    Need private plugin ? We can found an agreement !
    Steam : Erreur 500
    Erreur 500 is offline
    DJPlaya
    Senior Member
    Join Date: Nov 2014
    Location: Germany
    Old 03-12-2016 , 13:00   Re: [ANY] stuck (08/27/2015)
    Reply With Quote #10

    Quote:
    Originally Posted by Erreur 500 View Post
    v 1.3
    ...
    - Remove stuck.inc
    Heavy

    ---
    Also the "Only for people who know what their are doing (more information here)"
    Is not working anymore
    __________________
    My biggest Projects: Kigen AC Redux, Forlix Floodcheck Redux

    Last edited by DJPlaya; 11-01-2017 at 21:28.
    DJPlaya is offline
    Send a message via Skype™ to DJPlaya
    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:46.


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