HelpFailed to initialize NativeHooks

Posts 1–6 of 6 · Page 1 of 1
Failed to initialize NativeHooks
log of error :

Code:
[12:32:11] INIT: SudoMod
[12:32:11] DEBUG: baseAddr		 0x00007FF650B60000
[12:32:11] DEBUG: endAddr		 0x00007FF6553EFC00
[12:32:52] DEBUG: Initializing natives
[12:32:52] DEBUG: nativeHashMap has 5241 members
[12:32:52] Checking if game is ready...
[12:33:00] Game ready
[12:33:00] DEBUG: Input hook attached:  WndProc 0x00007FFA011D28D0
[12:33:00] ERROR: Failed to initialize NativeHooks
[12:33:08] CleanUp: SudoMod
[12:33:08] DEBUG: Removed input hook
[12:33:08] CleanUp: SudoMod
[12:33:08] DEBUG: Removed input hook

code for hooking :
Code:
Hooking::NativeHandler ORIG_GET_FRAME_COUNT = NULL;
void* __cdecl MY_GET_FRAME_COUNT(NativeContext *cxt)
{
	Hooking::onTickInit();
	return cxt;
}

bool Hooking::HookNatives()
{
	return true
	// native hooks	
		&& Native(0xaf48077651290fac, &MY_GET_FRAME_COUNT, &ORIG_GET_FRAME_COUNT);
}
i have the latest crossmapping so that shouldnt be the problem i guess.
i have seen the other thread with a similar problem but that shouldnt be my case since i have updated the crossmapping
Quote Originally Posted by basemas030 View Post
log of error :

Code:
[12:32:11] INIT: SudoMod
[12:32:11] DEBUG: baseAddr		 0x00007FF650B60000
[12:32:11] DEBUG: endAddr		 0x00007FF6553EFC00
[12:32:52] DEBUG: Initializing natives
[12:32:52] DEBUG: nativeHashMap has 5241 members
[12:32:52] Checking if game is ready...
[12:33:00] Game ready
[12:33:00] DEBUG: Input hook attached:  WndProc 0x00007FFA011D28D0
[12:33:00] ERROR: Failed to initialize NativeHooks
[12:33:08] CleanUp: SudoMod
[12:33:08] DEBUG: Removed input hook
[12:33:08] CleanUp: SudoMod
[12:33:08] DEBUG: Removed input hook

code for hooking :
Code:
Hooking::NativeHandler ORIG_GET_FRAME_COUNT = NULL;
void* __cdecl MY_GET_FRAME_COUNT(NativeContext *cxt)
{
	Hooking::onTickInit();
	return cxt;
}

bool Hooking::HookNatives()
{
	return true
	// native hooks	
		&& Native(0xaf48077651290fac, &MY_GET_FRAME_COUNT, &ORIG_GET_FRAME_COUNT);
}
i have the latest crossmapping so that shouldnt be the problem i guess.
i have seen the other thread with a similar problem but that shouldnt be my case since i have updated the crossmapping

show me your crossmap.cpp, pretty sure it isnt valid/updated
Quote Originally Posted by erayz0r View Post
like I expected, they aren't valid.
but i used mikes crossmap patcher on this translation table https://pastebin.com/dUQw9WP0

i am kinda confused if you could help me in the right direction, would be much appreciated.
Quote Originally Posted by basemas030 View Post
but i used mikes crossmap patcher on this translation table (PASTEBIN LINK)

i am kinda confused if you could help me in the right direction, would be much appreciated.
That translation table is from the original natives to b1103 even though it says otherwise. There would be no reason to have to use the crossmap patcher as all the originals are mapped to the latest hashes in that file.
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us