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

What does the hook look like in a TextractorConfig.txt file? #307

Closed
TamaBaka opened this issue Mar 3, 2020 · 4 comments
Closed

What does the hook look like in a TextractorConfig.txt file? #307

TamaBaka opened this issue Mar 3, 2020 · 4 comments

Comments

@TamaBaka
Copy link

TamaBaka commented Mar 3, 2020

I'm playing a Mono game and the brute force method comes up with a ton of hooks, some of which cause my entire computer to freeze for several seconds.

The console mentions using a TextractorConfig.txt file in the game directory, but I wanted to know what the hook would look like. Would it be the memory address, (21b7a1db...) or would it be the function name (string:Replace (string,string))?

Can you list multiple hooks in this file too?

@Artikash
Copy link
Owner

Artikash commented Mar 3, 2020

It's the function name (spaces must match too), so string:Replace (string,string). You can only use one hook for now, but that will probably be upgraded to support multiple in a near future release.
EDIT: You can now specify more than one hook. Separate the hooks with tabs e.g.

string:Replace (string,string)	string:Substring (int,int)

(Windows Notepad might display it weird)

@TamaBaka
Copy link
Author

TamaBaka commented Mar 3, 2020

Ohhh, neat! I especially like the part where it finds the file even though I attached it to a process. This might be a useful answer in the FAQ. Lots of interesting Mono games are coming out these days.

@TamaBaka TamaBaka closed this as completed Mar 3, 2020
@Kintak
Copy link

Kintak commented Mar 16, 2020

Any estimate on when the Mono config can save multiple hooks? This would be super useful for a game I just got, but it loads all the text through 3 hooks. The brute force mode loads a bazillion hooks so it's a pain to try to sift through it every time I restart the game.
Alternatively, is there a way to add the hooks manually? When I paste what I have it just says "invalid code".

@Artikash
Copy link
Owner

It's been added in 4.11.3 - see my edited comment above.

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

3 participants