shiiion / steinsgate_textractor

Steins;Gate text extractor
40 stars 6 forks source link

not working, need help #1

Closed Geniusssmit closed 4 years ago

Geniusssmit commented 4 years ago

it's not working for me. Clipboard is empty. Only thing I can see is image

Geniusssmit commented 4 years ago

that's my steins gate folder image

shiiion commented 4 years ago

If you compiled debug, the signature scanner is probably taking a while. Try compiling release and running it. I realize you were sent a pre-built (presumably release) copy, see below comment.

shiiion commented 4 years ago

It's very hard to debug this without a version of your game executable, so we should move this somewhere else. Contact me through e-mail if you don't mind, and we'll sort it out there: mayansymbol@gmail.com

Geniusssmit commented 4 years ago

Sure. btw it's Steam Japanese version

shiiion commented 4 years ago

Update: Currently running but copying out text incorrectly, issues were:

  1. Searching for the process by window name can have false positives. In this case, a folder named Steins;Gate being opened will have two FindWindowA results for "Steins;Gate". Solution is to search for processes named Game.exe and query the user if they want to attach to the process discovered, or which process to attach to if >= 2 results.
  2. Newer Steam version had a different string in its .rdata section for Steins;Gate. Tested version had the result "Steins;Gate\", whereas his version had "STEINS;GATE\". Solution is to stop searching based on strings in .rdata, as they may be subject to change between versions. Searching for byte patterns in .text unique to each game to do game detection.
shiiion commented 4 years ago

The given version has a different font compared to the version this was built on. Looking for solution

shiiion commented 4 years ago

Fixed with commit a6dcb3f83ee0e4d8c78e485cc1c47423c7de0375, thanks to @Geniusssmit for slogging through the OCR-ed font page. Credit will be added in readme.