Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Left 4 DHooks Direct (1.145) [03-Apr-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
fdxx
Member
Join Date: Oct 2020
Location: 0xdeadbeef
Old 09-15-2021 , 06:12   Re: [L4D & L4D2] Left 4 DHooks Direct (1.55) [12-Sep-2021]
Reply With Quote #451

Host_Error: SV_CreatePacketEntities: GetEntServerClass failed for ent 5.?

Accelerator Crash ID: C23D-Z5X3-4AT5

PHP Code:
L 09/15/2021 17:26:50SourceMod error session started
L 09
/15/2021 17:26:50Info (map "c6m1_riverbank") (file "/home/l4d2ht/game/l4d2/left4dead2/addons/sourcemod/logs/errors_20210915.log")
L 09/15/2021 17:26:50: [SMException reportedClient index 0 is invalid
L 09
/15/2021 17:26:50: [SMBlaming: new/lerpmonitor.smx
L 09
/15/2021 17:26:50: [SMCall stack trace:
L 09/15/2021 17:26:50: [SM]   [0IsClientInGame
L 09
/15/2021 17:26:50: [SM]   [1Line 86, new/lerpmonitor.sp::Event_PlayerTeamChanged
L 09
/15/2021 17:26:50: [SM]   [3AcceptEntityInput
L 09
/15/2021 17:26:50: [SM]   [4Line 1660, new/left4dhooks.sp::GetGameMode
L 09
/15/2021 17:26:50: [SM]   [5Line 2563, new/left4dhooks.sp::OnMapStart
L 09
/15/2021 17:26:50: [SMException reportedClient index 0 is invalid
L 09
/15/2021 17:26:50: [SMBlaming: new/l4d2_afk_manager.smx
L 09
/15/2021 17:26:50: [SMCall stack trace:
L 09/15/2021 17:26:50: [SM]   [0IsFakeClient
L 09
/15/2021 17:26:50: [SM]   [1Line 200, new/l4d2_afk_manager.sp::Event_PlayerTeamChanged
L 09
/15/2021 17:26:50: [SM]   [3AcceptEntityInput
L 09
/15/2021 17:26:50: [SM]   [4Line 1660, new/left4dhooks.sp::GetGameMode
L 09
/15/2021 17:26:50: [SM]   [5Line 2563, new/left4dhooks.sp::OnMapStart
L 09
/15/2021 17:26:50: [SMException reportedInvalid client index 0
L 09
/15/2021 17:26:50: [SMBlaming: new/control_zombies.smx
L 09
/15/2021 17:26:50: [SMCall stack trace:
L 09/15/2021 17:26:50: [SM]   [0IsPlayerAlive
L 09
/15/2021 17:26:50: [SM]   [1Line 1310, new/control_zombies.sp::Event_PlayerSpawn
L 09
/15/2021 17:26:50: [SM]   [3AcceptEntityInput
L 09
/15/2021 17:26:50: [SM]   [4Line 1660, new/left4dhooks.sp::GetGameMode
L 09
/15/2021 17:26:50: [SM]   [5Line 2563, new/left4dhooks.sp::OnMapStart
L 09
/15/2021 17:26:50: [SMException reportedClient index 0 is invalid
L 09
/15/2021 17:26:50: [SMBlaming: new/All4Dead2.smx
L 09
/15/2021 17:26:50: [SMCall stack trace:
L 09/15/2021 17:26:50: [SM]   [0GetClientTeam
L 09
/15/2021 17:26:50: [SM]   [1Line 212, new/All4Dead2.sp::Event_PlayerSpawn
L 09
/15/2021 17:26:50: [SM]   [3AcceptEntityInput
L 09
/15/2021 17:26:50: [SM]   [4Line 1660, new/left4dhooks.sp::GetGameMode
L 09
/15/2021 17:26:50: [SM]   [5Line 2563, new/left4dhooks.sp::OnMapStart
L 09
/15/2021 17:27:18SourceMod error session started
L 09
/15/2021 17:27:18Info (map "c2m1_highway") (file "/home/l4d2ht/game/l4d2/left4dead2/addons/sourcemod/logs/errors_20210915.log")
L 09/15/2021 17:27:18: [CRASHAccelerator uploaded crash dumpCrash IDC23D-Z5X3-4AT5
L 09
/15/2021 17:27:45Error log file session closed
fdxx is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-15-2021 , 07:51   Re: [L4D & L4D2] Left 4 DHooks Direct (1.56) [15-Sep-2021]
Reply With Quote #452

Thank you, this should fix it:

Code:
1.56 (15-Sep-2021)
    - Fixed spawning an entity directly OnMapStart (can cause crashes), delayed by a frame to fix errors. Thanks to "fdxx" for reporting.
__________________
Silvers is offline
ddd123
Senior Member
Join Date: May 2021
Old 09-17-2021 , 10:43   Re: [L4D & L4D2] Left 4 DHooks Direct (1.56) [15-Sep-2021]
Reply With Quote #453

Hi, i got this error from my console
Code:
L 09/17/2021 - 05:49:44: [SM] Exception reported: Fling not available.
L 09/17/2021 - 05:49:44: [SM] Blaming: left4dhooks.smx
L 09/17/2021 - 05:49:44: [SM] Call stack trace:
L 09/17/2021 - 05:49:44: [SM]   [0] ThrowNativeError
L 09/17/2021 - 05:49:44: [SM]   [1] Line 4152, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::ValidateNatives
L 09/17/2021 - 05:49:44: [SM]   [2] Line 6567, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::Native_CTerrorPlayer_Fling
L 09/17/2021 - 05:49:44: [SM]   [4] L4D2_CTerrorPlayer_Fling
L 09/17/2021 - 05:49:44: [SM]   [5] Line 185, l4d_si_ability.sp::Event_PlayerHurt
L 09/17/2021 - 05:49:44: [SM] Exception reported: Fling not available.
L 09/17/2021 - 05:49:44: [SM] Blaming: left4dhooks.smx
L 09/17/2021 - 05:49:44: [SM] Call stack trace:
L 09/17/2021 - 05:49:44: [SM]   [0] ThrowNativeError
L 09/17/2021 - 05:49:44: [SM]   [1] Line 4152, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::ValidateNatives
L 09/17/2021 - 05:49:44: [SM]   [2] Line 6567, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::Native_CTerrorPlayer_Fling
L 09/17/2021 - 05:49:44: [SM]   [4] L4D2_CTerrorPlayer_Fling
L 09/17/2021 - 05:49:44: [SM]   [5] Line 185, l4d_si_ability.sp::Event_PlayerHurt
L 09/17/2021 - 05:51:06: [SM] Exception reported: Fling not available.
L 09/17/2021 - 05:51:06: [SM] Blaming: left4dhooks.smx
L 09/17/2021 - 05:51:06: [SM] Call stack trace:
L 09/17/2021 - 05:51:06: [SM]   [0] ThrowNativeError
L 09/17/2021 - 05:51:06: [SM]   [1] Line 4152, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::ValidateNatives
L 09/17/2021 - 05:51:06: [SM]   [2] Line 6567, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::Native_CTerrorPlayer_Fling
L 09/17/2021 - 05:51:06: [SM]   [4] L4D2_CTerrorPlayer_Fling
L 09/17/2021 - 05:51:06: [SM]   [5] Line 185, l4d_si_ability.sp::Event_PlayerHurt
L 09/17/2021 - 05:52:35: Error log file session closed.
L 09/17/2021 - 05:57:46: SourceMod error session started
L 09/17/2021 - 05:57:46: Info (map "c1m3_mall") (file "E:\GAME\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_20210917.log")
L 09/17/2021 - 05:57:46: [SM] Exception reported: Fling not available.
L 09/17/2021 - 05:57:46: [SM] Blaming: left4dhooks.smx
L 09/17/2021 - 05:57:46: [SM] Call stack trace:
L 09/17/2021 - 05:57:46: [SM]   [0] ThrowNativeError
L 09/17/2021 - 05:57:46: [SM]   [1] Line 4152, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::ValidateNatives
L 09/17/2021 - 05:57:46: [SM]   [2] Line 6567, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::Native_CTerrorPlayer_Fling
L 09/17/2021 - 05:57:46: [SM]   [4] L4D2_CTerrorPlayer_Fling
L 09/17/2021 - 05:57:46: [SM]   [5] Line 185, l4d_si_ability.sp::Event_PlayerHurt
ddd123 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-17-2021 , 12:19   Re: [L4D & L4D2] Left 4 DHooks Direct (1.56) [15-Sep-2021]
Reply With Quote #454

Find the "CTerrorPlayer_Fling" signature and replace it with this. I guess you installed some plugin which is detouring the function.

Code:
			"CTerrorPlayer_Fling"
			{
				"library"	"server"
				"linux"		"@_ZN13CTerrorPlayer5FlingERK6Vector17PlayerAnimEvent_tP20CBaseCombatCharacterf"
				"windows"	"\x2A\x2A\x2A\x2A\x2A\x2A\x83\xE4\x2A\x83\xC4\x2A\x55\x8B\x6B\x2A\x89\x6C\x2A\x2A\x8B\xEC\x81\x2A\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\x2A\x8B\x43\x2A\x56\x8B\x73\x2A\x57\x6A\x2A\x8B\xF9\x89\x45"
				/* ? ? ? ? ? ? 83 E4 ? 83 C4 ? 55 8B 6B ? 89 6C ? ? 8B EC 81 ? ? ? ? ? A1 ? ? ? ? 33 C5 89 45 ? 8B 43 ? 56 8B 73 ? 57 6A ? 8B F9 89 45 */
			}
Were there any errors on plugin start up?
__________________
Silvers is offline
ddd123
Senior Member
Join Date: May 2021
Old 09-17-2021 , 15:03   Re: [L4D & L4D2] Left 4 DHooks Direct (1.56) [15-Sep-2021]
Reply With Quote #455

Quote:
Originally Posted by Silvers View Post
Find the "CTerrorPlayer_Fling" signature and replace it with this. I guess you installed some plugin which is detouring the function.
Thanks, i think this stop the error spam
Although i still have another problem and i think i'm the only one who have this problem.

After i update latest "left4dhooks.smx"
When i go to next chapter, it will crash no matter what after loading and error log doesn't tell anything except accelerator crash ID
It finally stop crashing when i replace the older "left4dhooks.smx" (1.54 version) from my backup

I think my crash has something to do with "Fixed spawning an entity directly OnMapStart"?
Either that or because my other plugin/mod are causing trouble?

Just in case: [CRASH] Accelerator uploaded crash dump: Crash ID: THSN-RDC3-MFLX

Last edited by ddd123; 09-17-2021 at 15:10.
ddd123 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-17-2021 , 22:00   Re: [L4D & L4D2] Left 4 DHooks Direct (1.57) [18-Sep-2021]
Reply With Quote #456

Thanks, should all be fixed:

Code:
1.57 (18-Sep-2021)
    - Changed the method for getting the current GameMode. Should have no more issues. Thanks to "ddd123" for reporting.
    - L4D2: Wildcarded the "CTerrorPlayer_Fling" signature for compatibility with being detoured. Thanks to "ddd123" for reporting.

    - L4D2 GameData file and plugin updated.
__________________
Silvers is offline
weffer
Member
Join Date: Oct 2020
Old 09-18-2021 , 18:09   Re: [L4D & L4D2] Left 4 DHooks Direct (1.57) [18-Sep-2021]
Reply With Quote #457

Hi Silvers :

I have problems compiling with sourcemod v.1.11.0.6740.

weffer is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 09-18-2021 , 18:48   Re: [L4D & L4D2] Left 4 DHooks Direct (1.57) [18-Sep-2021]
Reply With Quote #458

Quote:
Originally Posted by weffer View Post
Hi Silvers :

I have problems compiling with sourcemod v.1.11.0.6740.

There was an issue from 6733 to 6742 that would cause errors like that. Update to 6743 and you should be able to recompile L4DH.

Quote:
Originally Posted by Psyk0tik View Post
The newer builds seem to have an issue with the compiler. See this bug report for more clarification: https://github.com/alliedmodders/sourcepawn/issues/613

Use the 1.11.0.6732 build until they fix this issue.
The issue was fixed in 1.11.0.6743.
__________________

Last edited by Psyk0tik; 09-18-2021 at 18:49.
Psyk0tik is offline
jackz
Junior Member
Join Date: Oct 2019
Old 09-20-2021 , 09:27   Re: [L4D & L4D2] Left 4 DHooks Direct (1.57) [18-Sep-2021]
Reply With Quote #459

Small things I've noticed, but in the include file:

native void L4D_OnITExpired(int client);
has this listed: @param vecAng Angular velocity vector, director to spin the projectile

L4D_OnVomitedUpon and L4D2_OnHitByVomitJar seem to have swapped parameters?
__________________
jackz is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-21-2021 , 15:40   Re: [L4D & L4D2] Left 4 DHooks Direct (1.57) [18-Sep-2021]
Reply With Quote #460

Quote:
Originally Posted by jackz View Post
Small things I've noticed, but in the include file:

native void L4D_OnITExpired(int client);
has this listed: @param vecAng Angular velocity vector, director to spin the projectile

L4D_OnVomitedUpon and L4D2_OnHitByVomitJar seem to have swapped parameters?
Thanks, will remove that line from L4D_OnITExpired, was copy paste error.

Params for the other 2 natives are correct. Just checked.

PHP Code:
// Boomer L4D_OnVomitedUpon Silvers (0)
// Boomer L4D_OnVomitedUpon Silvers (1)
public Action L4D_OnVomitedUpon(int victimint &attackerbool &boomerExplosion)
{
    
PrintToChatAll("%N L4D_OnVomitedUpon %N (%d)"attackervictimboomerExplosion);
}

// Silvers L4D2_OnHitByVomitJar Boomer
public Action L4D2_OnHitByVomitJar(int victimint &attacker)
{
    
PrintToChatAll("%N L4D2_OnHitByVomitJar %N"attackervictim);

__________________
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 19:27.


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