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
Busrodah
New Member
Join Date: Mar 2022
Old 06-13-2023 , 09:58   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #921

Hello everyone. Does anyone know what's causing this error to show up? I've reinstalled sourcemod and Dhooks but it's still coming up with this error.

Code:
[SM] Unable to load plugin "left4dhooks.smx": Native "DHookParam.GetAddress" was not found
Busrodah is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-13-2023 , 14:25   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #922

Are you using SourceMod 1.11 and did you upgrade the extensions too replacing the old DHooks with the one from SM 1.11?
__________________

Last edited by Silvers; 06-13-2023 at 14:26.
Silvers is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-19-2023 , 01:49   Re: [L4D & L4D2] Left 4 DHooks Direct (1.133) [19-Jun-2023]
Reply With Quote #923

Code:
1.133 (19-Jun-2023)
    - Added details to some natives explaining they can only be used 1 frame after "OnMapStart" due to pointers being unavailable before. Thanks to "HarryPotter" for reporting.
    - Added an error log when certain natives are used before before "OnMapStart" instead of an ambiguous error about invalid offsets.
    - Added "POINTER_MISSIONINFO" enum for the "L4D_GetPointer" native to return the MissionInfo pointer.
    - Added native "L4D_FindUseEntity" to find a valid Use entity. This was added to find a valid target within the "L4D1_FirstAidKit_StartHealing" and "L4D2_BackpackItem_StartAction" pre hook forwards.
    - Added natives "L4D_ForceHunterVictim", "L4D_ForceSmokerVictim" and "L4D2_ForceJockeyVictim" to pin specific Special Infected on specific Survivors.
    - Added natives "L4D_Hunter_ReleaseVictim", "L4D_Smoker_ReleaseVictim" and "L4D2_Charger_EndCarry" to release pinned victims.
    - Changed forwards "L4D2_BackpackItem_StartAction", "L4D2_BackpackItem_StartAction_Post" and "L4D2_BackpackItem_StartAction_PostHandled" to include a weapon type param.
    - Changed native "L4D2_UseAdrenaline" adding an optional param to fire the related event. Also fixed max health to use the true value instead of hard coding to 100. Thanks to "Eyal282" for reporting.
    - Changed native "L4D_IsMissionFinalMap" adding an optional param to support custom maps with multiple finales to return true if the "env_outtro_stats" entity is detected but not technically the last map.
    - Changed native "L4D2_NavAreaBuildPath" to block being called before OnMapStart, to fix any related crashes while TheNavArea is not initialized. Thanks to "Mika Misori" for reporting.
    - Changed native "L4D_IsInLastCheckpoint" code, to prevent teleporting Survivors on some 3rd party maps. Thanks to "tRololo312312" for reporting.
    - Explanation: calling "TerrorNavMesh::GetLastCheckpoint" would otherwise teleport players to that finale position, for some reason.
    - Fixed native "L4D2Direct_GetSIClassDeathTimer" returning the timer for the wrong Special Infected and errors when checking Chargers. Thanks to "PencilMario" for reporting.

    - Updated "left4dhooks_lux_library" include file, fixing the "Terror_GetAdrenalineTime" stock to check for adrenaline being active. Thanks to "Lux" for changes and "Eyal282" 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/include/left4dhooks_lux_library.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; 06-19-2023 at 01:50.
Silvers is offline
Forgetest
Member
Join Date: Aug 2020
Old 06-19-2023 , 09:06   Re: [L4D & L4D2] Left 4 DHooks Direct (1.133) [19-Jun-2023]
Reply With Quote #924

Could you please add the following CDirectorSurvivalMode stuff? Appreciate a lot.

