Raised This Month: $ Target: $400
 0% 

[L4D & L4D2]cs_ladders (Counter-Strike Ladders)[10/05/2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Plugin ID:
7528
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    85 
    Plugin Description:
    Counter-Strike ladder experience in Left 4 Dead 2
    Old 03-26-2024 , 20:33   Re: [L4D & L4D2]cs_ladders (Counter-Strike Ladders)[19/05/2023]
    Reply With Quote #1

    Quote:
    Originally Posted by Lux View Post
    Thanks for trying to fix it guys.
    The function "CTerrorPlayer::OnLadderMount" got inlined.

    I did the patch to just jump to the OnDismount every time, I would hope it would be more resistant to breaking.

    Code:
    if ( *((_BYTE *)v5 + 370) == 9 ) Always just jump
      {
        if ( !v21 )
        {
          sub_1030A3C0("Player.Fall");              // CTerrorPlayer::OnLadderMount function inline
          sub_10177560(v5);
          sub_103120E0(0);
          v22 = sub_100535D0(v5);
          if ( (unsigned __int8)sub_1034FF60(v22) )
          {
            if ( sub_100464D0(v5) )
            {
              v23 = sub_100464D0(v5);
              (*(void (__thiscall **)(int, _DWORD))(*(_DWORD *)v23 + 1060))(v23, 0);
            }
          }
        }
      }
      else if ( v21 )to this function
      {
        CTerrorPlayer::OnLadderDismount(v5);
      }
    Reverted back to old patch
    https://github.com/LuxLuma/L4D-small...9d4db228cca070
    as checking the binary it appears to be all fine with that.
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 03-27-2024 , 00:28   Re: [L4D & L4D2]cs_ladders (Counter-Strike Ladders)[19/05/2023]
    Reply With Quote #2

    Quote:
    Originally Posted by Lux View Post
    Reverted back to old patch
    https://github.com/LuxLuma/L4D-small...9d4db228cca070
    as checking the binary it appears to be all fine with that.
    __________________
    HarryPotter is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 01-31-2024 , 11:52   Re: [L4D & L4D2]cs_ladders (Counter-Strike Ladders)[19/05/2023]
    Reply With Quote #3

    Solution, update this file

    https://github.com/nosoop/SMExt-SourceScramble/releases
    __________________
    Please forgive, If I'm not describing it accurately. I use google translate
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:

    Last edited by ZBzibing; 01-31-2024 at 12:07.
    ZBzibing is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 03-26-2024 , 19:27   Re: [L4D & L4D2]cs_ladders (Counter-Strike Ladders)[19/05/2023]
    Reply With Quote #4

    After today l4d2 update

    PHP Code:
    L 03/27/2024 07:24:46: [l4d2_cs_ladders.smx] [cs_laddersFailed to validate patch "CTerrorPlayer::OnLadderMount__WeaponHolster_patch" 
    __________________
    HarryPotter is offline
    finishlast
    Senior Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 05-01-2024 , 16:48   Re: [L4D & L4D2]cs_ladders (Counter-Strike Ladders)[26/03/2024]
    Reply With Quote #5

    L4d1 has been updated today, seems it broke the offset for
    CTerrorWeapon::CanDeployFor (Linux)

    Anyone knows the new value?

    This is one of my favorite plugins

    Code:
    L 05/01/2024 - 22:31:24: [SM] Exception reported: [cs_ladders] Failed to validate patch "__movetype_patch"
    L 05/01/2024 - 22:31:24: [SM] Blaming: l4d2_cs_ladders.smx
    L 05/01/2024 - 22:31:24: [SM] Call stack trace:
    L 05/01/2024 - 22:31:24: [SM]   [0] SetFailState
    L 05/01/2024 - 22:31:24: [SM]   [1] Line 70, l4d2_cs_ladders.sp::OnPluginStart
    L 05/01/2024 - 22:31:24: [SM] Unable to load plugin "l4d2_cs_ladders.smx": Error detected in plugin startup (see error logs)
    __________________

    Last edited by finishlast; 05-06-2024 at 15:33.
    finishlast is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 05-10-2024 , 09:16   Re: [L4D & L4D2]cs_ladders (Counter-Strike Ladders)[26/03/2024]
    Reply With Quote #6

    Quote:
    Originally Posted by finishlast View Post
    L4d1 has been updated today, seems it broke the offset for
    CTerrorWeapon::CanDeployFor (Linux)

    Anyone knows the new value?

    This is one of my favorite plugins

    Code:
    L 05/01/2024 - 22:31:24: [SM] Exception reported: [cs_ladders] Failed to validate patch "__movetype_patch"
    L 05/01/2024 - 22:31:24: [SM] Blaming: l4d2_cs_ladders.smx
    L 05/01/2024 - 22:31:24: [SM] Call stack trace:
    L 05/01/2024 - 22:31:24: [SM]   [0] SetFailState
    L 05/01/2024 - 22:31:24: [SM]   [1] Line 70, l4d2_cs_ladders.sp::OnPluginStart
    L 05/01/2024 - 22:31:24: [SM] Unable to load plugin "l4d2_cs_ladders.smx": Error detected in plugin startup (see error logs)
    I updated l4d1 gamedata for what you reported thanks
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    finishlast
    Senior Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 05-10-2024 , 10:11   Re: [L4D & L4D2]cs_ladders (Counter-Strike Ladders)[10/05/2024]
    Reply With Quote #7

    Thanks for your time.

    Now it reports a new one:

    Failed to validate patch "CTerrorPlayer:: PreThink__SafeDropLogic_patch"

    I only saw one when I first looked into log, geesh, sorry.
    So 2 are still broken, 1 is fixed, 1 is still working.



    CanDeployFor__movetype_patch ([cs_ladders] Enabled "CTerrorWeapon::CanDeployFor__movetype_pa tch" patch)
    PreThink__SafeDropLogic_patch (error [cs_ladders] Failed to validate patch "CTerrorPlayer::OnLadderMount__WeaponHolster_ patch)
    OnLadderMount__WeaponHolster_patch (error [cs_ladders] Failed to validate patch "CTerrorPlayer:: PreThink__SafeDropLogic_patch)

    OnLadderDismount__WeaponDeploy_patch ([cs_ladders] Enabled "CTerrorPlayer::OnLadderDismount__WeaponDeplo y_patch" patch
    __________________

    Last edited by finishlast; 05-10-2024 at 10:44.
    finishlast is offline
    Lux
    Veteran Member
    Join Date: Jan 2015
    Location: Cat
    Old 05-10-2024 , 12:47   Re: [L4D & L4D2]cs_ladders (Counter-Strike Ladders)[10/05/2024]
    Reply With Quote #8

    Quote:
    Originally Posted by finishlast View Post
    Thanks for your time.

    Now it reports a new one:

    Failed to validate patch "CTerrorPlayer:: PreThink__SafeDropLogic_patch"

    I only saw one when I first looked into log, geesh, sorry.
    So 2 are still broken, 1 is fixed, 1 is still working.



    CanDeployFor__movetype_patch ([cs_ladders] Enabled "CTerrorWeapon::CanDeployFor__movetype_pa tch" patch)
    PreThink__SafeDropLogic_patch (error [cs_ladders] Failed to validate patch "CTerrorPlayer::OnLadderMount__WeaponHolster_ patch)
    OnLadderMount__WeaponHolster_patch (error [cs_ladders] Failed to validate patch "CTerrorPlayer:: PreThink__SafeDropLogic_patch)

    OnLadderDismount__WeaponDeploy_patch ([cs_ladders] Enabled "CTerrorPlayer::OnLadderDismount__WeaponDeplo y_patch" patch
    I checked the other 3 and they all appeared wrong altho I initially did not add l4d1 support, I'v go not l4d1 linux test server so it's blind patching
    __________________
    Connect
    My Plugins: KlickME
    [My GitHub]

    Commission me for L4D
    Lux is offline
    finishlast
    Senior Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 05-10-2024 , 13:26   Re: [L4D & L4D2]cs_ladders (Counter-Strike Ladders)[10/05/2024]
    Reply With Quote #9

    Well you are very good at finding those patches blindfolded!

    I can climb ladders again with weapons! Brilliant.

    I can change weapons via key 1 2 3 4 5 while on ladder. (mousewheel not working)

    [cs_ladders] Enabled "CTerrorWeapon::CanDeployFor__movetype_pa tch" patch
    [cs_ladders] Enabled "CTerrorPlayer:: PreThink__SafeDropLogic_patch" patch
    [cs_ladders] Enabled "CTerrorPlayer::OnLadderMount__WeaponHolster_ patch" patch
    [cs_ladders] Enabled "CTerrorPlayer::OnLadderDismount__WeaponDeplo y_patch" patch
    __________________

    Last edited by finishlast; Yesterday at 12:06.
    finishlast is offline
    BloodyBlade
    Senior Member
    Join Date: Feb 2018
    Old 01-31-2024 , 02:14   Re: [L4D & L4D2]cs_ladders (Counter-Strike Ladders)[19/05/2023]
    Reply With Quote #10

    I have this with latest plugin version:
    L 01/31/2024 - 06:442: SourceMod error session started
    L 01/31/2024 - 06:442: Info (map "c1m1_hotel") (file "/home/game/steamcmd/l4d2/left4dead2/addons/SourceModBloodCoopVI/logs/errors_20240131.log")
    L 01/31/2024 - 06:442: [SM] Exception reported: [cs_ladders] Failed to validate patch "CTerrorWeapon::CanDeployFor__movetype_pa tch"
    L 01/31/2024 - 06:442: [SM] Blaming: l4d2_cs_ladders.smx
    L 01/31/2024 - 06:442: [SM] Call stack trace:
    L 01/31/2024 - 06:442: [SM] [0] SetFailState
    L 01/31/2024 - 06:442: [SM] [1] Line 67, l4d2_cs_ladders.sp::OnPluginStart
    L 01/31/2024 - 06:442: [SM] Unable to load plugin "l4d2_cs_ladders.smx": Error detected in plugin startup (see error logs)
    BloodyBlade 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 22:38.


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