Raised This Month: $12 Target: $400
 3% 

Showing results 1 to 11 of 11
Search took 0.00 seconds.
Search: Posts Made By: Addie
Forum: Extensions 11-18-2019, 10:20
Replies: 883
Views: 693,307
Posted By Addie
Re: DHooks (Dynamic Hooks - Dev Preview)

I'm messing up strings somewhere, both szParticleName and szAttachmentName always comes up empty. Any ideas? The rest work fine.


Function being hooked (from particle_parse.cpp...
Forum: Extensions 07-08-2019, 22:33
Replies: 883
Views: 693,307
Posted By Addie
Re: DHooks (Dynamic Hooks - Dev Preview)

I'm pretty sure yes. With my detour still active, I hooked UTIL_VarArgs("kickid %d\n", int) as well, which is a unique call done by Bot_RunAll(), it fired normally.



Apologies, my only reason...
Forum: Extensions 07-08-2019, 00:25
Replies: 883
Views: 693,307
Posted By Addie
Re: DHooks (Dynamic Hooks - Dev Preview)

I am having issues with the experimental detours branch.
Game is No More Room in Hell and I'm returning MRES_Supercede on a void function.

void __cdecl Bot_RunAll( void )
The detour fires, but...
Forum: Scripting 07-07-2019, 22:51
Replies: 4
Views: 2,618
Posted By Addie
Re: [NMRiH/Any] DHooks with detours not superseding function

I don't believe DHooks expects me to set a return value on a void function. It knows it's void thanks to gamedata:

"Functions"
{
"Bot_RunAll"
{
"return" "void"
Forum: Scripting 07-07-2019, 18:33
Replies: 4
Views: 2,618
Posted By Addie
[NMRiH/Any] DHooks with detours not superseding function

I'm trying to prevent the execution of:

void __cdecl Bot_RunAll()

using DHooks with Experimental Detours.

I successfully create the detour and simply return MRES_Supercede. Code below:

...
Forum: Scripting 11-10-2018, 10:33
Replies: 9
Views: 1,971
Posted By Addie
Re: Crash on DHook detouring (dhooks.ext.dll + 0xc3e0)

Thanks for clearing that up, I'll keep it in mind for future use
Forum: Scripting 11-09-2018, 22:13
Replies: 9
Views: 1,971
Posted By Addie
Re: Crash on DHook detouring (dhooks.ext.dll + 0xc3e0)

Marking as solved as I managed to get my hands on a unique signature for the target function (thanks Ryan (https://forums.alliedmods.net/member.php?u=283719)!) This approach is no longer needed.
Forum: Scripting 11-09-2018, 19:46
Replies: 9
Views: 1,971
Posted By Addie
Re: Crash on DHook detouring

Alright bear with me, I'm still pretty new to this; If the offset doesn't go there, where should I specify it?

Thanks for the hints so far
Forum: Scripting 11-09-2018, 05:40
Replies: 9
Views: 1,971
Posted By Addie
Re: Crash on DHook detouring (dhooks.ext.dll + 0xc3e0)

Thank you, I've fixed that together with a wrong offset calculation (now 244 instead of 228)

Unfortunately, it's still crashing, now on sourcemod.logic.dll!CGameConfig::GetAddress instead:...
Forum: Scripting 11-09-2018, 04:10
Replies: 3
Views: 1,029
Posted By Addie
Re: Do something beetween 20:30 PM and 07:00 AM

Pseudo code, kinda awkward though:

#define START_TIME 20.0
#define END_TIME 7.5

void YourFunction()
{
char strHours[3]; strMinutes[3];
FormatTime(strHours, sizeof(strHours), "%H");...
Forum: Scripting 11-09-2018, 03:24
Replies: 9
Views: 1,971
Posted By Addie
Crash on DHook detouring (dhooks.ext.dll + 0xc3e0)

I'm trying to get the address to a function from its caller function, to set up a detour for it. It looks like this:

CNMRiH_GameRules::CleanAndResetMap(void) + E4 == call CEventQueue::Clear(void)...
Showing results 1 to 11 of 11

 
Forum Jump

All times are GMT -4. The time now is 08:27.


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