Artikash / Textractor

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

Need hook for a VN. #970

Closed Vincent-Dawn closed 1 year ago

Vincent-Dawn commented 1 year ago

I'm having a problem hooking text for Watashi no Chichi to Otouto no Nani ga Are Sugite Komatteru. Watashi Mou Ano Ie ni Kaeritakunai. It seems to use the same interface as the Kuro Ai HD remaster which also gives minimal text or incorrect text (I do have hook code for that thanks to a document on Scribd).

I couldn't find a hook code for this game on said document or on the Visual Novel Text Hooking Wiki's new site.

Niedzielan commented 1 year ago

Quote Originally Posted by Visual Novel Text Hooking Wiki hook /HW2C:14@ at the address of wherever bytes 83 C4 04 89 85 EC F9 FF FF are in the full version (search as array of bytes in Cheat Engine).

This apparently works, but you should enable "Show static addresses using their static notation" option in the preferences of the CE's results window and use the (relative) address with exe file name, not the (absolute) hex address which can/will change next run. For example, if you're playing some Hgame.exe and found array of bytes 83 C4 04 89 85 EC F9 FF FF at address 000B3716, hook /HW2C:14@B3716 will work until you exit the game, but if you enabled static addresses, it will turn into Hgame.exe+33716 and the H-code will be /HW2C:14@33716:Hgame.exe - this one will work every time you play the game.

This works for a different game with the same interface (https://vndb.org/v28536) So I don't know if the exact array of bytes works, but it might be worth a try. For example, for the game I linked HW2C:14@34BD4A:natuiso.exe should work

Vincent-Dawn commented 1 year ago

Sorry for the late the late reply. I downloaded Cheat Engine before, I think it was to try and find a hook for a different game, but I didn't quite know how to use it. But I'll leave this question open for now and try it out for myself to see if I can get the hang of it. Thank you for the help.

Vincent-Dawn commented 1 year ago

I tired following the instructions and it kept rejecting the hooks. The engine used for this game is Pix Studio.

Niedzielan commented 1 year ago

Make sure you're running Textractor as Admin. I think I had to do that for the other game.

If I get a chance later I'll give it a try for the trial for your game (assuming there is one) and see if it works for me.

Vincent-Dawn commented 1 year ago

Is there some you can walk me through this, I'm getting a little confused about what I'm supposed to enter in Cheat Engine after attaching the game to it and why I have to open Textractor as an Admin. I tried reading the original post on anime-sharing and I didn't understand as well.

Niedzielan commented 1 year ago

Couldn't find a trial for your game, so this is how I found it for natuiso.exe:

image

Make sure the "Writable" box is a square.

Then just HW2C:14@34BD4A:natuiso.exe so if your exe is GameName.exe and address at 123ABC you'd have HW2C:14@123ABC:GameName.exe

Turns out I was wrong and you don't need Textractor as Admin - must have been one of the other things I tried that needed it. Sorry about that.

If you find an address and it's not in the form GameName.exe+123ABC, then right click in the search list (that is, somewhere in the box with the found address, not on the address itself) and click preferences, then make sure the static address notation checkbox is on. I think it should be on by default though, so you probably don't need to do anything about this.

Vincent-Dawn commented 1 year ago

Thank you for the help, the explanation you provided made a world of difference and I was able to get a hook code for the game that works (HW2C:14@3503BA:naniare.exe).