Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textractor crashes after attaching and searching for hooks #758

Closed
AThomas102 opened this issue Feb 18, 2022 · 6 comments
Closed

Textractor crashes after attaching and searching for hooks #758

AThomas102 opened this issue Feb 18, 2022 · 6 comments

Comments

@AThomas102
Copy link

AThomas102 commented Feb 18, 2022

The game is Phoenix Wright Ace Attorney Trilogy using Steam.
It gives this error:

Textractor ERROR

Error code: E06D7363
Error address: 761BB812
Error in module: C:\Windows\System32\KERNELBASE.dll
Additional info: 76090000
Additional info: .?AVbad_alloc@std@@
Additional info: bad allocation
Additional info: 19930520
Additional info: 5E32400
Additional info: A9B3EC

and

Textractor ERROR

Error code: C0000017
Error address: 7761D650
Error in module: C:\Windows\SYSTEM32\ntdll.dll
Additional info: 77540000
Additional info: 39353F8

@AbbelitoX
Copy link

Hey, I'm afraid I don't have a solution to your problem, but just curious to know if you've managed to find a hook for this game that works? I can't seem to find one myself, just a few very broken ones.

@AThomas102
Copy link
Author

Yes I did manage to find one, the game runs fine now.

@AbbelitoX
Copy link

That's awesome. Would you mind sharing the hook code, and any extensions you need for it to hook the text correctly? Thanks a lot!

@AThomas102
Copy link
Author

This hook works for me: 4:38A0:5CD2068:197699D5:0: string:IndexOfUnchecked (char,int,int) (HWFX4@5CD2068)
My extensions are:
remove repeated phrases
remove repeated character
remove repeated phrases 2
regex filter
trans
copy
Let me know if it works!

@AbbelitoX
Copy link

I think I got it to work - not perfectly, but at least good enough to use for Anki card creation with some manual cleaning up. Can't say I completely understand it yet, but with what seems to be called mono games(?) running Unity engine, it seems to be the function that's important, for which you supplied the string:IndexOfUnchecked (char,int,int). After some experimenting, I found that worked okay, but string;op_Equality (string,string) seems to work even better, with all the text appearing in the right order (although some extra dots may be added on certain lines. This is working thanks to the following extensions -
Regex Filter (filtering out non-japanese characters [\u0021-\u00ff])
Remove Repeated Phrases
Remove Repeated Phrases 2
Copy to Clipboard

What really made the difference after that was using the "Configure game option" so that all other functions don't run simoultaneously, which eats the processing power and renders the game unplayable. The way you do that here is by clicking configure game and then adding only "string;op_Equality (string,string)" and then saving it, as per #307

As for the hook code itself, I still have no idea how to apply those, and even if they are applicable at for Unity games. When I tried to copy your code (HWFX4@5CD2068) and add it, it just gives an error message saying something along the lines of "invalid code format". If somebody is googling this afterward, my tip is to scroll through the list of brute forced hooks until you find the string;op_Equality (string,string) function, then adding the extensions and following the above steps to find configure the game accordingly.

Thanks so much again for your help!

@AThomas102
Copy link
Author

No problem, I am happy you got it sorted!
Yes I forgot to mention to the usefulness of adding the hook to the game configuration as in #307, which helps game performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants