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 11-17-2021 , 17:57   Re: [L4D & L4D2] Left 4 DHooks Direct (1.74) [16-Nov-2021]
Reply With Quote #531

Quote:
Originally Posted by user2000 View Post
sourcemod 1.11.0.6711
metamod 11.0-dev+1143V

maybe i have to update my sourcemod?
Try it, let me know.



Quote:
Originally Posted by tRololo312312 View Post
Getting crashes since updating Left 4 Dhooks.

https://crash.limetech.org/ei3lwu5zkogx
https://crash.limetech.org/pamhaxdntnbj
https://crash.limetech.org/dwrshy7fqaqm

EDIT: Oops i was supposed to post this under L4DD thread... Anyway, the crash seems to come from IsReachable.
I moved the post.

Which plugin is using this? You can PM me link/source if it's private. I can't see anything wrong with the function so long a Survivor Bot is calling it (and I added checks to prevent anything else using). Might have to remove or see check for a replacement function. Which game, l4d2? I'll double check windows signature at some point to verify it's calling the correct function. Does it happen on first use or randomly at some point? Maybe the Survivor is dead or something?

Edit: Turns out spcomp didn't get replaced when I updated even though I specifically updated those. Anyway I see the error now and will fix for next release. Thanks.
__________________

Last edited by Silvers; 11-17-2021 at 18:07.
Silvers is offline
user2000
Member
Join Date: Nov 2015
Location: Peru - Lima
Old 11-17-2021 , 18:41   Re: [L4D & L4D2] Left 4 DHooks Direct (1.74) [16-Nov-2021]
Reply With Quote #532

Quote:
Originally Posted by Silvers View Post
Try it, let me know.
with which version of sourcemod exactly you use it, because I have tried with

sourcemod-1.11.0 6820
sourcemod-1.11.0 6814
sourcemod-1.11.0 6813
sourcemod-1.11.0 6810
sourcemod-1.11.0 6809

and I have this error:

Quote:
//// left4dhooks.sp
//
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_stocks.inc(1353) : error 183: brackets after variable name indicates a fixed-size array, but size is missing or not constant
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_stocks.inc(1354) : error 183: brackets after variable name indicates a fixed-size array, but size is missing or not constant
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_stocks.inc(1355) : error 183: brackets after variable name indicates a fixed-size array, but size is missing or not constant
//
// 3 Errors.
//
// Compilation Time: 0.33 sec
// ----------------------------------------
and with the version sourcemod-1.11.0.6724 I get

Quote:
//// left4dhooks.sp
//
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_stocks.inc(154) : error 009: invalid array size (negative, zero or out of bounds)
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_stocks.inc(163) : error 010: invalid function or declaration
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_stocks.inc(1541) : error 009: invalid array size (negative, zero or out of bounds)
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_stocks.inc(1599) : error 010: invalid function or declaration
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_stocks.inc(1601) : error 009: invalid array size (negative, zero or out of bounds)
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_stocks.inc(1636) : error 010: invalid function or declaration
// E:\JuegosSteam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\inclu de\left4dhooks_stocks.inc(1672) : error 010: invalid function or declaration
//
// 7 Errors.
//
// Compilation Time: 0.28 sec
// ----------------------------------------

Press enter to exit ...
user2000 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-17-2021 , 18:47   Re: [L4D & L4D2] Left 4 DHooks Direct (1.74) [16-Nov-2021]
Reply With Quote #533

Quote:
Originally Posted by user2000 View Post
-snip-
Quote:
Originally Posted by Silvers View Post
Edit: Turns out spcomp didn't get replaced when I updated even though I specifically updated those. Anyway I see the error now and will fix for next release. Thanks.
Edit fixed:

