This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Left 4 DHooks Direct (1.150) [06-May-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Plugin ID:
6954
Plugin Version:
1.150
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    2320 
    Plugin Description:
    Left 4 Downtown and L4D Direct conversion and merger.
    Old 11-18-2020 , 18:22   Re: [L4D & L4D2] Left 4 DHooks Direct (1.29) [10-Oct-2020]
    Reply With Quote #1

    Quote:
    Originally Posted by Spirit_12 View Post
    The only thing that was changed was signatures and offsets. The plugin should work with older version, however the question is why would you want to run the older version? You do realize non-steam is not supported right?
    There's a tutorial somewhere in the Steam Discussions for L4D2 that teaches users how to revert their game to the Pre-Last Stand version, mainly for people who dislike the update. That's probably what he is using.
    __________________
    Psyk0tik is offline
    Spirit_12
    Veteran Member
    Join Date: Dec 2012
    Location: Toronto, CA
    Old 11-19-2020 , 02:27   Re: [L4D & L4D2] Left 4 DHooks Direct (1.29) [10-Oct-2020]
    Reply With Quote #2

    Must be visual only. Last I checked the data tables would need to be modified to revert back to old server engine.
    __________________
    Spirit_12 is offline
    Sam B
    Junior Member
    Join Date: Oct 2020
    Old 01-07-2022 , 12:56   Re: [L4D & L4D2] Left 4 DHooks Direct (1.29) [10-Oct-2020]
    Reply With Quote #3

    Quote:
    Originally Posted by Spirit_12 View Post
    The only thing that was changed was signatures and offsets. The plugin should work with older version, however the question is why would you want to run the older version? You do realize non-steam is not supported right?
    A hell of a late reply, but since I'm still running Left for Dead 2.1.5.5 in 2022, I'll answer the question. I run the old version first and foremost because TLS broke a number of key mods I use in singleplayer that I consider base game by this point. Secondly, I hated every exploit "fix" in the update - it ruined the fun for me and the boys on both local multiplayer and versus servers that we were having for a damn decade.

    And, yeah, always back up whole directories before updating stuff, kids - saves you a lot of tears.
    Sam B is offline
    Shadow Mirror
    Junior Member
    Join Date: Mar 2016
    Old 09-06-2021 , 00:21   Re: [L4D & L4D2] Left 4 DHooks Direct (1.52) [31-Aug-2021]
    Reply With Quote #4

    Hi, after checking cache integrity I'm having the following log problems:
    L 09/05/2021 - 23:42:42: SourceMod error session started
    L 09/05/2021 - 23:42:42: Info (map "c11m1_greenhouse") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 10905.log")
    L 09/05/2021 - 23:42:42: [left4dhooks.smx] Failed to find signature: ForceNextStage
    L 09/05/2021 - 23:42:42: [left4dhooks.smx] Failed to find signature: CancelStagger
    L 09/05/2021 - 23:42:42: [left4dhooks.smx] Failed to find signature: RegisterForbiddenTarget
    L 09/05/2021 - 23:42:42: [left4dhooks.smx] Failed to find signature: UnRegisterForbiddenTarget
    L 09/05/2021 - 23:42:42: [left4dhooks.smx] Failed to load "UseHealingItems" signature.
    L 09/05/2021 - 23:47:01: Error log file session closed.

    How can i fix it
    Shadow Mirror is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-06-2021 , 13:54   Re: [L4D & L4D2] Left 4 DHooks Direct (1.52) [31-Aug-2021]
    Reply With Quote #5

    Quote:
    Originally Posted by Shadow Mirror View Post
    Hi, after checking cache integrity I'm having the following log problems:
    L 09/05/2021 - 23:42:42: SourceMod error session started
    L 09/05/2021 - 23:42:42: Info (map "c11m1_greenhouse") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 10905.log")
    L 09/05/2021 - 23:42:42: [left4dhooks.smx] Failed to find signature: ForceNextStage
    L 09/05/2021 - 23:42:42: [left4dhooks.smx] Failed to find signature: CancelStagger
    L 09/05/2021 - 23:42:42: [left4dhooks.smx] Failed to find signature: RegisterForbiddenTarget
    L 09/05/2021 - 23:42:42: [left4dhooks.smx] Failed to find signature: UnRegisterForbiddenTarget
    L 09/05/2021 - 23:42:42: [left4dhooks.smx] Failed to load "UseHealingItems" signature.
    L 09/05/2021 - 23:47:01: Error log file session closed.

    How can i fix it
    Update the gamedata file, and maybe the plugin too.
    __________________
    Silvers is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 09-06-2021 , 14:01   Re: [L4D & L4D2] Left 4 DHooks Direct (1.52) [31-Aug-2021]
    Reply With Quote #6

    Quote:
    Originally Posted by HarryPotter View Post
    PHP Code:
    // A versus round is started when survivors leave the safe room, or force started after 90 seconds regardless
    forward Action L4D_OnFirstSurvivorLeftSafeArea(int client); 
    L4D1 windows server, Plugin_Handled is not working.
    I use Plugin_Handled and return players back to safe area, but survivors can not trigger this function second time.
    I guess it breaks too much when blocking, nothing I can do to fix that function.

    Quote:
    Originally Posted by HarryPotter View Post
    PHP Code:
    // Is used for displaying the "X gets Tank" window and transferring Tank control
    forward Action L4D_OnTryOfferingTankBot(int tank_indexbool &enterStasis); 
    this function is not working first time director tank spawns in l4d1 linux.
    Seems like that's something with the game logic not triggering the function, nothing can be done. This is something triggered in Versus when the a player tank is losing control.


    Quote:
    Originally Posted by HarryPotter View Post
    PHP Code:
    // Called when a Witch spawns
    forward Action L4D_OnSpawnWitch(const float vecPos[3], const float vecAng[3]); 
    this function is not working in l4d1 linux.
    I can checck if the gamedata is using the wrong signature which maybe the reason it's not triggering.

    Quote:
    Originally Posted by HarryPotter View Post
    PHP Code:
    // L4D2 only. The campaign scores are not set until the end of round 2, use L4D_GetCampaignScores to get them earlier.
    native int L4D_GetTeamScore(int logical_teambool campaign_score=false); 
    this function can work in l4d1, don't know why not also PrepSDKCall_SetFromConf(hGameData, SDKConf_Signature, "GetTeamScore") in l4d1
    Have you verified it works? I can open this up to L4D1 then.
    __________________
    Silvers is offline
    Forgetest
    Member
    Join Date: Aug 2020
    Old 09-07-2021 , 02:10   Re: [L4D & L4D2] Left 4 DHooks Direct (1.52) [31-Aug-2021]
    Reply With Quote #7

    Quote:
    Originally Posted by HarryPotter View Post
    PHP Code:
    // A versus round is started when survivors leave the safe room, or force started after 90 seconds regardless
    forward Action L4D_OnFirstSurvivorLeftSafeArea(int client); 
    L4D1 windows server, Plugin_Handled is not working.
    I use Plugin_Handled and return players back to safe area, but survivors can not trigger this function second time.
    Investigated and found that in Director::Update a boolean is always set before Director::OnFirstSurvivorLeftSafeArea is called, which also decides whether director should keep checking survivors' positions.

    Partial pseudocode:
    PHP Code:
    if ( !*((_BYTE *)this 356) || !*((_BYTE *)this 357) )
      {
        
    v43 0;
        
    v44 0;
        
    v45 0;
        
    v46 0;
        
    v47 0;
        
    ptr 0;
        
    v49 0;
        
    v50 0;
        
    v51 0;
        
    v52 0;
        *(
    float *)&v41 0.0;
        
    v42 0;
        
    ForEachPlayer<SurvivorsInSafeArea>(&v41);
        if ( 
    v42 )
        {
          if ( !*((
    _BYTE *)this 356) )
          {
            *((
    _BYTE *)this 356) = 1;
            
    Director::OnFirstSurvivorLeftSafeArea(this, *(CTerrorPlayer **)ptr);
          }
          if ( *(
    float *)&v41 == 0.0 && !*((_BYTE *)this 357) )
          {
            if ( (*((
    _BYTE *)this 357) = 1, !*((_BYTE *)this 639)) && !Director::m_isTransitioning
              
    || Director::m_isScenarioRestart )
            {
              *((
    _DWORD *)this 386) = *((_DWORD *)this 385);
              
    ForEachSurvivor<DispatchPlayerMissionStarted>();
            }
          }
        } 
    While in L4D2 the boolean check and assignment is completed inside Director::OnFirstSurvivorLeftSafeArea, therefore I think this is the reason why blocking the function results differently on both games.

    Offsets for both Linux and Windows on L4D1, hope it would be helpful:
    Code:
    Director->m_bFirstSurvivorLeftStartArea
    Linux: 356, Windows: 360
    
    // additionally found
    Director->m_bLastSurvivorLeftStartArea
    Linux: 357, Windows: 361

    Last edited by Forgetest; 09-07-2021 at 02:11.
    Forgetest is offline
    Shadow Mirror
    Junior Member
    Join Date: Mar 2016
    Old 09-06-2021 , 16:30   Re: [L4D & L4D2] Left 4 DHooks Direct (1.52) [31-Aug-2021]
    Reply With Quote #8

    Quote:
    Originally Posted by Silvers View Post
    Update the gamedata file, and maybe the plugin too.
    Hi Silvers. How can I update the gamedata of this plugin? I'm new, what do I have to touch? ty pd:im using windows

    Last edited by Shadow Mirror; 09-06-2021 at 16:32.
    Shadow Mirror is offline
    AMBoollan
    New Member
    Join Date: Feb 2022
    Old 02-15-2022 , 03:45   Re: [L4D & L4D2] Left 4 DHooks Direct (1.87) [06-Feb-2022]
    Reply With Quote #9

    PHP Code:
    L 02/15/2022 16:32:37: [SMException reportedCould not load the "CTerrorGameRules::IsRealismMode" gamedata signature.
    L 02/15/2022 16:32:37: [SMBlamingRepairBug\left4dhooks.smx
    L 02
    /15/2022 16:32:37: [SMCall stack trace:
    L 02/15/2022 16:32:37: [SM]   [0SetFailState
    L 02
    /15/2022 16:32:37: [SM]   [1Line 3731C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::LoadGameData
    L 02
    /15/2022 16:32:37: [SM]   [2Line 1571C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::OnPluginStart
    L 02
    /15/2022 16:32:37: [SMUnable to load plugin "RepairBug\left4dhooks.smx"Error detected in plugin startup (see error logs
    How to solve this problem
    AMBoollan is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 02-15-2022 , 04:36   Re: [L4D & L4D2] Left 4 DHooks Direct (1.87) [06-Feb-2022]
    Reply With Quote #10

    Quote:
    Originally Posted by AMBoollan View Post
    How to solve this problem
    Update left4dhooks.
    __________________
    Silvers 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:39.


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