Artikash / Textractor

Extracts text from video games and visual novels. Highly extensible.
GNU General Public License v3.0
2k stars 201 forks source link

Textractor crashes when hooking to a game #1276

Open Hero-GamingZ opened 2 months ago

Hero-GamingZ commented 2 months ago

I was trying to hook a game I installed to textractor when the game begins bugging and says it can't respond, however textractor was able to hook in to the game, however I recive a notification error and textractor crashes. Is there a fix for this? And when I start up textractor again and attempt to interact with either the two the same thing happens. image_2024-04-07_205108045

image_2024-04-07_204508793

Chenx221 commented 2 months ago

@Hero-GamingZ Create a TextractorConfig.txt file in the game directory with the following content: string:Replace (string,string) Then start the game and Textractor again. 2024-04-07_220353

HIllya51 commented 2 months ago

It is because the Textractor's support of Unity is Brute Force search all functions of program and it's easy to crash the game even if add the TextractorConfig.txt. You can try use this new text hooker LunaHook which use the better method to hook the Unity game easily.

屏幕截图 2024-04-07 232700
Hero-GamingZ commented 2 months ago

It is because the Textractor's support of Unity is Brute Force search all functions of program and it's easy to crash the game even if add the TextractorConfig.txt. You can try use this new text hooker LunaHook which use the better method to hook the Unity game easily. 屏幕截图 2024-04-07 232700

Where do I put the LunaHook files?

storycoolbro commented 2 months ago

It is because the Textractor's support of Unity is Brute Force search all functions of program and it's easy to crash the game even if add the TextractorConfig.txt. You can try use this new text hooker LunaHook which use the better method to hook the Unity game easily. 屏幕截图 2024-04-07 232700

if you specify the actual hook in the config file, it will no longer initiate brute force, what I normally do once I've found the hook for a unity game is first remove all other hooks so you don't crash textractor accidently switching to one then press the save hook button with the hook you want to save as the one selected in the drop down then go to the textractor directory and open the savedhooks.txt. and each line in that file is a hook you've saved they look like this

D:\Downloads\RJ01138122\屋根裏の眠り姫\屋根裏の眠り姫.exe , |3952476:26:HW-814:-80@172E00:屋根裏の眠り姫.exe

everything after the | is what you want for the config file copy paste into config file and it should no longer initiate brute force search for unity games and thus you shouldn't have any more issues with crashing. I have only encountered 1 game where this method doesn't work due to the address where the games text is changing every time you launch the game but that was a wolfrpg game not unity if i remember right

also make sure you've updated the texthook.dll from the alpha builds archive here