Code:
1.75 (18-Nov-2021)
    - Fixed forward "L4D2_OnHitByVomitJar" throwing errors about null pointer.
    - Forwards "L4D_OnVomitedUpon" and "L4D2_OnHitByVomitJar" attacker can now be reported as 0.

    - "left4dhooks_silver.inc" include:
        - Deprecated stock "L4D_IsPlayerIncapped".

    - "left4dhooks_stocks.inc" include:
        - Renamed the stock "L4D_HasAnySurvivorLeftSafeArea" to "L4D_HasAnySurvivorLeftSafeAreaStock" (the native "L4D_HasAnySurvivorLeftSafeArea" still exists).
        - Fixed compile errors on SourceMod version 1.11. Thanks to "user2000" for reporting.
        - Replaced indentation spaces with tabs.

    - Note: "#include <left4dhooks>" will load all <left4dhooks_*> includes. Other "#include <left4dhooks_*>" will attempt to load each other if included on their own.
    - Only required to use "#include <left4dhooks>" for all features and stocks availability.

    - Plugin and Include files updated.
__________________

Last edited by Silvers; 11-17-2021 at 22:01.
Silvers is offline
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 11-18-2021 , 21:05   Re: [L4D & L4D2] Left 4 DHooks Direct (1.75) [18-Nov-2021]
Reply With Quote #534

I'm using l4d2_tank_announce.sp and have this error in the logs
Code:
L 11/18/2021 - 20:11:22: SourceMod error session started
L 11/18/2021 - 20:11:22: Info (map "c2m1_highway") (file "D:\Program Files\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_20211118.log")
L 11/18/2021 - 20:11:22: [SM] Exception reported: Function signature "ZombieManager::SpawnTank" was not found.
L 11/18/2021 - 20:11:22: [SM] Blaming: optional\l4d2_tank_announce.smx
L 11/18/2021 - 20:11:22: [SM] Call stack trace:
L 11/18/2021 - 20:11:22: [SM]   [0] DHookCreateFromConf
L 11/18/2021 - 20:11:22: [SM]   [1] Line 38, D:\Program Files\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d2_tank_announce.sp::OnPluginStart
L 11/18/2021 - 20:11:26: Error log file session closed.
from gamedata left4dhooks.l4d2.txt

my operating system is windows 10, for L4D2
__________________
Sorry i don't speak english very well

--->My name is Source and I'm on Steam<---
Discord: Source#9382
Tank Rush is offline
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 11-19-2021 , 03:27   Re: [L4D & L4D2] Left 4 DHooks Direct (1.75) [18-Nov-2021]
Reply With Quote #535

At least two people have told me they're having errors about failing to find the signature for Music::Play in the gamedata:
user2000 and Edison1318 (in private messaging)

The reported L4DHooks version used by user2000 is 1.74, but there's no mention of fixing the gamedata sigs in 1.75 so this may still be unfixed?
__________________
ragdoll spam, that is all

Steam profile, where I game, obviously.
Youtube channel, where I do Stick Death Maze animations and some other stuff.
no plugin requests, sorry


My Plugins:
-search list-
Modified Plugins:
1 | 2 | 3 | 4

Last edited by Shadowysn; 11-19-2021 at 03:30.
Shadowysn is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-19-2021 , 22:03   Re: [L4D & L4D2] Left 4 DHooks Direct (1.76) [20-Nov-2021]
Reply With Quote #536

Code:
1.76 (20-Nov-2021)
    - Fixed native "L4D2_IsReachable" using a bad signature. Thanks to "tRololo312312" for reporting.
    - Wildcarded the "Music::Play" signatures to be compatible with plugins detouring. Thanks to "user2000", "Edison1318" and "Shadowysn" for reporting.
    - Wildcarded the "ZombieManager::SpawnTank" signatures to be compatible with plugins detouring. Thanks to "Tank Rush" for reporting.

    - L4D1 and L4D2 GameData files updated.
This should fix the issues reported.
__________________
Silvers is offline
fdxx
Member
Join Date: Oct 2020
Location: 0xdeadbeef
Old 11-21-2021 , 01:28   Re: [L4D & L4D2] Left 4 DHooks Direct (1.76) [20-Nov-2021]
Reply With Quote #537

I don't know why, using L4D_OnEnterGhostStatePre alone does not work.
It can work if you use L4D_OnEnterGhostStatePre and L4D_OnEnterGhostState together.

