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
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 05-25-2023 , 12:06   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #901

Quote:
Originally Posted by WinterLady View Post
Hello! I'm trying to use SetCampaignScores signature, and I'm getting this error:

Code:
[2023-05-25 17:43:48]: L 05/25/2023 - 15:43:48: [SM] Exception reported: VersusModePtr not available (NIX/2/1.130).
Please help :'(
update
(1.132) [25-May-2023]
__________________

Last edited by HarryPotter; 05-25-2023 at 12:06.
HarryPotter is offline
amazingzeal
Junior Member
Join Date: Jul 2021
Old 05-25-2023 , 15:16   Re: [L4D & L4D2] Left 4 DHooks Direct (1.131) [25-May-2023]
Reply With Quote #902

Quote:
Originally Posted by Silvers View Post
If you mean it doesn't compile, I just tested.

PHP Code:
HookEvent("player_spawn"event_PlayerSpawnEventHookMode); 
Should be changed to:

PHP Code:
HookEvent("player_spawn"event_PlayerSpawnEventHookMode_Post); 
Other than that, I don't see why it wouldn't work, if you can elaborate on the reasons for it not working maybe it can be fixed.
It's not that it doesn't work, its that the save feature is now non-functional. Once switching to SM 1.11, the upgrades you earn don't persist between levels. It's not really a problem with your plugin. Again, thank you for the reply.

Last edited by amazingzeal; 05-25-2023 at 15:26.
amazingzeal is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-25-2023 , 15:28   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #903

Did you follow the instructions for upgrading SourceMod? Maybe you overwrote the database config so it no longer has access to MySql. There shouldn't be any difference running the plugin on 1.10 or 1.11.
__________________
Silvers is offline
amazingzeal
Junior Member
Join Date: Jul 2021
Old 05-25-2023 , 15:33   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #904

Quote:
Originally Posted by Silvers View Post
Did you follow the instructions for upgrading SourceMod? Maybe you overwrote the database config so it no longer has access to MySql. There shouldn't be any difference running the plugin on 1.10 or 1.11.
I redid the database config for it. Still nothing.
amazingzeal is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-26-2023 , 00:53   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #905

In case you don't see it, I posted an update for the "Survivor Upgrades Reloaded" plugin to support SM 1.11: https://forums.alliedmods.net/showpo...&postcount=208
__________________
Silvers is offline
Frank.Stone
Junior Member
Join Date: Jul 2021
Location: TPHCM
Old 05-26-2023 , 13:24   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #906

Hello Silver after i'm update dhook 1.132
L 05/27/2023 - 00:21:47: SourceMod error session started
L 05/27/2023 - 00:21:47: Info (map "c2m1_highway") (file "D:\Dedicated Server Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 30527.log")
L 05/27/2023 - 00:21:47: [left4dhooks.smx] Failed to find "SpawnTimer" offset (WIN/2/1.130).

Last edited by Frank.Stone; 05-26-2023 at 13:28.
Frank.Stone is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-26-2023 , 13:43   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #907

Your left4dhooks isn't updated, it's still 1.130.
__________________
Silvers is offline
49459317
Junior Member
Join Date: May 2021
Location: Sichuan
Old 05-26-2023 , 15:52   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #908

Thank you very much Silvers,It's running normally!
49459317 is offline
BRU7US
Member
Join Date: Jul 2020
Location: Tatarstan, Kazan
Old 05-27-2023 , 06:24   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #909

Code:
- Added forwards "L4D2_BackpackItem_StartAction", "L4D2_BackpackItem_StartAction_Post" and "L4D2_BackpackItem_StartAction_PostHandled" to control first aid kit duration, defibrillator and other use durations.
Forward:

PHP Code:
// L4D2 only. Called when a player is using an item and about to use it
forward Action L4D2_BackpackItem_StartAction(int clientint entity); 
Could you please explain how to control the duration of use in this forward?
BRU7US is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 05-27-2023 , 06:34   Re: [L4D & L4D2] Left 4 DHooks Direct (1.132) [25-May-2023]
Reply With Quote #910

The demonstration is already in the test plugin, as with all natives and forwards.

Note: the L4D2_BackpackItem_StartAction* forwards function heading prototypes will change next release to include the type as an ID instead of 3rd party plugins having to pull the string classname and compare.
__________________
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 06:42.


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