Raised This Month: $2 Target: $400
 0% 

[CSGO][PugSetup] RoundRestore


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Cruze
Veteran Member
Join Date: May 2017
Plugin ID:
7179
Plugin Version:
Plugin Category:
All
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Sometimes (player dropped/crashed) which would be disadvantage for a team. It would be very handy to restore the match to the previous round.
    Old 06-30-2020 , 09:13   [CSGO][PugSetup] RoundRestore
    Reply With Quote #1

    Description: Sometimes (player dropped/crashed) which would be disadvantage for a team. It would be very handy to restore the match to the previous round.

    Thanks to: L.O.T for suggestion and for testing.

    More about this:
    1) https://github.com/splewis/csgo-pug-setup/issues/145
    2) https://forums.alliedmods.net/showthread.php?t=269467
    3) https://forums.alliedmods.net/showthread.php?t=306284

    Planning to add more things. Suggestions are welcome!

    Not thoroughly tested so post bug reports IN THIS THREAD ONLY.

    Changelogs:
    Code:
    1.1 - 
    * Two New commands:
    1) sm_restoreround (to restore certain round)(admin only)
    2) sm_deleteallbackuprounds (to delete all backup rounds)(root admin only)
    * Three self-explanatory cvars.
    * Translation file (PR for other languages are welcome in my github)
    1.1fix -
    Fixed translation file name. Thanks to paulo_crash
    Sourcecode in GitHub too (PR for translations are welcome)
    Attached Files
    File Type: zip RestartRound-1.1fix.zip (174 Bytes, 12 views)
    __________________
    Taking paid private requests! Add me on steam/discord!

    AlliedModders Releases | Github | Private Plugins | PayPal | Steam | Discord: Cruze#4947

    Last edited by Cruze; 07-01-2020 at 03:24. Reason: Version 1.1fix
    Cruze is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 06-30-2020 , 13:28   Re: [CSGO][PugSetup] RoundRestore
    Reply With Quote #2

    Thanks for the release.

    I only have a few questions that I would like to confirm even before testing, testing back with feedback, for now...

    Works with both WarMod [BFG] and PUGSetup, right?

    And any suggestions already, from what I could notice any player can use the .stop command and restore the round, right? In the future I could make the command be valid only for the team that lost its player in the case, that is, it will only use the team that is or has been without a player.

    It would also be good to implement a voting system, that is, the majority of the team that would like to use this feature needs to type in the .stop chat.
    __________________

    Last edited by paulo_crash; 06-30-2020 at 18:57.
    paulo_crash is offline
    Cruze
    Veteran Member
    Join Date: May 2017
    Old 06-30-2020 , 17:07   Re: [CSGO][PugSetup] RoundRestore
    Reply With Quote #3

    Quote:
    Thanks for the release.

    I only have a few questions that I would like to confirm even before testing, testing back with feedback, for now...

    Works with both WarMod [BG] and PUGSetup, right?
    I've tried PugSetup only, give it a go!
    Quote:
    And any suggestions already, from what I could notice any player can use the .stop command and restore the round, right? In the future I could make the command be valid only for the team that lost its player in the case, that is, it will only use the team that is or has been without a player.
    Good suggestion, will add it in next version with cvar to enable or disable.
    Quote:
    It would also be good to implement a voting system, that is, the majority of the team that would like to use this feature needs to type in the .stop chat.
    Like: "Playername just typed .stop (2/5 votes)" in which 3 votes are required to pause?
    __________________
    Taking paid private requests! Add me on steam/discord!

    AlliedModders Releases | Github | Private Plugins | PayPal | Steam | Discord: Cruze#4947
    Cruze is offline
    paulo_crash
    AlliedModders Donor
    Join Date: May 2016
    Location: Brazil
    Old 06-30-2020 , 18:59   Re: [CSGO][PugSetup] RoundRestore
    Reply With Quote #4

    Quote:
    Originally Posted by Cruze View Post
    Like: "Playername just typed .stop (2/5 votes)" in which 3 votes are required to pause?
    That, it looks good this way.

    [EDIT]
    Translation errors:
    Code:
    LoadTranslations("PugRestoreRound.phrases");
    Translation file name PugRoundRestore.phrases.txt

    [EDIT2]
    Same thing in the config he creates, in this case the name was changed. But the config I believe is the least:
    Code:
    AutoExecConfig_SetFile("PugRestoreRound");
    __________________

    Last edited by paulo_crash; 06-30-2020 at 19:26.
    paulo_crash is offline
    Cruze
    Veteran Member
    Join Date: May 2017
    Old 07-01-2020 , 00:03   Re: [CSGO][PugSetup] RoundRestore
    Reply With Quote #5

    Quote:
    Originally Posted by paulo_crash View Post
    That, it looks good this way.

    [EDIT]
    Translation errors:
    Code:
    LoadTranslations("PugRestoreRound.phrases");
    Translation file name PugRoundRestore.phrases.txt

    [EDIT2]
    Same thing in the config he creates, in this case the name was changed. But the config I believe is the least:
    Code:
    AutoExecConfig_SetFile("PugRestoreRound");
    Can you show me the errors?
    Edit: Fixed
    __________________
    Taking paid private requests! Add me on steam/discord!

    AlliedModders Releases | Github | Private Plugins | PayPal | Steam | Discord: Cruze#4947

    Last edited by Cruze; 07-01-2020 at 03:13. Reason: edit
    Cruze is offline
    borzaka
    AlliedModders Donor
    Join Date: May 2020
    Location: Hungary
    Old Yesterday , 17:30   Re: [CSGO][PugSetup] RoundRestore
    Reply With Quote #6

    Couple of suggestions:
    • prefix is not always backup_round, it can be set to any custom by mp_backup_round_file cvar
      I have multi instance servers, where I have to set this to different values to not overwrite each other.
    • You can use completely different backup file name patterns by mp_backup_round_file_pattern cvar
      e.g. %prefix%_%date%_%time%_%team1%_%team2%_%map%_ round%round%_score_%score1%_%score2%.txt
    • mp_backup_restore_load_file pauses automatically after executing mp_backup_restore_load_file, if the mp_backup_restore_load_autopause cvar left default, no need to pause again

    So, I would pay attention to custom backup file prefixes and names and use the values from cvars.
    borzaka is offline
    Reply


    Thread Tools
    Display Modes

    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:29.


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