thpatch / thcrap

Touhou Community Reliant Automatic Patcher
https://www.thpatch.net
The Unlicense
558 stars 41 forks source link

New thcrap configuration program does not seem to work with 64-bit `WINEPREFIX`es anymore #153

Closed PatchMixolydic closed 2 years ago

PatchMixolydic commented 2 years ago

Running thcrap.exe produces an error message informing me that I have not installed .NET Framework 4.6.1 and to run the included script to install it. Doing so prints this:

$ ./install_dotnet461.sh
Warning: environment variable WINEPREFIX is not set. This means that the default wineprefix will be used
When installing .NET, it is recommended to do it in it's own wineprefix.
Press any key or wait 5 seconds to continue
Warning: environment variable WINEARCH is not set.
This makes wine default to running in 64-bit mode, which may cause issues.
Press any key or wait 5 seconds to continue.
Executing mkdir -p /home/patchmixolydic
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20200412 - sha256sum: 7651c93e39fcb080483c38836513bf912273a87ea97d137f6b958ed3d9628c3d with wine-6.0.1 and WINEARCH=win64
Executing w_do_call dotnet40
Executing mkdir -p /home/patchmixolydic
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_dotnet40 
------------------------------------------------------
This package (dotnet40) may not fully work on a 64-bit installation. 32-bit prefixes may work better.
------------------------------------------------------
------------------------------------------------------
dotnet40 does not yet fully work or install on wine.  Caveat emptor.
------------------------------------------------------
Current Wine does not have Wine bug 42701, so not applying workaround
Executing w_do_call remove_mono
Executing mkdir -p /home/patchmixolydic
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_remove_mono 
04b8:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
04ac:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
04b8:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
04ac:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
------------------------------------------------------
Mono does not appear to be installed.
------------------------------------------------------
Executing w_do_call winxp
Executing mkdir -p /home/patchmixolydic
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_winxp 
04c0:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
04c0:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
05cc:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
05cc:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
The operation completed successfully
Setting Windows version to winxp
Executing wine regedit C:\windows\Temp\set-winver.reg
05d4:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
05d4:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
05dc:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
05dc:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
Executing wine64 regedit C:\windows\Temp\set-winver.reg
0508:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
04c8:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
04c8:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
0508:fixme:font:get_name_record_codepage encoding 20 not handled, platform 1.
------------------------------------------------------
Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/home/patchmixolydic/.wine terminate
------------------------------------------------------

...and hangs indefinitely (no other progams are running under Wine). This is a regression from the previous thcrap_configure interface, which worked (although updates seem to be disabled now even after copying all dlls into the root thcrap directory).

I am not certain if the issue truly lies in the fact that I have a 64-bit WINEPREFIX, but from the sheer amount of warnings I'd imagine it is. This seems to be a fairly large usability issue, as I'd either have to make my default WINEPREFIX 32-bit or remember to run thcrap with a specific WINEPREFIX set.

wine --version: wine-6.0.1 Operating system: Xubuntu 20.04 uname -srv: Linux 5.4.0-86-generic #97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021

32th-System commented 2 years ago

If you want to, you can still use the old thcrap_configure. It's thcrap_configure.exe located in the bin folder (the new configure being thcrap_configure_v3.exe

PatchMixolydic commented 2 years ago

Thank you, this seems to have worked. :+1: