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

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 11-28-2021 , 10:25   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #871

Quote:
Originally Posted by Chdata View Post
Has there been some sort of breaking change with this transition?

An old plugin of mines that used to work seems to be causing crashes now.
Quote:
Originally Posted by Peace-Maker View Post
DHooks is now included with SourceMod 1.11.6820. Previous versions are unsupported.


Please use SourceMod's issue tracker on GitHub for any new issues.


The merged version includes additional changes that weren't released in a new version yet.
Changelog 1.11.6820:
  • Added new native "DHookParam.GetAddress" to get the address of a pointer parameter. (Thanks LuqS #24)
  • Fix error reporting on invalid entity (Thanks FortyTwoFortyTwo #25)
paulo_crash is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 11-28-2021 , 14:44   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #872

Quote:
Originally Posted by nosoop View Post
The binaries on the vtable dumper are from October; there was a breaking change in the CBaseEntity vtable in the middle of November.

The correct offsets for CBaseEntity::IsDeflectable() are 155 on Windows and 156 on Linux / Mac.
Interesting, I didn't think it'd end up out-of-date for so long for some reason.

Then what does redownloading the server binary on that site every time actually do? XD

Quote:
Originally Posted by paulo_crash View Post
snip
Thanks, but I already read the front page. That doesn't tell me anything.

The two things you quoted aren't listed as breaking changes and I don't think it'd be appropriate for me to make a GitHub issue about my side plugin?

Come to think of it I don't have reason to conclude whether or not the crashing is specifically because of my plugin, or something with DHooks when my plugin runs, but I think I do have at least one other DHooks plugin that is fine... maybe. I forget if I was using DHooks for anything else at all that could tell me where the problem is fully isolated to.


edit: Tried the updated offsets nosoop posted, now my plugin works fine. I guess it was just that lol.
__________________

Last edited by Chdata; 11-28-2021 at 15:01.
Chdata is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-05-2022 , 06:57   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #873

Dhooks included sm1.11.6820?
im running 1.11.0.6825
does i need change reference or recompile?
Code:
] sm version
 SourceMod Version Information:
    SourceMod Version: 1.11.0.6825
    SourcePawn Engine: 1.11.0.6825, jit-x86 (build 1.11.0.6825)
    SourcePawn API: v1 = 5, v2 = 16
    Compiled on: Nov 23 2021 07:40:46
    Built from: https://github.com/alliedmodders/sourcemod/commit/4e3df763
    Build ID: 6825:4e3df763
    http://www.sourcemod.net/
__________________

Last edited by NoroHime; 01-05-2022 at 07:09.
NoroHime is offline
laurauwu
Member
Join Date: Feb 2022
Location: Curitiba / PR - Brazil
Old 02-27-2022 , 00:49   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #874

PHP Code:
L 02/27/2022 02:30:46SourceMod error session started
L 02
/27/2022 02:30:46Info (map "c10m1_caves") (file "/home/ogp_agent/OGP_User_Files/whmcs/2415/left4dead2/addons/sourcemod/logs/errors_20220227.log")
L 02/27/2022 02:30:46: [DHOOKS] Function "ForEachSurvivor<ClosestSurvivorDistanceScan>" doesn't have a "signature", "offset" nor "address" set: line: 41 col: 4
L 02/27/2022 - 02:30:56: Error log file session closed. 
Whenever the server starts, I need to use a plugin to change the map, the only error that appears is this... The bots don't move if I enter as infected, if they die, the round is infinite, it never ends, the the only solution is to change the map.. My server is versus, with everything updated.. I decided to post it because I think it can help

(Note: I already downloaded the https://forums.alliedmods.net/showthread.php?t=336328 and it can't be resolved)
laurauwu is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-27-2022 , 03:40   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #875

laurauwu, because "#default" section missing "ForEachSurvivor<ClosestSurvivorDistanceScan> " signature.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 02-27-2022 , 16:45   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #876

You're on a linux server and the gamedata only supports that function on windows. The scope of the "windows" subsection is off causing it to still parse on linux, but not setting any attributes and triggering that error.

Code:
"ForEachSurvivor<ClosestSurvivorDistanceScan>"
{
	"windows"
	{
		"signature"			"ForEachSurvivor<ClosestSurvivorDistanceScan>"
		"callconv"			"cdecl"
		"return"			"bool"
		"arguments"
		{
			"a1"
			{
				"type"		"int"
			}
		}
	}
}
__________________
Peace-Maker is offline
laurauwu
Member
Join Date: Feb 2022
Location: Curitiba / PR - Brazil
Old 03-12-2022 , 22:21   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #877

Code:
dhooks.ext.so!Callback_float(DHooksCallback*, void**) [vhook.cpp:552 + 0x0]
// New Crash
dhooks.ext.so!CHook::SetReturnAddress(void*, void*) [new_allocator.h:115 + 0x5]


https://crash.limetech.org/tse2kzv4rbp7
https://crash.limetech.org/p2mn2ykcotwh

Help???

Last edited by laurauwu; 03-12-2022 at 22:42.
laurauwu is offline
CosmicD
Senior Member
Join Date: Dec 2009
Location: Hasselt, Belgium
Old 04-06-2022 , 05:34   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #878

so if I install 1.11 does "left 4 dhooks direct" become obsolete? or how do I have to understand this? Are there plugins that will break?
__________________
CosmicD is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 04-06-2022 , 07:58   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #879

Quote:
Originally Posted by CosmicD View Post
so if I install 1.11 does "left 4 dhooks direct" become obsolete?
No, l4dhooks direct requires dhooks (the extension). As of SM 1.11.6820 the extension that you would have to install manually is now part of sourcemod that means you don't have to install dhooks manually. This has nothing to do with L4DHooks Direct.

Last edited by xerox8521; 04-06-2022 at 07:59.
xerox8521 is offline
CosmicD
Senior Member
Join Date: Dec 2009
Location: Hasselt, Belgium
Old 04-11-2022 , 11:08   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #880

thx..

Was confused that it's one and the same.
__________________
CosmicD 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 11:12.


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