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

[L4D2] Transition Restore Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
sorallll
Senior Member
Join Date: Oct 2018
Plugin ID:
7958
Plugin Version:
1.2.5
Plugin Category:
Server Management
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    334 
    Plugin Description:
    Restoring transition data by player's UserId instead of character
    Old 02-09-2022 , 12:42   [L4D2] Transition Restore Fix
    Reply With Quote #1

    Description:
    About:
    • This is a replacement for Merudo's Save Weapon 4.3 (forked) so remove it.
    • According to Harry Potter's report, if you want a Survivor Bot that exceeds the survivor_limit limit to not be kicked out of the game after transition restored, you need a Bot management plugin that can dynamically set the value of survivor_limit, such as Merudo's SuperVersus

    Thanks:
    Requirements:
    Related Plugins:
    ConVars:
    PHP Code:
    // Transition Restore Fix plugin version
    transition_restore_fix_version

    // What to choose bot data according to after restart? (0=Model Name, otherwise=Character)
    choose_bot_data "0" 
    Changes:
    Code:
    1.2.5 (19-May-2023)
    - Fix signature invalidation caused by 2.2.2.7 update
    
    1.2.4 (20-Nov-2022)
    - Update signature and cleaned up some code
    
    1.2.3 (24-Oct-2022)
    - Removed ConVar "restart_keep_identity"
    - Added ConVar "choose_bot_data" to use which data to choose bot data after restart
    - Fixed a bug in version 1.2.2, where characters may be confused after restar
    
    1.2.2 (1-Sep-2022)
    - Fix incorrect address validation
    - Add support for players joining the game midway through
    
    1.2.1 (19-Aug-2022)
    - Added support for SurvivorBot data recovery after a failed round restart
    - Fix Invalid Handle error
    
    1.2.0 (19-Apr-2022)
    - Fixed "RestoreTransitionedSurvivorBots::MaxRestoreSurvivorBots" patch not being applied correctly
    
    1.1.9 (19-Apr-2022)
    - Fix the function name is too long error when compiling on sourcemod1.10
    - Fixed a bug where the survivor model was not pre-cached causing the server to crash
    
    1.1.8 (1-Apr-2022)
    - Prevents players joining the game during transition from taking over the Survivor Bot of transitioning players
    - Prevent CDirectorSessionManager::FillRemainingSurvivorTeamSlotsWithBots from triggering before RestoreTransitionedSurvivorBots(void) during transition
    
    1.1.7 (30-Mar-2022)
    - Merge the features of [L4D2] Keep Survivor Bots After Transition
    
    1.1.6 (29-Mar-2022)
    - Fixed the data confusion caused by new players joining in the transition process
    
    1.1.5 (27-Mar-2022)
    - Fix the problem that the plugin has not taken effect on Windows all the time
    
    1.1.4 (19-Mar-2022)
    - Add team checks and more durable Windows signatures
    
    1.1.3 (01-Mar-2022)
    - Add signature thanks
    - Reduce the size of the array
    
    1.1.2 (22-Feb-2022)
    - Added a ConVar to allow the player to keep the current character and model after a failed mission restart, like the game default
    - Delete old cfg files to update
    
    1.1.1 (19-Feb-2022)
    - Add code to generate cfg
    - Reduce reliance on signatures
    - Compatible with sourcemod-1.10
    
    1.0.9 (17-Feb-2022)
    - Name change to 'Transition Restore Fix'
    - Delete old 'Player Transition Save Data' version to update
    - Changed the method of saving and restored data to memory patch
    
    1.0.8 (14-Feb-2022)
    - The player character is only restored the first time
    
    1.0.7 (12-Feb-2022)
    - Thanks Silvers for a better way to get or set ammo
    Attached Files
    File Type: sp Get Plugin or Get Source (transition_restore_fix.sp - 472 views - 14.9 KB)
    File Type: txt transition_restore_fix.txt (7.6 KB, 476 views)

    Last edited by sorallll; 05-18-2023 at 16:10.
    sorallll is offline
    strikeraot
    Senior Member
    Join Date: Dec 2018
    Location: Viet Nam
    Old 02-09-2022 , 13:20   Re: [L4D2] Transition Save Data
    Reply With Quote #2

    So this will replace Save Weapon?
    strikeraot is offline
    sorallll
    Senior Member
    Join Date: Oct 2018
    Old 02-09-2022 , 13:30   Re: [L4D2] Transition Save Data
    Reply With Quote #3

    Quote:
    Originally Posted by strikeraot View Post
    So this will replace Save Weapon?
    Yes, it saves immediately after the official save of the player data, and restores immediately after the official restore of the data, there should be no delay in restoring those bugs with a timer
    sorallll is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 02-11-2022 , 15:13   Re: [L4D2] Transition Save Data
    Reply With Quote #4

    im using this, work no problem, but why so higher requirement?
    __________________
    NoroHime is offline
    sorallll
    Senior Member
    Join Date: Oct 2018
    Old 02-11-2022 , 16:40   Re: [L4D2] Transition Save Data
    Reply With Quote #5

    Quote:
    Originally Posted by NoroHime View Post
    im using this, work no problem, but why so higher requirement?
    It was only fixed in 1.11-6754 because the plugin uses the GivePlayerItem feature
    sorallll is offline
    sorallll
    Senior Member
    Join Date: Oct 2018
    Old 02-11-2022 , 18:26   Re: [L4D2] Transition Save Data
    Reply With Quote #6

    It seems that the wrong file was sent just now.
    sorallll is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 02-14-2022 , 17:57   Re: [L4D2] Transition Save Data
    Reply With Quote #7

    is this handled human HP and temp HP? im usually gets lower temp hp on next round start
    __________________
    NoroHime is offline
    sorallll
    Senior Member
    Join Date: Oct 2018
    Old 02-17-2022 , 10:55   Re: [L4D2] Transition Restore Fix
    Reply With Quote #8

    Updated.
    Quote:
    1.0.9 (17-Feb-2022)
    - Name change to 'Transition Restore Fix'
    - Delete old 'Player Transition Save Data' version to update
    - Changed the method of saving and restored data to memory patch
    sorallll is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 02-17-2022 , 10:59   Re: [L4D2] Transition Restore Fix
    Reply With Quote #9

    nice, 5+ weapon transition fix better than other 5+ save weapon plugin else
    __________________

    Last edited by HarryPotter; 02-17-2022 at 11:37.
    HarryPotter is offline
    sorallll
    Senior Member
    Join Date: Oct 2018
    Old 02-17-2022 , 11:00   Re: [L4D2] Transition Save Data
    Reply With Quote #10

    Quote:
    Originally Posted by NoroHime View Post
    is this handled human HP and temp HP? im usually gets lower temp hp on next round start
    Hi, please try the new version and check if this still happens
    sorallll 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 23:05.


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