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

[L4D & L4D2] Left 4 DHooks Direct (1.150) [06-May-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
king kong
Member
Join Date: Oct 2021
Old 01-12-2024 , 13:00   Re: [L4D & L4D2] Left 4 DHooks Direct (1.140) [03-Dec-2023]
Reply With Quote #1031

Quote:
Originally Posted by Forgetest View Post
PHP Code:
z_finale_spawn_mob_safety_range          600      : , "sv""cheat"  
z_finale_spawn_safety_range              300      : , "sv""cheat"  
z_finale_spawn_tank_safety_range         600      : , "sv""cheat" 
Try lowering these values.



Shares nothing common, so pick what you need.

Ok, thanks
king kong is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-12-2024 , 14:06   Re: [L4D & L4D2] Left 4 DHooks Direct (1.142) [12-Jan-2024]
Reply With Quote #1032

Code:
1.142 (12-Jan-2024)
    - Fixed the last update breaking on Linux servers. Thanks to "Hawkins" for reporting and testing.

    - Updated: "/gamedata/l4dd/left4dhooks.l4d1.txt" GameData file.
    - Updated: "/gamedata/l4dd/left4dhooks.l4d2.txt" GameData file.
    - Updated: "/scripting/l4dd/l4dd_gamedata.sp" project file.
__________________
Silvers is offline
yongeni
New Member
Join Date: Feb 2023
Old 01-22-2024 , 04:18   Re: [L4D & L4D2] Left 4 DHooks Direct (1.142) [12-Jan-2024]
Reply With Quote #1033

Recently I have noticed that my server memory has gone up quite a bit, and handles has not found any plug-ins that are out of memory. So I tested it individually. Clean platform test with 1.11_6906. It is found that each time the left4dhooks changes chapters and graphs, the memory size increases by 0.1-0.3M. If more plug-ins rely on the left4dhooks, the memory size increases by 1-3M each time the Left4dhooks changes graphs. After my server has been played and runs stably for 10 hours, 800M memory can be added from the original 400M memory. What's going on here?
yongeni is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 01-22-2024 , 20:57   Re: [L4D & L4D2] Left 4 DHooks Direct (1.142) [12-Jan-2024]
Reply With Quote #1034

Hi @Silvers! I noticed a lot of errors like the following (running L4D2 on Ubuntu Linux 22.04.3 LTS):

Code:
L 01/22/2024 - 19:37:15: SourceMod error session started
L 01/22/2024 - 19:37:15: Info (map "c11m3_garage") (file "/home/l4d2test/serverfiles/left4dead2/addons/sourcemod/logs/errors_20240122.log")
L 01/22/2024 - 19:37:15: [SM] Exception reported: Invalid private forward handle 0 (error 4)
L 01/22/2024 - 19:37:15: [SM] Blaming: left4dhooks.smx
L 01/22/2024 - 19:37:15: [SM] Call stack trace:
L 01/22/2024 - 19:37:15: [SM]   [0] PrivateForward.RemoveAllFunctions
L 01/22/2024 - 19:37:15: [SM]   [1] Line 962, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::OnMapEnd
L 01/22/2024 - 19:37:16: [SM] Exception reported: Invalid private forward handle 0 (error 4)
L 01/22/2024 - 19:37:16: [SM] Blaming: left4dhooks.smx
L 01/22/2024 - 19:37:16: [SM] Call stack trace:
L 01/22/2024 - 19:37:16: [SM]   [0] PrivateForward.RemoveAllFunctions
L 01/22/2024 - 19:37:16: [SM]   [1] Line 1044, C:\Servers\L4D2\left4dead2\addons\sourcemod\scripting\left4dhooks.sp::OnNotifyPluginUnloaded
I have these plugins loaded:

Code:
sm plugins list
[SM] Listing 24 plugins:
  01 "Basic Comm Control" (1.11.0.6952) by AlliedModders LLC
  02 "Basic Chat" (1.11.0.6952) by AlliedModders LLC
  03 "Player Commands" (1.11.0.6952) by AlliedModders LLC
  04 "Sound Commands" (1.11.0.6952) by AlliedModders LLC
  05 "Basic Votes" (1.11.0.6952) by AlliedModders LLC
  06 "[L4D & L4D2] Survivor Shove" (1.5) by SilverShot
  07 "Admin File Reader" (1.11.0.6952) by AlliedModders LLC
  08 "L4D2 Health Glows" (1.0.3.1) by Buster "Mr. Zero" Nielsen
  09 "[L4D & L4D2] Spray Block" (1.0a) by Mystik Spiral
  10 "Client Preferences" (1.11.0.6952) by AlliedModders LLC
  11 "[L4D & L4D2] Reverse Friendly-Fire" (2.8.5) by Mystic Spiral
  12 "Source Scramble Manager" (1.2.0) by nosoop
  13 "[L4D & L4D2] Left 4 DHooks Direct" (1.142) by SilverShot
  14 "Map Change" (1.4) by Alex Dragokas, fdxx, sorallll, little_froy
  15 "[L4D & L4D2] Enforce Gametypes" (1.4) by Mystik Spiral
  16 "Basic Ban Commands" (1.11.0.6952) by AlliedModders LLC
  17 "Basic Commands" (1.11.0.6952) by AlliedModders LLC
  18 "Basic Info Triggers" (1.11.0.6952) by AlliedModders LLC
  19 "Admin Menu" (1.11.0.6952) by AlliedModders LLC
  20 "[L4D2] Healing Alternative" (1.0) by Mystik Spiral
  21 "Restart Without Change Level" (1.5) by IA/NanaNana
  22 "Anti-Flood" (1.11.0.6952) by AlliedModders LLC
  23 "[L4D & L4D2] Detonation Control" (1.0) by Mystik Spiral
  24 "Admin Help" (1.11.0.6952) by AlliedModders LLC
I was going to also provide the output from "meta list" and noticed I still had L4DToolz loaded (recently loaded on test system), version 1.1.0.2 from Accelerator74. Since I decided not to use it, I removed it and re-tested. The errors, and there were a lot of them, all went away. I am not sure what caused the issue, but it was definitely some kind of conflict/problem between left4dhooks and l4dtoolz. I did not test with the original 1.0.0.9h version from ivailosp. I hope that helps determine whether there is an issue with your plugin.
__________________
Mystik Spiral is online now
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-22-2024 , 23:09   Re: [L4D & L4D2] Left 4 DHooks Direct (1.142) [12-Jan-2024]
Reply With Quote #1035

Quote:
Originally Posted by yongeni View Post
Recently I have noticed that my server memory has gone up quite a bit, and handles has not found any plug-ins that are out of memory. So I tested it individually. Clean platform test with 1.11_6906. It is found that each time the left4dhooks changes chapters and graphs, the memory size increases by 0.1-0.3M. If more plug-ins rely on the left4dhooks, the memory size increases by 1-3M each time the Left4dhooks changes graphs. After my server has been played and runs stably for 10 hours, 800M memory can be added from the original 400M memory. What's going on here?
I would have suspected by now others to also report this. I suspect it's something caused by other plugins, possibly certain game functions that themselves have memory leaks.


Quote:
Originally Posted by Mystik Spiral View Post
Hi @Silvers! I noticed a lot of errors like the following (running L4D2 on Ubuntu Linux 22.04.3 LTS):

I was going to also provide the output from "meta list" and noticed I still had L4DToolz loaded (recently loaded on test system), version 1.1.0.2 from Accelerator74. Since I decided not to use it, I removed it and re-tested. The errors, and there were a lot of them, all went away. I am not sure what caused the issue, but it was definitely some kind of conflict/problem between left4dhooks and l4dtoolz. I did not test with the original 1.0.0.9h version from ivailosp. I hope that helps determine whether there is an issue with your plugin.
That's strange removing L4DToolz would fix the error. I don't see how either would effect. The error being handle 0 suggests to me you're using SM 1.12 something. I recall seeing a change pushed forward to make INVALID_FUNCTION etc 0 instead of -1 which I assume would cause these errors unless you recompiled Left4DHooks with your current version of SM. I suggest either using the latest 1.11 stable or the newest 1.12 which I think reverted those changes, but I haven't had time to look through logs to confirm any of that, and possibly recompiling this plugin with the version of SM you're using and then testing with L4DToolz again.
__________________
Silvers is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 01-23-2024 , 07:57   Re: [L4D & L4D2] Left 4 DHooks Direct (1.142) [12-Jan-2024]
Reply With Quote #1036

I agree it is very strange. I am using SourceMod 1.11.0.6952 which I believe is the most current stable version. I did not recompile left4dhooks. I decided I do not need L4DToolz so for now I am not going to use it, but if I decide to try it again later, I will test with the version from ivailosp...unless you know of a better version.
__________________
Mystik Spiral is online now
ReCreator
Member
Join Date: Nov 2017
Location: Ukraine,Kyiv
Old 01-23-2024 , 20:18   Re: [L4D & L4D2] Left 4 DHooks Direct (1.142) [12-Jan-2024]
Reply With Quote #1037

Quote:
L 01/21/2024 - 18:298: [SM] Blaming: left4dhooks.smx
L 01/21/2024 - 18:298: [SM] Call stack trace:
L 01/21/2024 - 18:298: [SM] [0] SDKCall
L 01/21/2024 - 18:298: [SM] [1] Line 250, C:\Server\sm1.11\new\include\left4dhooks_lux_ library.inc::LookupAttachment
L 01/21/2024 - 18:298: [SM] [2] Line 208, C:\Server\sm1.11\new\include\left4dhooks_lux_ library.inc::GetAttachmentVectors
L 01/21/2024 - 18:298: [SM] [3] Line 1986, l4dd\l4dd_forwards.sp:TR_CTankRock_OnReleas e
L 01/21/2024 - 18:29:41: [SM] Exception reported: NULL not allowed
L4D1, Linux, sm 1.11
__________________
Sorry for my pure English...

Last edited by ReCreator; 01-23-2024 at 20:19.
ReCreator is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-25-2024 , 12:25   Re: [L4D & L4D2] Left 4 DHooks Direct (1.143) [25-Jan-2024]
Reply With Quote #1038

Code:
1.143 (25-Jan-2024)
    - Added examples for the"L4D_PipeBomb_Detonate*" forwards to the test plugin for differentiating PipeBomb and breakable prop (propane tank, oxygen tank etc) explosions.
    - Clarified forwards "L4D_PipeBomb_Detonate" notes within the include file for differentiating PipeBomb and breakable prop explosions. Thanks to "HarryPotter" for reporting.
    - Changed the Spitter Acid bug fix to play the sound from the victim, instead of from the acid source location. Thanks to "JustMadMan" for reporting.
    - Fixed forward "L4D_TankRock_OnRelease" from possibly given an invalid Tank owner index. Thanks to "Re:Creator" for reporting.
    - Fixed memory leak from clearing animation hook arrays. Thanks to "yongeni" for reporting and "HarryPotter" for fixing.

    - Updated: Plugin and test plugin.
    - Updated: "/scripting/include/left4dhooks.inc" Include file.
    - Updated: "/scripting/l4dd/l4dd_natives.sp" project file.
    - Updated: "/scripting/l4dd/l4dd_forwards.sp" project file.
__________________
Silvers is offline
bullet28
Member
Join Date: Apr 2012
Old 01-29-2024 , 11:38   Re: [L4D & L4D2] Left 4 DHooks Direct (1.143) [25-Jan-2024]
Reply With Quote #1039

Any ideas on how to prevent the bot-controlled Tank from attacking incapacitated survivors when non-incapacitated survivor is standing nearby? I've attempted to modify the attacks in L4D2_OnSelectTankAttackPre/L4D2_OnSelectTankAttack, but the damage still affects the incapacitated survivors in priority. Additionally, I tried using an attack priority plugin to exclude incapacitated survivors as targets, but nothing seems to work. It seems like this behavior is hardcoded in the AI logic, I don't know.. Or, is there a proper way to simulate a punch? If so, I could try to use it on survivors that the tank is looking at and then block the damage on incapacitated survivors

Last edited by bullet28; 01-29-2024 at 23:31.
bullet28 is offline
larrybrains
Senior Member
Join Date: May 2017
Old 01-29-2024 , 13:54   Re: [L4D & L4D2] Left 4 DHooks Direct (1.143) [25-Jan-2024]
Reply With Quote #1040

Quote:
Originally Posted by bullet28 View Post
Any ideas on how to prevent the bot-controlled Tank from attacking incapacitated survivors when it is standing on them? I've attempted to modify the attacks in L4D2_OnSelectTankAttackPre/L4D2_OnSelectTankAttack, but the damage still affects the incapacitated survivors in priority. Additionally, I tried using an attack priority plugin to exclude incapacitated survivors as targets, but nothing seems to work. It seems like this behavior is hardcoded in the AI logic, I don't know.. Or, is there a proper way to simulate a punch? If so, I could try to use it on survivors that the tank is looking at and then block the damage on incapacitated survivors
This plugin works for me on my server to prevent the bot tank from attacking incapped survivors most of the time: https://forums.alliedmods.net/showthread.php?p=2688165

I use the following setting for tank in the l4d_target_override.cfg file:

PHP Code:
    "tank"
    
{
        
"order"        "8,2,7,1,9" // Preference: lowest health survivor, vomited survivor, last attacker, normal survivor, highest health survivor.
        
"pinned"    "15"
        "incap"        "3"
        "voms"        "0"
        "voms2"        "0"
        "range"        "0.0"
        "wait"        "2.0"
        "last"        "1"
        "safe"        "0"
    

It works most of the time, but there are some cases where the above conditions still result in the tank attacking incapped survivors.
larrybrains 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 22:21.


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