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 10-24-2023 , 23:29   Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
Reply With Quote #1001

Code:
1.139 (25-Oct-2023)
    - Added new attribute "L4D2IWA_WeaponType" for use with the "L4D2_GetIntWeaponAttribute" native. Thanks to "Forgetest" for providing.
    - Added new enum "WeaponType" for use with the "L4D2IWA_WeaponType" attribute. Thanks to "Forgetest" for providing.

    - Added forward "L4D_OnMotionControlledXY" which is called when staggering or other motion controlled animations. Requested by "Forgetest".
    - Added forward "L4D_OnDeathDroppedWeapons" to list weapon indexes dropped on player death. Requested by "Forgetest".
    - Added forwards "L4D2_GrenadeLauncher_Detonate", "L4D2_GrenadeLauncher_Detonate_Post" and "L4D2_GrenadeLauncher_Detonate_PostHandled" when a Grenade Launcher projectile detonates.

    - Added native "L4D_PrecacheParticle" to precache particle effects.
    - Added native "L4D_RemoveEntityDelay" to remove an entity after a specified amount of time.
    - Added native "L4D_WriteMemoryString" to write a string to a memory address.

    - Changed native "L4D_PipeBombPrj" to optionally create the PipeBomb fuse/light particles. Requested by "Eyal282".
    - Fixed native "L4D2_IsRealismMode" from returning values other than 0 and 1. Thanks to "Eyal282" for reporting.
    - Fixed forward "L4D2_OnFindScavengeItem*" to stop passing invalid entities. Thanks to "kochiurun119" for reporting.

    - 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_gamedata.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_setup.sp" project file.
__________________

Last edited by Silvers; 12-30-2023 at 13:27.
Silvers is offline
KadabraZz
Senior Member
Join Date: May 2020
Old 10-27-2023 , 13:44   Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
Reply With Quote #1002

Something to say about the correction of the spitter's sound after dying and being kicked from the server. The sound is very low compared to the original sound, it's just strange, some players have noticed this too, and another thing is that sometimes the correction doesn't work, I don't need to do anything big, I just kill the spitter and stand on top of the acid and no sound happens. Just reporting =)
KadabraZz is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 10-27-2023 , 13:58   Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
Reply With Quote #1003

Quote:
Originally Posted by KadabraZz View Post
Something to say about the correction of the spitter's sound after dying and being kicked from the server. The sound is very low compared to the original sound, it's just strange, some players have noticed this too, and another thing is that sometimes the correction doesn't work, I don't need to do anything big, I just kill the spitter and stand on top of the acid and no sound happens. Just reporting =)
I only know of the sound breaking when the spitter disconnects. If you can explain the scenario to replicate other bugs I can fix. You could try changing "0.55" in "l4dd_natives.sp" to "0.7" (will change to this in the future, it was the recommended value from "Marttt" but I forgot to change when that release came out).
__________________
Silvers is offline
Krufftys Killers
Senior Member
Join Date: Jan 2014
Old 11-09-2023 , 07:24   Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
Reply With Quote #1004

Got this error this morning
I keL 11/08/2023 - 15:53:58: SourceMod error session started
L 11/08/2023 - 15:53:58: Info (map "l4d2_tank_challenge") (file "C:\servers\kruffty\left4dead2\addons\sourcem od\logs\errors_20231108.log")
L 11/08/2023 - 15:53:58: [SM] Exception reported: NULL not allowed
L 11/08/2023 - 15:53:58: [SM] Blaming: left4dhooks.smx
L 11/08/2023 - 15:53:58: [SM] Call stack trace:
L 11/08/2023 - 15:53:58: [SM] [0] SDKCall
L 11/08/2023 - 15:53:58: [SM] [1] Line 1043, l4dd\l4dd_natives.sp::Native_ZombieManager_Ge tRandomPZSpawnPosition
L 11/08/2023 - 15:53:58: [SM] [3] L4D_GetRandomPZSpawnPosition
L 11/08/2023 - 15:53:58: [SM] [4] Line 513, C:\Users\kruff\OneDrive\Desktop\disabled\l4d2 _boss_spawn\l4d2_boss_spawn.sp::SpawnTank
L 11/08/2023 - 15:53:58: [SM] [5] Line 464, C:\Users\kruff\OneDrive\Desktop\disabled\l4d2 _boss_spawn\l4d2_boss_spawn.sp::tmrCheckFlow
L 11/08/2023 - 15:53:59: [SM] Exception reported: NULL not allowed
L 11/08/2023 - 15:53:59: [SM] Blaming: left4dhooks.smx
L 11/08/2023 - 15:53:59: [SM] Call stack trace:
L 11/08/2023 - 15:53:59: [SM] [0] SDKCall
L 11/08/2023 - 15:53:59: [SM] [1] Line 1043, l4dd\l4dd_natives.sp::Native_ZombieManager_Ge tRandomPZSpawnPosition
L 11/08/2023 - 15:53:59: [SM] [3] L4D_GetRandomPZSpawnPosition
L 11/08/2023 - 15:53:59: [SM] [4] Line 513, C:\Users\kruff\OneDrive\Desktop\disabled\l4d2 _boss_spawn\l4d2_boss_spawn.sp::SpawnTank
L 11/08/2023 - 15:53:59: [SM] [5] Line 464, C:\Users\kruff\OneDrive\Desktop\disabled\l4d2 _boss_spawn\l4d2_boss_spawn.sp::tmrCheckFlow
L 11/08/2023 - 17:10:23: Error log file session closed.ep getting this error\
Krufftys Killers is offline
Mika Misori
Senior Member
Join Date: Sep 2022
Old 11-09-2023 , 08:48   Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
Reply With Quote #1005

