Whisky icon indicating copy to clipboard operation
Whisky copied to clipboard

[Feature]: Addition of winetricks

Open K0K1-0928 opened this issue 1 year ago • 6 comments

Is your feature request related to a problem?

Currently, steamwebhelper.exe crashes when trying to launch Steam in a Japanese environment. This seems to be caused by Whisky's wine not including MS Gothic, which seems to be a common problem when using wine in Japanese. To solve this, fonts need to be added and I would like to see winetricks added to Whisky as a way to do this.

Describe the solution you'd like

The goal of this request is to be able to run winetricks cjkfonts in Whisky.

For example, if I place the msgothic.ttc file in ~/Library/Application Support/Whisky/Libraries/Wine/share/wine/fonts, Steam will start fine. However, placing msgothic.ttc is not desirable due to Microsoft conventions, so we prefer to misidentify the font with winetricks cjkfonts or similer as in conventional wine.

Anything else?

~/Library/Application Support/Whisky/Libraries/Wine/share/wine/fonts/msgothic.ttc does not exist. image

~/Library/Application Support/Whisky/Libraries/Wine/share/wine/fonts/msgothic.ttc exists. 202306291942_steam_japanese

Issue Language

  • [X] Yes my issue is written in English

K0K1-0928 avatar Jun 29 '23 10:06 K0K1-0928

The CJK issue is likely fixable with the following registry edit keyHKEY_CURRENT_USER\Software\Wine\Fonts\Replacements, value Meiryo, data Microsoft YaHei

IsaacMarovitz avatar Jun 30 '23 23:06 IsaacMarovitz

Weird, I can't recreate this issue with stock Whisky wine Screenshot 2023-07-01 at 00 17 43

IsaacMarovitz avatar Jun 30 '23 23:06 IsaacMarovitz

Unfortunately, editing the registry did not improve the situation. (We tried to Replace not only Meiryo , but also MS Gothic and MS Mincho , but failed.) If the Japanese switching is working well in your environment, it may be influenced by the language settings at the time of Bottle creation. If the bottle creation is also in Japanese, Windows inside wine will be in Japanese and require MS Gothic, like ......? I am not familiar with wine itself or the font handling within wine, so I may not be providing accurate information. My apologies, I'm not sure how to fix this. Thank you very much for your advice, it is much appreciated! image image

K0K1-0928 avatar Jul 02 '23 07:07 K0K1-0928

I think in the meantime you could run the following.

your_bottle_guid=00-00-00-00
PATH="$HOME/Library/Application Support/com.isaacmarovitz.Whisky/Libraries/Wine/bin:$PATH" \
WINE=wine64 \
WINEPREFIX="$HOME/Library/Containers/com.isaacmarovitz.Whisky/Bottles/$your_bottle_guid" \
winetricks cjkfonts

You'll need winetricks installed and on your path (I used the Homebrew one), and of course change the your_bottle_guid value to whatever the relevant folder in $HOME/Library/Containers/com.isaacmarovitz.Whisky/Bottles is called .

TurtleRanking avatar Jul 03 '23 01:07 TurtleRanking

What @TurtleRanking suggested worked brilliantly! Thank you so much for helping me!

This Issue itself is left open, as it is my hope that winetricks functionality will be added to Whisky.

As an aside, Instead of cjkfonts , fakejapanese_ipamona might have been more appropriate.

K0K1-0928 avatar Jul 04 '23 10:07 K0K1-0928

Pardon my ignorance, but would this 'winetricks' help to get an older DirectX game running?

I have been trying from time to time to just run Diablo (the very first one with Hellfire, from GoG), the whole Whisky app has been overhauled so much every update that now I manage to install it via the setup.exe file directly and then can even get to the game launcher.

However I get an error dialog with a DirectDraw error saying that I need to install DirectX3.0 from the 'Setup.exe' from the CD. (the GoG is a single setup file for all the game, no folder is created with DirectX setup files to my knowledge).

I know this isn't the intended use case, it isn't Vulkan nor DirectX11/12, however, would this make it possible? Something like "winetricks directx30" or directDraw or along those lines. Tried looking at the 'library overrides' but I sure don't know how to go about it and if it is even the answer.

amartinez1660 avatar Jul 09 '23 03:07 amartinez1660

Winetricks added upstream

IsaacMarovitz avatar Jul 12 '23 23:07 IsaacMarovitz