Code:
"Games"
{
	"left4dead2"
	{
		"Offsets"
		{
			"SurvivalModePtr" // Address
			{
				"windows"		"1600"
				"linux"			"1600"
			}
			
			/**
			 * Search string "#Survival_Spawn_Start_Warning"
			 * Used in-game to count down till holdout starts
			 *
			 * CountdownTimer::Now((CDirectorSurvivalMode *)((char *)this + 68));
			 */
			"L4D2CountdownTimer_SurvivalSetupTimer" // CountdownTimer
			{
				"windows"		"68"
				"linux"			"68"
			}
			
			/**
			 * Search string "#Survival_Spawn_Start_Warning"
			 * Used in-game to notify players the remaining time before holdout starts
			 * 
			 * Vscript entry: "DirectorOptions.SurvivalSetupTime"
			 * ConVar: "director_survival_setup_time"
			 *
			 * .text:008AF615   sub     dword ptr [ebx+9Ch], 0Ah
			 */
			"CDirectorSurvivalMode::m_iSetupNotifyTime" // integer
			{
				"windows"		"156"
				"linux"			"156"
			}
		}
	}
}
Edit: Seems not existing in L4D1.

Last edited by Forgetest; 06-19-2023 at 09:09.
Forgetest is offline
yabi
Senior Member
Join Date: Jun 2021
Location: Taiwan
Old 06-21-2023 , 02:15   Re: [L4D & L4D2] Left 4 DHooks Direct (1.133) [19-Jun-2023]
Reply With Quote #925

L 06/21/2023 - 166:05: SourceMod error session started
L 06/21/2023 - 166:05: Info (map "c2m1_highway") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\error s_20230621.log")
L 06/21/2023 - 166:05: [left4dhooks.smx] Native L4D2_GetSurvivorSetMap should not be used before OnMapStart, please report to 3rd party plugin author.
L 06/21/2023 - 166:19: Error log file session closed.
L 06/21/2023 - 166:20: SourceMod error session started
L 06/21/2023 - 166:20: Info (map "redtide_01_alleyways") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\error s_20230621.log")
L 06/21/2023 - 166:20: [left4dhooks.smx] Native L4D2_GetSurvivorSetMap should not be used before OnMapStart, please report to 3rd party plugin author.
L 06/21/2023 - 16:45:05: Error log file session closed.
L 06/21/2023 - 16:45:06: SourceMod error session started
L 06/21/2023 - 16:45:06: Info (map "redtide_02_condo") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\error s_20230621.log")
L 06/21/2023 - 16:45:06: [left4dhooks.smx] Native L4D2_GetSurvivorSetMap should not be used before OnMapStart, please report to 3rd party plugin author.
L 06/21/2023 - 16:58:29: Error log file session closed.
L 06/21/2023 - 16:580: SourceMod error session started
L 06/21/2023 - 16:580: Info (map "redtide_03_carshow") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\error s_20230621.log")
L 06/21/2023 - 16:580: [left4dhooks.smx] Native L4D2_GetSurvivorSetMap should not be used before OnMapStart, please report to 3rd party plugin author.
L 06/21/2023 - 17:26:53: Error log file session closed.
L 06/21/2023 - 17:26:55: SourceMod error session started
L 06/21/2023 - 17:26:55: Info (map "redtide_04_retirementhome") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\error s_20230621.log")
L 06/21/2023 - 17:26:55: [left4dhooks.smx] Native L4D2_GetSurvivorSetMap should not be used before OnMapStart, please report to 3rd party plugin author.
L 06/21/2023 - 179:23: Error log file session closed.
L 06/21/2023 - 179:24: SourceMod error session started
L 06/21/2023 - 179:24: Info (map "redtide_05_beachfront") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\error s_20230621.log")
L 06/21/2023 - 179:24: [left4dhooks.smx] Native L4D2_GetSurvivorSetMap should not be used before OnMapStart, please report to 3rd party plugin author.
L 06/21/2023 - 17:49:18: Error log file session closed.
L 06/21/2023 - 17:49:19: SourceMod error session started
L 06/21/2023 - 17:49:19: Info (map "redtide_01_alleyways") (file "C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\error s_20230621.log")
L 06/21/2023 - 17:49:19: [left4dhooks.smx] Native L4D2_GetSurvivorSetMap should not be used before OnMapStart, please report to 3rd party plugin author.

