DKingAlpha / GTAHashMap

HashMap dumped for GTA 5, convert native hash to NativeRegistration hash. Necessary for nativeCall
1 stars 1 forks source link

Openvhook #1

Closed GibsonHF closed 4 years ago

GibsonHF commented 4 years ago

Hey was gonna let you know your fork of openvhook after loading .asi files loops back to scriptengine initialization thus crashing. not loading anything doesnt look but when asi is present is when this problem occurs

GibsonHF commented 4 years ago

Sorry it was trying to load scripthook therefore double loading but loading any .asi you get failed to find module error after loading

DKingAlpha commented 4 years ago

check the entry of openhookv, you can find it implemented asiloader in itself, which could be the reason of the issue you mentioned.

EDIT: openhook = scripthook + asiloader you can even static link openhookv(some code need to be fxed) to your menu so you only have one DLL one entry one piece of code to inject into the game.

GibsonHF commented 4 years ago

Oh alright, i just wasnt sure. i tried to load nativetrainer and menyoo with your fork after this small update 1868_1 and before it worked now it just fails to load module when doing .asi loading EDIT: exapmle on latest gta update [14:13:42] Initializing... [14:13:42] Input hook attached: WndProc 0x00000000FFFF0635 [14:13:42] Initializing ScriptEngine... [14:13:45] scrThreadCollection 0x00007FF7A3AA6058 (0x02D46058) [14:13:45] activeThreadTlsOffset 0x00000830 [14:14:00] scrThreadId 0x00007FF7A3AA59B8 (0x02D459B8) [14:14:21] scrThreadCount 0x00007FF7A3AA6088 (0x02D46088) [14:14:26] registrationTable 0x00007FF7A3AA51B0 (0x02D451B0) [14:14:29] g_scriptHandlerMgr 0x00007FF7A3311CA0 (0x025B1CA0) [14:14:40] gameState 0x00007FF7A2C96970 (0x01F36970) [14:14:45] g_globalPtr 0x00007FF7A3AA6190 (0x02D46190) [14:14:45] Game version #-1 [14:14:45] Initializing Pools... [14:14:46] pedPool 0x00007FF7A3210AA0 (0x024B0AA0) [14:14:48] objectPool 0x00007FF7A3237540 (0x024D7540) [14:14:50] pickupsPool 0x00007FF7A3220948 (0x024C0948) [14:14:51] vehiclePool 0x00007FF7A3579AF0 (0x02819AF0) [14:14:56] entityPool 0x00007FF7A3AA6B40 (0x02D46B40) [14:14:56] Pool Init Finished [14:14:56] Checking if game is ready... [14:14:56] Game ready [14:14:56] GtaThread collection size 189 [14:14:59] Created thread, id 73 [14:14:59] Loading *.asi plugins [14:14:59] Loading "F:\steam\steamapps\common\Grand Theft Auto V\Menyoo.asi" [14:15:01] Failed to load: The specified module could not be found.

[14:15:01] Finished loading *.asi plugins [14:15:01] Initialization finished

prior worked perfect loading menyoo

DKingAlpha commented 4 years ago

check the path of asi. looks easy.

GibsonHF commented 4 years ago

Found the problem of The specified module could not be found. Being as openvhook wasnt in gta 5 directory therefore fixing load module issue, only problem is as injecting openvhook into gta with it in gta 5 directory it tries to load openvhook twice therefore crashing. i assume just making it load only asi would be my fix