Raised This Month: $51 Target: $400
 12% 

[L4D/L4D2] Survivor Character Fixes | 0.2 : Soon


Post New Thread Reply   
 
Thread Tools Display Modes
Author
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Plugin ID:
7964
Plugin Version:
0.2
Plugin Category:
Technical/Development
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Fix internal problems with the "m_survivorCharacter" network property
    Old 02-12-2022 , 10:46   [L4D/L4D2] Survivor Character Fixes | 0.2 : Soon
    Reply With Quote #1

    About:
    Recommended for servers that have survivor character changing plug-ins (e.g. Character Select Menu, Survivor Chat Select and Character Manager)
    Apparently, playing as L4D1 survivors along the L4D2 crew looks fine in plain sight. But behind the scenes, something dangerous is happening.

    Keep in mind that there are these "member variables" under classes and structs within the game and most of said member variables, which are related to survivor characters, are multidimensional arrays and can only hold up to 4 indexes max per dimension.

    So what happens is this: once Bill, Zoey, Francis and/or Louis is/are added into the gameplay, stuff goes haywire and since the member variables I mentioned can only account for 4 survivor characters (mainly 0 to 3 or Nick to Ellis), it's more likely that the next member variable or variables will be overwritten and it's because of the L4D1 survivors' character indexes being higher than 3.

    For those who have noticed, a recent update was released for L4D2 which finally stopped Zoey from crashing on Windows. It may seem like there's nothing else to worry about from that point on but that's wrong.

    ConVars:
    • survivor_character_fixes_version
      → Version of this plug-in


    Requirements:
    ✧ SourceMod 1.11+
    ✧ My fork of the Source Scramble extension

    Thanks:
    🎮 EdisonGar, Rise and Cuba - For helping me test

    Related Plug-ins:
    [L4D/L4D2] Dialogue Criteria Fixes

    Changelog:
    Code:
    0.1 (02/12/22)
    * First release
    Attached Files
    File Type: txt survivor_character_fixes.txt (4.7 KB, 1171 views)
    File Type: sp Get Plugin or Get Source (survivor_character_fixes.sp - 1019 views - 14.0 KB)
    File Type: smx survivor_character_fixes.smx (7.0 KB, 1033 views)

    Last edited by cravenge; 06-18-2023 at 03:26.
    cravenge is offline
    Sev
    Veteran Member
    Join Date: May 2010
    Old 02-12-2022 , 14:33   Re: [L4D/L4D2] Survivor Character Fixes | 0.1 : February 12, 2022 |
    Reply With Quote #2

    L 02/12/2022 - 140:42: [SM] Blaming: survivor_character_fixes.smx
    L 02/12/2022 - 140:42: [SM] Call stack trace:
    L 02/12/2022 - 140:42: [SM] [0] DHookReturn.Value.set
    L 02/12/2022 - 140:42: [SM] [1] Line 178, C:\Users\Acer\Desktop\crap\Shared Plugins\survivor_character_fixes.sp::dtrPlaye rByIndex_Pre
    L 02/12/2022 - 140:42: [SM] Exception reported: Invalid entity index passed for return value
    L 02/12/2022 - 140:42: [SM] Blaming: survivor_character_fixes.smx
    L 02/12/2022 - 140:42: [SM] Call stack trace:
    L 02/12/2022 - 140:42: [SM] [0] DHookReturn.Value.set
    L 02/12/2022 - 140:42: [SM] [1] Line 178, C:\Users\Acer\Desktop\crap\Shared Plugins\survivor_character_fixes.sp::dtrPlaye rByIndex_Pre
    L 02/12/2022 - 140:42: [SM] Exception reported: Invalid entity index passed for return value
    L 02/12/2022 - 140:42: [SM] Blaming: survivor_character_fixes.smx
    L 02/12/2022 - 140:42: [SM] Call stack trace:
    L 02/12/2022 - 140:42: [SM] [0] DHookReturn.Value.set
    L 02/12/2022 - 140:42: [SM] [1] Line 178, C:\Users\Acer\Desktop\crap\Shared Plugins\survivor_character_fixes.sp::dtrPlaye rByIndex_Pre
    Sev is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 02-12-2022 , 14:45   Re: [L4D/L4D2] Survivor Character Fixes | 0.1 : February 12, 2022 |
    Reply With Quote #3

    Quote:
    Originally Posted by Sev View Post
    L 02/12/2022 - 140:42: [SM] Blaming: survivor_character_fixes.smx
    L 02/12/2022 - 140:42: [SM] Call stack trace:
    L 02/12/2022 - 140:42: [SM] [0] DHookReturn.Value.set
    L 02/12/2022 - 140:42: [SM] [1] Line 178, C:\Users\Acer\Desktop\crap\Shared Plugins\survivor_character_fixes.sp::dtrPlaye rByIndex_Pre
    L 02/12/2022 - 140:42: [SM] Exception reported: Invalid entity index passed for return value
    L 02/12/2022 - 140:42: [SM] Blaming: survivor_character_fixes.smx
    L 02/12/2022 - 140:42: [SM] Call stack trace:
    L 02/12/2022 - 140:42: [SM] [0] DHookReturn.Value.set
    L 02/12/2022 - 140:42: [SM] [1] Line 178, C:\Users\Acer\Desktop\crap\Shared Plugins\survivor_character_fixes.sp::dtrPlaye rByIndex_Pre
    L 02/12/2022 - 140:42: [SM] Exception reported: Invalid entity index passed for return value
    L 02/12/2022 - 140:42: [SM] Blaming: survivor_character_fixes.smx
    L 02/12/2022 - 140:42: [SM] Call stack trace:
    L 02/12/2022 - 140:42: [SM] [0] DHookReturn.Value.set
    L 02/12/2022 - 140:42: [SM] [1] Line 178, C:\Users\Acer\Desktop\crap\Shared Plugins\survivor_character_fixes.sp::dtrPlaye rByIndex_Pre
    Update to the latest version of DHooks.
    cravenge is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 02-12-2022 , 23:25   Re: [L4D/L4D2] Survivor Character Fixes | 0.1 : February 12, 2022 |
    Reply With Quote #4

    L 02/13/2022 - 05:22:21: SourceMod error session started
    L 02/13/2022 - 05:22:21: Info (map "c1m2_streets") (file "D:\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 20213.log")
    L 02/13/2022 - 05:22:21: [SM] Exception reported: Signature for "ConvertToExternalCharacter" is broken!
    L 02/13/2022 - 05:22:21: [SM] Blaming: survivor_character_fixes.smx
    L 02/13/2022 - 05:22:21: [SM] Call stack trace:
    L 02/13/2022 - 05:22:21: [SM] [0] SetFailState
    L 02/13/2022 - 05:22:21: [SM] [1] Line 66, D:\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\survi vor_character_fixes.sp::OnPluginStart
    L 02/13/2022 - 05:22:21: [SM] Unable to load plugin "survivor_character_fixes.smx": Error detected in plugin startup (see error logs)
    Toranks is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Chocolate Factory
    Old 02-13-2022 , 04:13   Re: [L4D/L4D2] Survivor Character Fixes | 0.1 : February 12, 2022 |
    Reply With Quote #5

    Quote:
    Originally Posted by Toranks View Post
    L 02/13/2022 - 05:22:21: SourceMod error session started
    L 02/13/2022 - 05:22:21: Info (map "c1m2_streets") (file "D:\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 20213.log")
    L 02/13/2022 - 05:22:21: [SM] Exception reported: Signature for "ConvertToExternalCharacter" is broken!
    L 02/13/2022 - 05:22:21: [SM] Blaming: survivor_character_fixes.smx
    L 02/13/2022 - 05:22:21: [SM] Call stack trace:
    L 02/13/2022 - 05:22:21: [SM] [0] SetFailState
    L 02/13/2022 - 05:22:21: [SM] [1] Line 66, D:\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\survi vor_character_fixes.sp::OnPluginStart
    L 02/13/2022 - 05:22:21: [SM] Unable to load plugin "survivor_character_fixes.smx": Error detected in plugin startup (see error logs)
    Was there any recent update that I didn't notice? I'm asking cuz it's fine on my end.
    cravenge is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 02-14-2022 , 03:19   Re: [L4D/L4D2] Survivor Character Fixes | 0.1 : February 12, 2022 |
    Reply With Quote #6

    Quote:
    Originally Posted by cravenge View Post
    Was there any recent update that I didn't notice? I'm asking cuz it's fine on my end.
    Maybe it's incompatible with 1.11, latest stable is 1.10, but I've 60 mods and all of them works ok...

    Quote:
    SourceMod Version Information:
    SourceMod Version: 1.11.0.6826
    SourcePawn Engine: 1.11.0.6826, jit-x86 (build 1.11.0.6826)
    SourcePawn API: v1 = 5, v2 = 16
    Compiled on: Nov 30 2021 08:264
    Built from: https://github.com/alliedmodders/sou...ommit/329d5872
    Build ID: 682629d5872
    http://www.sourcemod.net/
    Toranks is offline
    strikeraot
    Senior Member
    Join Date: Dec 2018
    Location: Viet Nam
    Old 02-14-2022 , 05:36   Re: [L4D/L4D2] Survivor Character Fixes | 0.1 : February 12, 2022 |
    Reply With Quote #7

    Quote:
    Originally Posted by Toranks View Post
    Maybe it's incompatible with 1.11, latest stable is 1.10, but I've 60 mods and all of them works ok...
    nah, i'm using 1.11 and it's working fine
    strikeraot is offline
    sorallll
    Senior Member
    Join Date: Oct 2018
    Old 02-14-2022 , 05:40   Re: [L4D/L4D2] Survivor Character Fixes | 0.1 : February 12, 2022 |
    Reply With Quote #8

    Quote:
    Originally Posted by Toranks View Post
    Maybe it's incompatible with 1.11, latest stable is 1.10, but I've 60 mods and all of them works ok...
    Maybe you have other plugins that detoured the ConvertToExternalCharacter function
    sorallll is offline
    king kong
    Member
    Join Date: Oct 2021
    Old 05-18-2023 , 15:48   Re: [L4D/L4D2] Survivor Character Fixes | 0.1 : February 12, 2022 |
    Reply With Quote #9

    L 05/19/2023 - 02:47:06: [SM] Exception reported: Signature for "ForEachSurvivor<ClosestSurvivorDistanceScan> " is broken!
    L 05/19/2023 - 02:47:06: [SM] Blaming: server fixes\survivor_character_fixes.smx
    L 05/19/2023 - 02:47:06: [SM] Call stack trace:
    L 05/19/2023 - 02:47:06: [SM] [0] SetFailState
    L 05/19/2023 - 02:47:06: [SM] [1] Line 114, C:\Users\Acer\Desktop\crap\Shared Plugins\survivor_character_fixes.sp::OnPlugin Start
    L 05/19/2023 - 02:47:06: [SM] Unable to load plugin "server fixes\survivor_character_fixes.smx": Error detected in plugin startup (see error logs)
    king kong is offline
    XiLuo
    Member
    Join Date: Mar 2018
    Old 05-19-2023 , 12:27   Re: [L4D/L4D2] Survivor Character Fixes | 0.1 : February 12, 2022 |
    Reply With Quote #10

    Quote:
    Originally Posted by king kong View Post
    L 05/19/2023 - 02:47:06: [SM] Exception reported: Signature for "ForEachSurvivor<ClosestSurvivorDistanceScan> " is broken!
    L 05/19/2023 - 02:47:06: [SM] Blaming: server fixes\survivor_character_fixes.smx
    L 05/19/2023 - 02:47:06: [SM] Call stack trace:
    L 05/19/2023 - 02:47:06: [SM] [0] SetFailState
    L 05/19/2023 - 02:47:06: [SM] [1] Line 114, C:\Users\Acer\Desktop\crap\Shared Plugins\survivor_character_fixes.sp::OnPlugin Start
    L 05/19/2023 - 02:47:06: [SM] Unable to load plugin "server fixes\survivor_character_fixes.smx": Error detected in plugin startup (see error logs)
    The new signatures for "l4d2 ForEachSurvivor<ClosestSurvivorDistanceScan>" I made was "\x55\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x57\xBF\x2A \x2A\x2A\x2A\x39\x78\x2A\x7C\x2A\x53\x8B\x5D\ x2A\x56\x57\xE8\x2A\x2A\x2A\x2A\x8B\xF0\x83\x 2A\x2A\x85\xF6\x74\x2A\x8B\x46\x2A\x85\xC0\x7 4\x2A\x8B\x2A\x2A\x2A\x2A\x2A\x2B\x41\x2A\xC1 \x2A\x2A\x85\xC0\x74\x2A\x8B\x16\x8B\x82\x2A\ x2A\x2A\x2A\x8B\xCE\xFF\xD0\x84\xC0\x74\x2A\x 83\xBE\x2A\x2A\x2A\x2A\x2A\x74\x2A\x8B\xCE\xE 8\x2A\x2A\x2A\x2A\x83\x2A\x2A\x75\x2A\x8B\x86 ", but not test yet
    XiLuo 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 05:43.


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