Last edited by yabi; 06-21-2023 at 05:52. Reason: ok
yabi is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 06-21-2023 , 08:35   Re: [L4D & L4D2] Left 4 DHooks Direct (1.133) [19-Jun-2023]
Reply With Quote #926

Quote:
Originally Posted by yabi View Post
L 06/21/2023 - 166:05: [left4dhooks.smx] Native L4D2_GetSurvivorSetMap should not be used before OnMapStart, please report to 3rd party plugin author.
Yabi, unfortunately, these informational messages do not indicate which plugin is misbehaving. You will need to do some investigation to find which plugin has the problem. That is, you have a plugin that is using L4D2_GetSurvivorSetMap before OnMapStart (for example, in OnPluginStart or OnMapInit) and that is what needs to be fixed.
Mystik Spiral is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-21-2023 , 13:16   Re: [L4D & L4D2] Left 4 DHooks Direct (1.133) [19-Jun-2023]
Reply With Quote #927

Quote:
Originally Posted by Mystik Spiral View Post
Yabi, unfortunately, these informational messages do not indicate which plugin is misbehaving. You will need to do some investigation to find which plugin has the problem. That is, you have a plugin that is using L4D2_GetSurvivorSetMap before OnMapStart (for example, in OnPluginStart or OnMapInit) and that is what needs to be fixed.
Will fix next update so it throws the stack error.
__________________
Silvers is offline
BRU7US
Member
Join Date: Jul 2020
Location: Tatarstan, Kazan
Old 06-24-2023 , 07:38   Re: [L4D & L4D2] Left 4 DHooks Direct (1.133) [19-Jun-2023]
Reply With Quote #928

Could you explain under what conditions the L4D2_IsInQueuedPummel and all other QueuedPummel related stocks work?

For example, in coop mode at the moment when Charger (bot) grabbed me and hit me on the ground I try to check the condition L4D2_IsInQueuedPummel(chargerID), but it returns false. The other conditions also return indexes -1 or timestamp -1.00

Left4DHooks updated to version 1.133
BRU7US is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 06-24-2023 , 08:02   Re: [L4D & L4D2] Left 4 DHooks Direct (1.133) [19-Jun-2023]
Reply With Quote #929

Quote:
Originally Posted by BRU7US View Post
Could you explain under what conditions the L4D2_IsInQueuedPummel and all other QueuedPummel related stocks work?

For example, in coop mode at the moment when Charger (bot) grabbed me and hit me on the ground I try to check the condition L4D2_IsInQueuedPummel(chargerID), but it returns false. The other conditions also return indexes -1 or timestamp -1.00

Left4DHooks updated to version 1.133
Queued pummel is when Chargers stop running and are about to start pummeling their victims. Basically after the "charger_charge_end" event and before the "charger_pummel_start" one are fired so... in the middle between those two events.

Last edited by cravenge; 06-24-2023 at 08:05.
cravenge is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 06-24-2023 , 20:04   Re: [L4D & L4D2] Left 4 DHooks Direct (1.133) [19-Jun-2023]
Reply With Quote #930

Quote:
Originally Posted by Silvers View Post
Will fix next update so it throws the stack error.
LogStackTrace may work?

PHP Code:
L 06/25/2023 08:05:17: [SMStack trace requestedNative L4D2_GetSurvivorSetMap should not be used before OnMapStartplease report to 3rd party plugin author.
L 06/25/2023 08:05:17: [SMCalled fromleft4dhooks.smx
L 06
/25/2023 08:05:17: [SMCall stack trace:
L 06/25/2023 08:05:17: [SM]   [0LogStackTrace
L 06
/25/2023 08:05:17: [SM]   [1Line 743l4dd\l4dd_natives.sp::Native_CTerrorGameRules_GetSurvivorSetMap
L 06
/25/2023 08:05:17: [SM]   [3L4D2_GetSurvivorSetMap
L 06
/25/2023 08:05:17: [SM]   [4Line 251d:\Github\scripting_1.11\l4d_h_csm.sp::OnMapStart 
__________________

Last edited by HarryPotter; 06-24-2023 at 20:06.
HarryPotter 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:01.


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