PHP Code:
// Use L4D_OnEnterGhostStatePre alone
public Action L4D_OnEnterGhostStatePre(int client)
{
    
LogMessage("%N L4D_OnEnterGhostStatePre"client); // not work
    
return Plugin_Continue;

PHP Code:
// Use L4D_OnEnterGhostState alone
public void L4D_OnEnterGhostState(int client)
{
    
LogMessage("%N L4D_OnEnterGhostState post"client); // work

PHP Code:
// Use L4D_OnEnterGhostStatePre and L4D_OnEnterGhostState together
public Action L4D_OnEnterGhostStatePre(int client)
{
    
LogMessage("%N L4D_OnEnterGhostStatePre"client); // work
    
return Plugin_Continue;
}

public 
void L4D_OnEnterGhostState(int client)
{
    
LogMessage("%N L4D_OnEnterGhostState post"client); // work

Linux
L4D2
sourcemod 1.11.0.6806
left4dhooks 1.76

Last edited by fdxx; 11-21-2021 at 01:32.
fdxx is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-21-2021 , 03:39   Re: [L4D & L4D2] Left 4 DHooks Direct (1.76) [20-Nov-2021]
Reply With Quote #538

Thanks for the report will have a look.

Edit: it's the recent changes I made to the functions checking for required detours. The whole things a mess and should be re-written but I don't know how else to make it. I will fix the issue for the next version.

Excellent find, thank you for reporting. Seems 1 line messed it up, hopefully this now works without any other issues. I tested several different cases, only enabling 1 of each and both together. Seems all is working correctly and reporting the correct detours/plugins using them with the command sm_l4dd_detours.

Code:
1.77 (21-Nov-2021)
    - Fixed not detouring some functions when only 1 detour was used instead of both pre and post. Thanks to "fdxx" for reporting.
This update is probably quite critical. This bug has been present since either version 1.63 or 1.71.
__________________

Last edited by Silvers; 11-21-2021 at 05:24.
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-23-2021 , 00:15   Re: [L4D & L4D2] Left 4 DHooks Direct (1.78) [23-Nov-2021]
Reply With Quote #539

Code:
1.78 (23-Nov-2021)
    - Added forwards "L4D_OnSpawnSpecial_Post", "L4D_OnSpawnTank_Post", "L4D_OnSpawnWitch_Post" and "L4D2_OnSpawnWitchBride_Post". Requested by "A1m".
    - Added stocks "GetAnyRandomClient", "GetRandomSurvivor" and "GetRandomInfected" to the "left4dhooks_silver.inc" include file.

    - Updated: Plugin and Test plugin.
    - Updated: "left4dhooks.l4d1" and "left4dhooks.l4d2" GameData files.
    - Updated: "left4dhooks.inc" and "left4dhooks_silver.inc" Include files.
Code:
1.79 (23-Nov-2021)
    - Changed forward "L4D_OnSpawnSpecial_Post" prototype to remove the reference variable.

    - Updated: Plugin and Test plugin.
    - Updated: "left4dhooks.inc" Include file.
__________________

Last edited by Silvers; 11-23-2021 at 06:04.
Silvers is offline
fdxx
Member
Join Date: Oct 2020
Location: 0xdeadbeef
Old 11-23-2021 , 10:35   Re: [L4D & L4D2] Left 4 DHooks Direct (1.79) [23-Nov-2021]
Reply With Quote #540

PHP Code:
L 11/23/2021 10:23:48: [SMException reportedInvalid parameter or parameter type
L 11
/23/2021 10:23:48: [SMBlaming: new/left4dhooks.smx
L 11
/23/2021 10:23:48: [SMCall stack trace:
L 11/23/2021 10:23:48: [SM]   [0Call_PushCellRef
L 11
/23/2021 10:23:48: [SM]   [1Line 8593C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::DTR_ZombieManager_SpawnSpecial_Post
L 11
/23/2021 10:23:48: [SM]   [3FakeClientCommand
L 11
/23/2021 10:23:48: [SM]   [4Line 1298, new/l4d2_dev_menu.sp::CheatCommand
L 11
/23/2021 10:23:48: [SM]   [5Line 369, new/l4d2_dev_menu.sp::SpawnSpecial_ClassSelect_MenuHandler 
Linux
L4D2
sourcemod 1.11.0.6806
left4dhooks 1.79
fdxx 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 12:18.


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