AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Left 4 DHooks Direct (1.150) [06-May-2024] (https://forums.alliedmods.net/showthread.php?t=321696)

Silvers 10-24-2023 23:29

Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
 
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.


KadabraZz 10-27-2023 13:44

Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
 
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 =)

Silvers 10-27-2023 13:58

Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
 
Quote:

Originally Posted by KadabraZz (Post 2812115)
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).

Krufftys Killers 11-09-2023 07:24

Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
 
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\

Mika Misori 11-09-2023 08:48

Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
 
4 Attachment(s)
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.

ReCreator 11-09-2023 17:34

Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
 
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?

HarryPotter 11-10-2023 06:36

Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
 
Quote:

Originally Posted by Mika Misori (Post 2812662)
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?

Mika Misori 11-10-2023 07:20

Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
 
Quote:

Originally Posted by HarryPotter (Post 2812730)
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.

HarryPotter 11-13-2023 09:54

Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
 
Quote:

Originally Posted by Mika Misori (Post 2812732)
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

Silvers 11-13-2023 11:20

Re: [L4D & L4D2] Left 4 DHooks Direct (1.139) [25-Oct-2023]
 
Quote:

Originally Posted by ReCreator (Post 2812679)
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.


All times are GMT -4. The time now is 11:31.

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