I've recently had 2 weird crashes in a row over a long period of stable uptime:
https://crash.limetech.org/pshd4xa2ikph
https://crash.limetech.org/5s73zoiom75j

They happened on official campaigns, nothing unusual was noticed by players at this point.
Metamod:Source 1.11.0-dev+1148
SourceMod 1.11.0.6934
Left 4 DHooks Direct 1.138

A function on top of the stack trace:
server_srv.so!CTerrorGameMovement::HandleCust omCollision(Vector const&, Vector const&, CGameTrace*) + 0x7b3

I looked through the raw stack and found no mention of any plugin that would cause the crash. So I copied CTerrorGameMovement function and searched for it in the sources of all plugins used. The only mention of this function was found in left4dhooks.inc:
Code:
Left 4 DHooks Direct\addons\sourcemod\scripting\include\left4dhooks.inc:
  758  	PLAYERANIMEVENT_RELOAD_END = 6, //CMultiPlayerAnimState::DoAnimationEvent, CBaseShotgun::CheckReload->PlayReloadAnim, CTerrorGun::AbortReload
  759: 	PLAYERANIMEVENT_JUMP = 7, // CMultiPlayerAnimState::DoAnimationEvent, CTerrorGameMovement::DoJump, CCSGameMovement::CheckJumpButton
  760: 	PLAYERANIMEVENT_LAND = 8, // CTerrorGameMovement::PlayerRoughLandingEffects
  761  	PLAYERANIMEVENT_SWIM = 9, // Not sure, not used in the game anyway
Can these crashes be somehow related to DHooks Direct or could they be caused by any other plugins?

I apologize if my guesses are wrong, I'm a noob at this.
Attached Thumbnails
Click image for larger version

Name:	Crashes Screenshot 2023-11-09 161626.png
Views:	41
Size:	19.4 KB
ID:	202157   Click image for larger version

Name:	Stack Trace Screenshot 2023-11-09 162153.png
Views:	41
Size:	43.2 KB
ID:	202158   Click image for larger version

Name:	VS function search Screenshot 2023-11-09 163557.png
Views:	57
Size:	27.2 KB
ID:	202159   Click image for larger version

Name:	Search result Screenshot 2023-11-09 163741.png
Views:	45
Size:	29.9 KB
ID:	202160  
Mika Misori is offline
ReCreator
Member
Join Date: Nov 2017
Location: Ukraine,Kyiv
Old 11-09-2023 , 17:34   Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
Reply With Quote #1006

Something weird happend,
Code:
Address area = view_as<Address>(L4D_GetNearestNavArea(vOrigin, 10.0, false, false, true, 2));
This code was working fine for a long time, but now it almost always returns Address_Null.
Probably it's my fault, I made a lot of changes on servers recently. Maybe some one have any ideas?
__________________
Sorry for my pure English...
ReCreator is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-10-2023 , 06:36   Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
Reply With Quote #1007

Quote:
Originally Posted by Mika Misori View Post
I've recently had 2 weird crashes in a row over a long period of stable uptime:
https://crash.limetech.org/pshd4xa2ikph
https://crash.limetech.org/5s73zoiom75j

They happened on official campaigns, nothing unusual was noticed by players at this point.
Metamod:Source 1.11.0-dev+1148
SourceMod 1.11.0.6934
Left 4 DHooks Direct 1.138

did you recently update SourceMod 1.11.0.6934?
__________________
HarryPotter is offline
Mika Misori
Senior Member
Join Date: Sep 2022
Old 11-10-2023 , 07:20   Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
Reply With Quote #1008

Quote:
Originally Posted by HarryPotter View Post
did you recently update SourceMod 1.11.0.6934?
No, I've been using this version for a long time and everything has been fine.
Mika Misori is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-13-2023 , 09:54   Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
Reply With Quote #1009

Quote:
Originally Posted by Mika Misori View Post
No, I've been using this version for a long time and everything has been fine.
try downgrade left4dhooks and see if bug still happens

https://github.com/SilvDev/Left4DHooks/commits/main
__________________
HarryPotter is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-13-2023 , 11:20   Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
Reply With Quote #1010

Quote:
Originally Posted by ReCreator View Post
Something weird happend,
Code:
Address area = view_as<Address>(L4D_GetNearestNavArea(vOrigin, 10.0, false, false, true, 2));
This code was working fine for a long time, but now it almost always returns Address_Null.
Probably it's my fault, I made a lot of changes on servers recently. Maybe some one have any ideas?
10.0 is a very small distance to find a nearby NavArea. If someone jumps they'll be too far from a NavArea.
__________________

Last edited by Silvers; 11-13-2023 at 11:20.
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 14:39.


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