shiiion / steinsgate_textractor

Steins;Gate text extractor
39 stars 6 forks source link

Cannot run under WINE #9

Open cyphar opened 3 years ago

cyphar commented 3 years ago

I'm not sure if this is a known issue, but this tool seems to not be able to find Steins;Gate when running under Wine. I'm using the setup described in http://learnjapanese.moe/vn-linux/, and the sha256sum of my Game.exe is 06dc1aa1e8da3c0bd5f9615cf6414eb611704dffffb79c49ef48d15f78ed198a.

This is the only output:

% LC_ALL=ja_JP.UTF-8 TZ=Asia/Tokyo wine steinsgatetextractor.exe
Looking for Steins;Gate or STEINS;GATE 0 process (Game.exe)0340:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0021FB8C 1 C) semi-stub

0340:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0021F9FC 1 C) semi-stub

And then it exits with an error. If Steins;Gate is running and then you start it (either directly or through Launcher.exe), it just hangs indefinitely with no other output.

cyphar commented 3 years ago

Also it seems that the 32-bit zip file in the 1.0.1 release is actually 64-bit, so I had to use the 1.0.0 release.

% unzip ../textractor_x86.zip
Archive:  ../textractor_x86.zip
  inflating: steinsgatetextractor.exe
  inflating: mages_charset.bin
  inflating: mages_charset_steam.bin
  inflating: mpkextract.exe
% ls
mages_charset.bin  mages_charset_steam.bin  mpkextract.exe  steinsgatetextractor.exe
% file *
mages_charset.bin:        data
mages_charset_steam.bin:  data
mpkextract.exe:           PE32+ executable (console) x86-64, for MS Windows
steinsgatetextractor.exe: PE32+ executable (console) x86-64, for MS Windows
vyuuui commented 2 years ago

I couldn't get steins;gate running on linux for the life of me, but I'll give it another shot. I have a bad feeling that it'll rely on some wine black magic (or may not be possible period) to get this working if it wasn't already. Otherwise, this probably just needs to be ran through a windows VM. Apologies for the very late response, I'm guessing you've already resolved/abandoned this by now.

vyuuui commented 2 years ago

Also that was an incredibly stupid mistake of mine, I've updated the x86 build to actually be 32-bit.

natto1784 commented 1 year ago

apparently it cant attach the process and exits with error 5

darkralts commented 11 months ago

image is there any possible way for it to detect the linux process?

darkralts commented 11 months ago

@shiiion

i have heard of people getting textractor itself to work by using the same wine prefix, which it should just for me be using the default .wine, any ideas?

borbrudar commented 10 months ago

I was able to get textractor working by using these instructions: https://www.reddit.com/r/wine_gaming/comments/se2r92/trying_to_run_textractor_a_text_extractor_for_a/

Specifically:

  1. go to the game you want to play and add to the launch options "PROTON_DUMP_DEBUG_COMMANDS=1 %command%"
    1. launch the game from steam and then close it
    2. using a terminal go to /tmp/ there should be a folder named proton_[your_username]
    3. inside is a file called run, move that to your desktop "sudo mv run ~/Desktop" and rename it to what ever you want
    4. open in text editor of your choice and edit the line "DEF_CMD=" to point to where textractor.exe is located from step 0
    5. set "WINEESYNC=1" to 0
    6. add .sh to the name of the file and set as executable then launch it after launching the game

I didnt change the WINEESYNC to 0 and also i just ran the same file without changing the suffix to .sh. This allowed me to attach the game in Textractor but it still didn't texthook. I tried the same process for linking up steinsgate_textractor but then it just hangs indefinitely.

I'm running S;G from steam and I made sure to mode steinsgatetextractor.exe to the directory with the executable as well as renamed mages_charset_steam.bin to mages_charset.bin

borbrudar commented 10 months ago

Found a workaround @darkralts .Using the process described above run https://github.com/0xDC00/agent and you should be able to texthook without much trouble.

P5421135-2 commented 8 months ago

Hey everyone, it is working with wine-8.21 and detecting the linux process. No workaround is required.

darkralts commented 8 months ago

thanks ill try

On Sat, Dec 23, 2023 at 7:18 AM P5421135-2 @.***> wrote:

Hey everyone, it is working with wine-8.21 and detecting the linux process. No workaround is required.

— Reply to this email directly, view it on GitHub https://github.com/shiiion/steinsgate_textractor/issues/9#issuecomment-1868282717, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD43UG3BWJAEOUFLQLMMXF3YK3DXRAVCNFSM5BCNS44KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBWHAZDQMRXGE3Q . You are receiving this because you were mentioned.Message ID: @.***>

P5421135-2 commented 8 months ago

thanks ill try On Sat, Dec 23, 2023 at 7:18 AM P5421135-2 @.> wrote: Hey everyone, it is working with wine-8.21 and detecting the linux process. No workaround is required. — Reply to this email directly, view it on GitHub <#9 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD43UG3BWJAEOUFLQLMMXF3YK3DXRAVCNFSM5BCNS44KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBWHAZDQMRXGE3Q . You are receiving this because you were mentioned.Message ID: @.>

pic-full-231223-1236-04 Here is visual proof for you, hope it works for you all as well

wildwestrom commented 1 month ago

I can't seem to get this to work. I tried multiple different proton versions from steam, but I can't see the process.

darkralts commented 1 month ago

i got it to work by just running them both through wine, i wasnt running steins gate through steam

On Sun, Aug 4, 2024 at 3:19 AM West @.***> wrote:

I can't seem to get this to work. I tried multiple different proton versions from steam, but I can't see the process.

— Reply to this email directly, view it on GitHub https://github.com/shiiion/steinsgate_textractor/issues/9#issuecomment-2267385593, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD43UG7ZNWI6AWMOOO3TQTLZPXIZBAVCNFSM5BCNS44KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRWG4ZTQNJVHEZQ . You are receiving this because you were mentioned.Message ID: @.***>