Raised This Month: $32 Target: $400
 8% 

CollisionHook


Post New Thread Reply   
 
Thread Tools Display Modes
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-18-2019 , 00:11   Re: CollisionHook
Reply With Quote #91

Quote:
Originally Posted by Spirit_12 View Post
I'm certain you can recreate the collisionhooks functionality with Dhooks Detour extension.
Dhooks 2.2.0-detours9 extension has something or codes related to collision?
That's nice!
have example or scripting tips please?
__________________

Last edited by HarryPotter; 11-18-2019 at 00:12.
HarryPotter is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 11-18-2019 , 17:37   Re: CollisionHook
Reply With Quote #92

I looked and there the signature is not correct for windows.
Try this one.

PHP Code:
\x55\x8B\xEC\x57\x8B\x7D\x0C\x85\xFF\x75 
One of the hardest signatures I've been looking for.

Edit: Works without errors

Spoiler
__________________
cry

Last edited by BHaType; 11-18-2019 at 18:16.
BHaType is offline
Send a message via AIM to BHaType
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-20-2019 , 07:14   Re: CollisionHook
Reply With Quote #93

Quote:
Originally Posted by BHaType View Post
I looked and there the signature is not correct for windows.
Try this one.
I have tested, server crash

PHP Code:
[DHOOKSFATALFailed to find return address of original function. Check the arguments and return type of your detour setup
__________________

Last edited by HarryPotter; 11-20-2019 at 07:22.
HarryPotter is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 11-20-2019 , 18:12   Re: CollisionHook
Reply With Quote #94

Quote:
Originally Posted by fbef0102 View Post
I have tested, server crash

PHP Code:
[DHOOKSFATALFailed to find return address of original function. Check the arguments and return type of your detour setup
I checked again and everything works so try reinstalling gamedata

Spoiler
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-21-2019 , 07:08   Re: CollisionHook
Reply With Quote #95

Quote:
Originally Posted by BHaType View Post
I checked again and everything works so try reinstalling gamedata
it does print line on server console, but after few seconds server crash
Spoiler
__________________

Last edited by HarryPotter; 11-22-2019 at 00:14.
HarryPotter is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 11-21-2019 , 09:13   Re: CollisionHook
Reply With Quote #96

Quote:
Originally Posted by fbef0102 View Post
[...]
Looks like a problem in the test plugin you're using.
cravenge is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-22-2019 , 00:16   Re: CollisionHook
Reply With Quote #97

Quote:
Originally Posted by cravenge View Post
Looks like a problem in the test plugin you're using.
test plugin is based on the code he pasted here
https://forums.alliedmods.net/showpo...5&postcount=92
Attached Files
File Type: txt l4dcollisionhook.txt (860 Bytes, 144 views)
File Type: sp Get Plugin or Get Source (test.sp - 163 views - 610 Bytes)
__________________

Last edited by HarryPotter; 11-22-2019 at 00:25.
HarryPotter is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 11-22-2019 , 02:37   Re: CollisionHook
Reply With Quote #98

Huh, that's strange. There's nothing wrong with how the gamedata is constructed yet the detour is somehow trying to grab something from a pointer that doesn't exist even if it's ignored. It might be a valid entity becoming invalid when that happens. I could be wrong but try adding a validity check for both entities.
cravenge is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 11-22-2019 , 15:01   Re: CollisionHook
Reply With Quote #99

That's a general problem with post-detours in dhooks. Check the paragraph about "Accessing parameter values in post-hooks" in the release post.
__________________
Peace-Maker is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 11-22-2019 , 19:15   Re: CollisionHook
Reply With Quote #100

If I can remember properly, getting/changing the parameters should be done in pre-detours right? And it goes for the same for return values in post-detours?
cravenge is offline
Reply


Thread Tools
Display Modes

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 09:16.


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