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

[L4D & L4D2] Left 4 DHooks Direct (1.146) [21-Apr-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-21-2023 , 16:01   Re: [L4D & L4D2] Left 4 DHooks Direct (1.130) [01-May-2023]
Reply With Quote #891

Quote:
Originally Posted by JLmelenchon View Post
Code:
C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::DTR_CTerrorWeapon_OnHit
L 05/20/2023 - 01:26:54: [SM] Exception reported: Invalid param type (9) to get
L 05/20/2023 - 01:26:54: [SM] Blaming: left4dhooks.smx
L 05/20/2023 - 01:26:54: [SM] Call stack trace:
L 05/20/2023 - 01:26:54: [SM]   [0] DHookGetParam
L 05/20/2023 - 01:26:54: [SM]   [1] Line 12064, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::DTR_CTerrorWeapon_OnHit_Post
L 05/20/2023 - 01:31:59: [SM] Exception reported: Invalid param type (9) to get
L 05/20/2023 - 01:31:59: [SM] Blaming: left4dhooks.smx
L 05/20/2023 - 01:31:59: [SM] Call stack trace:
L 05/20/2023 - 01:31:59: [SM]   [0] DHookGetParam
L 05/20/2023 - 01:31:59: [SM]   [1] Line 12011,
with last gamedata
This and other errors reported above by others should be fixed by updating to 1.130 and using the newer GameData I posted here.

Will post a plugin update in the next few days when I have time to test the changes.
__________________
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-24-2023 , 21:32   Re: [L4D & L4D2] Left 4 DHooks Direct (1.131) [25-May-2023]
Reply With Quote #892

Code:
1.131 (25-May-2023)
    - Fixed signatures broken from the recent L4D2 updates.
    - Thanks to "robex" and "XiLuo" for reporting changes.
    - Thanks to "A1m`" for updating various offsets.

    - Added stock "L4D_IsTankProp" in the "left4dhooks_silver.inc" file, to check if a prop can be hit by tanks. Thanks to "Eyal282" for adding.
    - Added forward "L4D2_OnChargerImpact" to trigger when a Charger impacts after charging. Requested by "Eyal282".
    - Added native "L4D_NavArea_IsConnected" to check if 2 areas are connected. Requested by "Eyal282".
    - Added native "L4D_GetNavAreaCenter" to get the center of a NavArea. Requested by "3ipKa".
    - Added native "L4D_SetPlayerSpawnTime" to set the spawn timer of a SI. Requested by "A1m`".

    - Fixed native "L4D_OnGameModeChange" in L4D2 returning 0 for realism. Thanks to "HarryPotter" for reporting.
    - Fixed forward "L4D2_CGasCan_EventKilled" not setting the correct modified values. Thanks to " 4NTEP xD " for reporting.

    - Fixed stocks "L4D2_GetWeaponUpgradeAmmoCount" and "L4D2_GetWeaponUpgrades" in the "left4dhooks_stocks" file, to return values other than 0 and 1. Thanks to "BHaType" for reporting.
    - Plugins using either of these stocks should be recompiled against the updated file.

    - Changes to the test plugin removing unnecessary lines printed to console when forwards trigger.

    - Updated: Plugin and test plugin.
    - Updated: "/scripting/gamedata/left4dhooks.l4d1.txt" GameData file.
    - Updated: "/scripting/gamedata/left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/include/left4dhooks.inc" Include file.
    - Updated: "/scripting/include/left4dhooks_silver.inc" Include file.
    - Updated: "/scripting/include/left4dhooks_stocks.inc" Include file.
    - Updated: "/scripting/l4dd/l4dd_forwards.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
__________________
Silvers is offline
amazingzeal
Junior Member
Join Date: Jul 2021
Old 05-24-2023 , 23:16   Re: [L4D & L4D2] Left 4 DHooks Direct (1.131) [25-May-2023]
Reply With Quote #893

L 05/24/2023 - 23:135: [SM] Exception reported: Invalid param type (9) to get
L 05/24/2023 - 23:135: [SM] Blaming: left4dhooks.smx
L 05/24/2023 - 23:135: [SM] Call stack trace:
L 05/24/2023 - 23:135: [SM] [0] DHookGetParam
L 05/24/2023 - 23:135: [SM] [1] Line 11546, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\left4dhooks.sp:TR_CTerrorWeapon_On Hit
L 05/24/2023 - 23:135: [SM] Exception reported: Invalid param type (9) to get
L 05/24/2023 - 23:135: [SM] Blaming: left4dhooks.smx
L 05/24/2023 - 23:135: [SM] Call stack trace:
L 05/24/2023 - 23:135: [SM] [0] DHookGetParam
L 05/24/2023 - 23:135: [SM] [1] Line 11601, C:\Servers\L4D2\left4dead2\addons\sourcemod\s cripting\left4dhooks.sp:TR_CTerrorWeapon_On Hit_Post

I still get these with the new gamedata, and im currently using left4dhooks_version 1.101. I cannot update as a I have plugins that require sourcemod 1.10. This happens whenever I shove, the game lags, and theres a crash whenever anyone uses a ladder. The ladder crash fix doesnt work anymore either. (TBD) Just figured I'd reach out and see if I could maybe get some help.

Last edited by amazingzeal; 05-25-2023 at 03:28.
amazingzeal is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-24-2023 , 23:21   Re: [L4D & L4D2] Left 4 DHooks Direct (1.131) [25-May-2023]
Reply With Quote #894

SM 1.10 isn't supported by this plugin anymore. Upgrade your SourceMod.

What plugin requires SM 1.10 that cannot use SM 1.11 and why does it not work on 1.11? Plugins written on older SourceMod versions should work on newer ones, maybe with slight changes to the prototypes, depending on what's being used.
__________________
Silvers is offline
sorallll
Senior Member
Join Date: Oct 2018
Old 05-24-2023 , 23:25   Re: [L4D & L4D2] Left 4 DHooks Direct (1.131) [25-May-2023]
Reply With Quote #895

Quote:
Originally Posted by Silvers View Post
Code:
1.131 (25-May-2023)
    - Fixed signatures broken from the recent L4D2 updates.
    - Thanks to "robex" and "XiLuo" for reporting changes.
    - Thanks to "A1m`" for updating various offsets.

    - Added stock "L4D_IsTankProp" in the "left4dhooks_silver.inc" file, to check if a prop can be hit by tanks. Thanks to "Eyal282" for adding.
    - Added forward "L4D2_OnChargerImpact" to trigger when a Charger impacts after charging. Requested by "Eyal282".
    - Added native "L4D_NavArea_IsConnected" to check if 2 areas are connected. Requested by "Eyal282".
    - Added native "L4D_GetNavAreaCenter" to get the center of a NavArea. Requested by "3ipKa".
    - Added native "L4D_SetPlayerSpawnTime" to set the spawn timer of a SI. Requested by "A1m`".

    - Fixed native "L4D_OnGameModeChange" in L4D2 returning 0 for realism. Thanks to "HarryPotter" for reporting.
    - Fixed forward "L4D2_CGasCan_EventKilled" not setting the correct modified values. Thanks to " 4NTEP xD " for reporting.

    - Fixed stocks "L4D2_GetWeaponUpgradeAmmoCount" and "L4D2_GetWeaponUpgrades" in the "left4dhooks_stocks" file, to return values other than 0 and 1. Thanks to "BHaType" for reporting.
    - Plugins using either of these stocks should be recompiled against the updated file.

    - Changes to the test plugin removing unnecessary lines printed to console when forwards trigger.

    - Updated: Plugin and test plugin.
    - Updated: "/scripting/gamedata/left4dhooks.l4d1.txt" GameData file.
    - Updated: "/scripting/gamedata/left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/include/left4dhooks.inc" Include file.
    - Updated: "/scripting/include/left4dhooks_silver.inc" Include file.
    - Updated: "/scripting/include/left4dhooks_stocks.inc" Include file.
    - Updated: "/scripting/l4dd/l4dd_forwards.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
Hi Silvers, the offset value of m_chapter needs to be updated
PHP Code:
"m_chapter"
{
    
"windows"    "1056"
    "linux"        "1056"
    
// From "CDirector::GetMapNumber"

sorallll is offline
PaaNChaN
New Member
Join Date: Dec 2021
Old 05-24-2023 , 23:46   Re: [L4D & L4D2] Left 4 DHooks Direct (1.131) [25-May-2023]
Reply With Quote #896

Quote:
Originally Posted by Silvers View Post
Code:
1.131 (25-May-2023)
    - Fixed signatures broken from the recent L4D2 updates.
    - Thanks to "robex" and "XiLuo" for reporting changes.
    - Thanks to "A1m`" for updating various offsets.

    - Added stock "L4D_IsTankProp" in the "left4dhooks_silver.inc" file, to check if a prop can be hit by tanks. Thanks to "Eyal282" for adding.
    - Added forward "L4D2_OnChargerImpact" to trigger when a Charger impacts after charging. Requested by "Eyal282".
    - Added native "L4D_NavArea_IsConnected" to check if 2 areas are connected. Requested by "Eyal282".
    - Added native "L4D_GetNavAreaCenter" to get the center of a NavArea. Requested by "3ipKa".
    - Added native "L4D_SetPlayerSpawnTime" to set the spawn timer of a SI. Requested by "A1m`".

    - Fixed native "L4D_OnGameModeChange" in L4D2 returning 0 for realism. Thanks to "HarryPotter" for reporting.
    - Fixed forward "L4D2_CGasCan_EventKilled" not setting the correct modified values. Thanks to " 4NTEP xD " for reporting.

    - Fixed stocks "L4D2_GetWeaponUpgradeAmmoCount" and "L4D2_GetWeaponUpgrades" in the "left4dhooks_stocks" file, to return values other than 0 and 1. Thanks to "BHaType" for reporting.
    - Plugins using either of these stocks should be recompiled against the updated file.

    - Changes to the test plugin removing unnecessary lines printed to console when forwards trigger.

    - Updated: Plugin and test plugin.
    - Updated: "/scripting/gamedata/left4dhooks.l4d1.txt" GameData file.
    - Updated: "/scripting/gamedata/left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/include/left4dhooks.inc" Include file.
    - Updated: "/scripting/include/left4dhooks_silver.inc" Include file.
    - Updated: "/scripting/include/left4dhooks_stocks.inc" Include file.
    - Updated: "/scripting/l4dd/l4dd_forwards.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
hello Silvers.
the following offsets need to be updated.
https://github.com/SirPlease/L4D2-Co...pull/651/files

Last edited by PaaNChaN; 05-24-2023 at 23:58.
PaaNChaN is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-25-2023 , 01:01   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #897

Code:
1.132 (25-May-2023)
    - Added forwards "L4D1_FirstAidKit_StartHealing", "L4D1_FirstAidKit_StartHealing_Post" and "L4D1_FirstAidKit_StartHealing_PostHandled" to control first aid kit duration.
    - Added forwards "L4D2_BackpackItem_StartAction", "L4D2_BackpackItem_StartAction_Post" and "L4D2_BackpackItem_StartAction_PostHandled" to control first aid kit duration, defibrillator and other use durations.
    - Forwards requested by "Eyal282". Thanks to "Psyk0tik" for the detour functions and signatures.

    - Fixed various offsets from the from the 2.2.2.7 L4D2 update. Thanks to "sorallll" and "PaaNChaN" for reporting and "SirPlease" for updating.

    - Updated: Plugin and test plugin.
    - Updated: "/scripting/gamedata/left4dhooks.l4d1.txt" GameData file.
    - Updated: "/scripting/gamedata/left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/include/left4dhooks.inc" Include file.
    - Updated: "/scripting/l4dd/l4dd_forwards.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
__________________
Silvers is offline
amazingzeal
Junior Member
Join Date: Jul 2021
Old 05-25-2023 , 03:32   Re: [L4D & L4D2] Left 4 DHooks Direct (1.131) [25-May-2023]
Reply With Quote #898

Quote:
Originally Posted by Silvers View Post
SM 1.10 isn't supported by this plugin anymore. Upgrade your SourceMod.

What plugin requires SM 1.10 that cannot use SM 1.11 and why does it not work on 1.11? Plugins written on older SourceMod versions should work on newer ones, maybe with slight changes to the prototypes, depending on what's being used.
Marcus101RR's Upgrades Reloaded's save feature is not functional on SM 1.11. I wouldn't be shocked if a bunch of the other ancient stuff I use would break. Appreciate your reply Silvers.

Last edited by amazingzeal; 05-25-2023 at 03:32.
amazingzeal is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-25-2023 , 03:46   Re: [L4D & L4D2] Left 4 DHooks Direct (1.131) [25-May-2023]
Reply With Quote #899

Quote:
Originally Posted by amazingzeal View Post
Marcus101RR's Upgrades Reloaded's save feature is not functional on SM 1.11. I wouldn't be shocked if a bunch of the other ancient stuff I use would break. Appreciate your reply Silvers.
If you mean it doesn't compile, I just tested.

PHP Code:
HookEvent("player_spawn"event_PlayerSpawnEventHookMode); 
Should be changed to:

PHP Code:
HookEvent("player_spawn"event_PlayerSpawnEventHookMode_Post); 
Other than that, I don't see why it wouldn't work, if you can elaborate on the reasons for it not working maybe it can be fixed.
__________________
Silvers is offline
WinterLady
Junior Member
Join Date: May 2023
Old 05-25-2023 , 11:50   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #900

Hello! I'm trying to use SetCampaignScores signature, and I'm getting this error:

Code:
[2023-05-25 17:43:48]: L 05/25/2023 - 15:43:48: [SM] Exception reported: VersusModePtr not available (NIX/2/1.130).
[2023-05-25 17:43:48]: L 05/25/2023 - 15:43:48: [SM] Blaming: left4dhooks.smx
[2023-05-25 17:43:48]: L 05/25/2023 - 15:43:48: [SM] Call stack trace:
[2023-05-25 17:43:48]: L 05/25/2023 - 15:43:48: [SM] [0] ThrowNativeError
[2023-05-25 17:43:48]: L 05/25/2023 - 15:43:48: [SM] [1] Line 174, l4dd\l4dd_natives.sp::ValidateAddress
[2023-05-25 17:43:48]: L 05/25/2023 - 15:43:48: [SM] [2] Line 3488, l4dd\l4dd_natives.sp::Direct_SetVSCampaignScore
[2023-05-25 17:43:48]: L 05/25/2023 - 15:43:48: [SM] [4] L4D2Direct_SetVSCampaignScore
Please help :'(

Last edited by WinterLady; 05-25-2023 at 11:52.
WinterLady 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 11:23.


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