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 06-09-2020 , 15:15   Re: [L4D & L4D2] Left 4 DHooks Direct (1.16) [05-Jun-2020]
Reply With Quote #111

Quote:
Originally Posted by Voevoda View Post
Hi Silvers

provide valid client and entity indexes when using Natives?
Means you should check IsClientInGame() or IsValidEntity() before passing that entity index into the native. The plugin won't do this and will error if you pass an invalid entity index. Most of the time you'll probably already have checked or from events got a valid entity index anyway. But some plugins for example https://forums.alliedmods.net/showpo...0&postcount=70 those using OnFindScavengeItem were storing the entity index in an array and never validating they were still legit (should have been using EntIndexToEntRef and EntRefToEntIndex) before passing into the native/forward. I added a check within OnFindScavengeItem because so many were reporting errors from various plugins. But others have no checks.



Quote:
Originally Posted by Lux View Post
offset 528 looks to be correct for linux, i think silvers forgot about padding.
Padding? I put the offsets wrong way round? Both 528?
__________________

Last edited by Silvers; 06-10-2020 at 01:36.
Silvers is offline
timonenluca
Member
Join Date: Apr 2020
Location: Europe
Old 06-13-2020 , 09:49   Re: [L4D & L4D2] Left 4 DHooks Direct (1.15) [15-May-2020]
Reply With Quote #112

Quote:
Originally Posted by Silvers View Post
No one ever donated to me when I had the links up, I've put 1000s of hours into scripting for L4D/2.
That is quite sad? Is that why you removed the links?

I almost see no'one around here with a "donate link" Compared to twitch :S
timonenluca is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 06-13-2020 , 11:42   Re: [L4D & L4D2] Left 4 DHooks Direct (1.16) [05-Jun-2020]
Reply With Quote #113

Quote:
Originally Posted by Silvers View Post
Padding? I put the offsets wrong way round? Both 528?
Not checked windows but linux def looks to be 528.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-16-2020 , 01:09   Re: [L4D & L4D2] Left 4 DHooks Direct (1.16a) [16-Jun-2020]
Reply With Quote #114

@fbef0102 and @Lux: Thanks. The offset should be 528 because it's reading into an entity array thingy. I put 132 (which is 528/4) because IDA showed 132, but that was an erroneous decompile and the hex actually showed 528. I just didn't think or look long enough to see the mistake. Have updated the plugin with the correct value. Please let me know if this fixes the problem. @timonenluca also reported issues with "l4d2_horde_equaliser" but those seem to stem from elsewhere even with the correct offset the horde value was reported as 0. I've not looked into it.
__________________
Silvers is offline
BloodyBlade
Senior Member
Join Date: Feb 2018
Old 06-23-2020 , 11:55   Re: [L4D & L4D2] Left 4 DHooks Direct (1.16a) [16-Jun-2020]
Reply With Quote #115

Hi Silvers. Please, change this:
Code:
native int L4D2_AreTeamsFlipped();
to:
Code:
native bool L4D2_AreTeamsFlipped();
in left4dhooks.inc
In plugins, this native is requested as: bool, and accordingly, the compiler throws an error: tag mismatch.

Last edited by BloodyBlade; 06-23-2020 at 11:58.
BloodyBlade is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-23-2020 , 12:06   Re: [L4D & L4D2] Left 4 DHooks Direct (1.16a) [16-Jun-2020]
Reply With Quote #116

Thanks, will do.
__________________
Silvers is offline
Alex101192
Senior Member
Join Date: Aug 2018
Old 06-26-2020 , 04:09   Re: [L4D & L4D2] Left 4 DHooks Direct (1.16a) [16-Jun-2020]
Reply With Quote #117

Can anyone convert this plugin from using downtown to using this one?

https://forums.alliedmods.net/showthread.php?p=2286609
Alex101192 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-26-2020 , 06:42   Re: [L4D & L4D2] Left 4 DHooks Direct (1.16a) [16-Jun-2020]
Reply With Quote #118

Theres nothing to convert, the plugin will work as is with left4downtown or left4dhooks.
__________________
Silvers is offline
Alex101192
Senior Member
Join Date: Aug 2018
Old 06-26-2020 , 08:38   Re: [L4D & L4D2] Left 4 DHooks Direct (1.16a) [16-Jun-2020]
Reply With Quote #119

Quote:
Originally Posted by Silvers View Post
Theres nothing to convert, the plugin will work as is with left4downtown or left4dhooks.
Wrong. This plugin does not work with left 4 DHooks Direct. Tested by me.
Alex101192 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 06-26-2020 , 08:55   Re: [L4D & L4D2] Left 4 DHooks Direct (1.16a) [16-Jun-2020]
Reply With Quote #120

Quote:
Originally Posted by Alex101192 View Post
Wrong. This plugin does not work with left 4 DHooks Direct. Tested by me.
Wrong. Tested by me.

__________________
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 04:40.


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