Raised This Month: $159 Target: $400
 39% 

CollisionHook


Post New Thread Reply   
 
Thread Tools Display Modes
fbef0102
Member
Join Date: Sep 2017
Location: TW
Old 11-18-2019 , 01: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 fbef0102; 11-18-2019 at 01:12.
fbef0102 is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Location: Methamphetamine
Old 11-18-2019 , 18: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
__________________
Heart

Last edited by BHaType; 11-18-2019 at 19:16.
BHaType is offline
Send a message via AIM to BHaType
fbef0102
Member
Join Date: Sep 2017
Location: TW
Old 11-20-2019 , 08: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 fbef0102; 11-20-2019 at 08:22.
fbef0102 is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Location: Methamphetamine
Old 11-20-2019 , 19: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
__________________
Heart
BHaType is offline
Send a message via AIM to BHaType
fbef0102
Member
Join Date: Sep 2017
Location: TW
Old 11-21-2019 , 08: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 fbef0102; 11-22-2019 at 01:14.
fbef0102 is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Black Hole
Old 11-21-2019 , 10: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
fbef0102
Member
Join Date: Sep 2017
Location: TW
Old 11-22-2019 , 01: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, 18 views)
File Type: sp Get Plugin or Get Source (test.sp - 22 views - 610 Bytes)
__________________

Last edited by fbef0102; 11-22-2019 at 01:25.
fbef0102 is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Black Hole
Old 11-22-2019 , 03: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 , 16: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: Black Hole
Old 11-22-2019 , 20: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 12:59.


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