Raised This Month: $32 Target: $400
 8% 

[Any] Plugin Saver


Post New Thread Reply   
 
Thread Tools Display Modes
Author
LenHard
Senior Member
Join Date: Jan 2016
Plugin ID:
6968
Plugin Version:
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 03-07-2020 , 16:54   [Any] Plugin Saver
    Reply With Quote #1

    Description

    Simple plugin that checks constantly if a plugin is down and attempts to load it back up.
    That's it
    Attached Files
    File Type: sp Get Plugin or Get Source (Plugin-Saver.sp - 416 views - 1.9 KB)
    __________________
    LenHard is offline
    JoinedSenses
    Senior Member
    Join Date: Sep 2013
    Old 03-07-2020 , 17:07   Re: [Any] Plugin Saver
    Reply With Quote #2

    What's the use case of this plugin? It doesn't seem like a good solution for any problem.
    __________________
    JoinedSenses is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 03-07-2020 , 17:11   Re: [Any] Plugin Saver
    Reply With Quote #3

    If a plugin hasn't loaded that's probably because it's missing some extension/plugin dependency. Forcing it to load isn't going to solve the problem and only spam the error log. I don't see why anyone would write something like this. You have a plugin causing problems you're trying to solve? Fix the plugin to not crash.
    __________________
    Silvers is offline
    LenHard
    Senior Member
    Join Date: Jan 2016
    Old 03-07-2020 , 17:29   Re: [Any] Plugin Saver
    Reply With Quote #4

    Late loads or an error that causes the plugin to crash would jeopardize the mod/server you're playing on, it'd revive the plugin rather than keep it down.
    __________________
    LenHard is offline
    JoinedSenses
    Senior Member
    Join Date: Sep 2013
    Old 03-07-2020 , 17:40   Re: [Any] Plugin Saver
    Reply With Quote #5

    If a plugin has been unloaded due to some error, i don't consider it wise to force reload it. This plugin may cause more problems than it intends to fix.
    __________________
    JoinedSenses is offline
    LenHard
    Senior Member
    Join Date: Jan 2016
    Old 03-07-2020 , 17:48   Re: [Any] Plugin Saver
    Reply With Quote #6

    I can't see how this would generate more problems? Its intended to keep the plugins running as long as possible till the plugin gets fixed. In a populated server, you don't want your players to just go away because your plugin is down from a minor error. If the error is severe it wouldn't load, thus this plugin is here; this will temporarily put a bandage to the problem till it's fully fixed.
    __________________
    LenHard is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 03-07-2020 , 17:53   Re: [Any] Plugin Saver
    Reply With Quote #7

    What "minor" error would cause a plugin to fail? Please describe exactly the situation you are intending to fix. This is not a solution, fix the plugin in question.
    __________________
    Silvers is offline
    LenHard
    Senior Member
    Join Date: Jan 2016
    Old 03-07-2020 , 17:58   Re: [Any] Plugin Saver
    Reply With Quote #8

    Like I said, it's not meant to fix the plugin but rather keep the game going, sure the plugins will spit more errors, but at least it's playable. The errors that might occur due to SetFailState or some abnormality in a plugin in a certain event or etc.. There is no way I could list you the reasons why a plugin would fail.
    __________________
    LenHard is offline
    lugui
    Senior Member
    Join Date: Feb 2016
    Location: GetClientAbsOrigin();
    Old 03-08-2020 , 11:54   Re: [Any] Plugin Saver
    Reply With Quote #9

    You are fixing the symptoms, not the cause of it.
    __________________
    Add me for commissions!
    Steam: [U:1:88621772]
    Discord: lugui#0889
    My Plugins
    lugui is offline
    MAGNAT2645
    Senior Member
    Join Date: Nov 2015
    Location: AlliedMods.net
    Old 03-08-2020 , 13:14   Re: [Any] Plugin Saver
    Reply With Quote #10

    It's a bad idea because SM will just spam your logs with 'plugin failed to load (see error logs)' error (due to some critical error).
    __________________

    Last edited by MAGNAT2645; 03-08-2020 at 13:14.
    MAGNAT2645 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:53.


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