Artikash / Textractor

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

Repeated lines not being removed #213

Closed githubaccount101 closed 5 years ago

githubaccount101 commented 5 years ago

I'm playing an older game, Kegasareta Natsu, and it caused repeated lines on ithvnr so i tried using textractor, but to no avail.

Textractor: pipe connected Textractor: hijacking process located from 0x00400000 to 0x0041E000 Textractor: inserting hook: GetTextExtentPoint32A Textractor: inserting hook: GetTextExtentExPointA Textractor: inserting hook: GetCharacterPlacementA Textractor: inserting hook: GetGlyphIndicesA Textractor: inserting hook: GetGlyphOutlineA Textractor: inserting hook: ExtTextOutA Textractor: inserting hook: TextOutA Textractor: inserting hook: GetCharABCWidthsA Textractor: inserting hook: GetCharABCWidthsFloatA Textractor: inserting hook: GetCharWidth32A Textractor: inserting hook: GetCharWidthFloatA Textractor: inserting hook: GetTextExtentPoint32W Textractor: inserting hook: GetTextExtentExPointW Textractor: inserting hook: GetCharacterPlacementW Textractor: inserting hook: GetGlyphIndicesW Textractor: inserting hook: GetGlyphOutlineW Textractor: inserting hook: ExtTextOutW Textractor: inserting hook: TextOutW Textractor: inserting hook: GetCharABCWidthsW Textractor: inserting hook: GetCharABCWidthsFloatW Textractor: inserting hook: GetCharWidth32W Textractor: inserting hook: GetCharWidthFloatW Textractor: inserting hook: DrawTextA Textractor: inserting hook: DrawTextExA Textractor: inserting hook: TabbedTextOutA Textractor: inserting hook: GetTabbedTextExtentA Textractor: inserting hook: DrawTextW Textractor: inserting hook: DrawTextExW Textractor: inserting hook: TabbedTextOutW Textractor: inserting hook: GetTabbedTextExtentW vnreng:ShinaRio: unknown version Textractor: inserting hook: lstrlenA Textractor: inserting hook: lstrcpyA Textractor: inserting hook: lstrcpynA Textractor: inserting hook: lstrlenW Textractor: inserting hook: lstrcpyW Textractor: inserting hook: lstrcpynW Textractor: inserting hook: MultiByteToWideChar Textractor: inserting hook: WideCharToMultiByte Textractor: inserting hook: CharNextA Textractor: inserting hook: CharNextW Textractor: inserting hook: CharPrevA Textractor: inserting hook: CharPrevW Textractor: inserting hook: CharNextExA Textractor: inserting hook: CharPrevExA Textractor: inserting hook: SysAllocString Textractor: inserting hook: SysAllocStringLen Textractor: Send ERROR (likely an incorrect H-code)

Thank you

under widechar to Getmultibyte i don't have repeated lines but it comes with extra stuff

::message_clear() 女がしなやかな肢躰を折れんばかりにのけ反らせ、歓喜の声をあげて身体を震わせた。

::message_clear() 既に「恥じらい」などという言葉は彼女の頭には無かった。

::message_clear() 熱く熱を帯びた瞳はもう、己の居る場所でさえも正常に映してはいない。

::message_clear() ただ与えられる快楽に酔いしれるだけのケモノと化していた‥‥‥。

otherwise under GetGlyphOutlineW

女女がしなやかな肢躰を折れんばかりにのけ反らせ、歓喜の声をあげて身体を震わせた。

女がしなやかな肢躰を折れんばかりにのけ反らせ、歓喜の声をあげて身体を震わせた。

既に「恥じらい」などという言葉は彼女の頭には無かった。

既に「恥じらい」などという言葉は彼女の頭には無かった。

熱く熱を帯びた瞳はもう、己の居る場所でさえも正常に映してはいない。

熱く熱を帯びた瞳はもう、己の居る場所でさえも正常に映してはいない。

ただ与えられる快楽に酔いしれるだけのケモノと化していた‥‥‥。

ただ与えられる快楽に酔いしれるだけのケモノと化していた‥‥‥。

The second line isn't always identical to the first

thank you

Artikash commented 5 years ago

To get rid of the exact repeats you can use the Remove 30 Repeated Sentences extension. If having a few repeats is still too annoying, try regex filter .+\(\) and if that doesn't work tell me what it outputs (on the WideCharToMultiByte hook).

githubaccount101 commented 5 years ago

To get rid of the exact repeats you can use the Remove 30 Repeated Sentences extension. If having a few repeats is still too annoying, try regex filter .+\(\) and if that doesn't work tell me what it outputs (on the WideCharToMultiByte hook).

glyph still repeats any spoken lines

mostly good with widechar

美帆 『わぁ‥‥。』

    テニスコートまで足を運ぶと、テニスウェアに身を包んだサークルの人たちが私服の人を誘導するような感じでコート内を歩いていた。

    既に見学会は始まってしまっているようだ。

miho116.eri

美帆 (どうしよう‥‥時間に遅れちゃったから、入り辛いな)

声 『やあ、来てくれたんだね。』

miho113.eri

inaba050.eri

美帆 『あ、稲庭先輩‥‥。』

美帆 『すみません、時間に遅れてしまって‥‥‥。』

稲庭 『ついさっき始まったばかりだから、気にしなくてもいいよ。』

稲庭 『それに、これから僕が見学会の挨拶をする所なんだ。そこに紛れこんじゃえば遅れた事くらいなんてことないさ。』

美帆 『すみません‥‥。』

稲庭 『おや、あの元気な女の子は一緒じゃないんだね?』

美帆 『あ、はい。彼女、急に都合が悪くなっちゃいまして‥‥。』

稲庭 『そうか、残念だけど仕方がないね。』

美帆 (稲庭先輩にアピールしておいてって言われたけど、何をどうアピールしたらいいのか解らないよ‥‥)

稲庭 『さて、それじゃあ僕たちも見学会に混ざろうか?』

miho111.eri

美帆 『あ、はいっ。』

    先行している見学会の人たちに混ざるため、私は稲庭先輩と一緒にテニスコートの中を歩く。

just a bit strange, though i've already finished this game :P

Artikash commented 5 years ago

Regex filter [\u0021-\u0080] should do the trick if you really want it perfect.

githubaccount101 commented 5 years ago

looking good ! is there any chance that a delete option for displayed lines will be introduced?