winepak / applications

A collection of flatpak manifest for building Microsoft Windows applications with Wine via flatpak
https://www.winepak.org
416 stars 39 forks source link

Battle.net fonts do not render correctly #144

Closed udev closed 3 years ago

udev commented 5 years ago

This occurs after a clean install of Debian 9 Stretch with kernel 4.18. Almost definitely something that I've done locally but I'm out of things to try to fix it.

steam@steam:~/Games/applications/com.blizzard.Overwatch$ uname -a
Linux steam 4.18.0-0.bpo.1-amd64 #1 SMP Debian 4.18.6-1~bpo9+1 (2018-09-13) x86_64 GNU/Linux
steam@steam:~/Games/applications/com.blizzard.Overwatch$ lspci -k | grep -EA3 'VGA|3D|Display' 
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT / Grenada XT [Radeon R9 290X/390X]
    Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT / Grenada XT [Radeon R9 290X/390X]
    Kernel modules: radeon, amdgpu
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii HDMI Audio [Radeon R9 290/290X / 390/390X]
steam@steam:~/Games/applications/com.blizzard.Overwatch$ lscpu 
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             AuthenticAMD
CPU family:            21
Model:                 48
Model name:            AMD A10-7800 Radeon R7, 12 Compute Cores 4C+8G
Stepping:              1
CPU MHz:               3470.386
BogoMIPS:              6987.51
Virtualization:        AMD-V
L1d cache:             16K
L1i cache:             96K
L2 cache:              2048K
NUMA node0 CPU(s):     0-3
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb bpext ptsc cpb hw_pstate ssbd vmmcall fsgsbase bmi1 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold overflow_recov
steam@steam:~/Games/applications/com.blizzard.Overwatch$ 

screenshot from 2018-10-14 22-56-22

thunderstorm99 commented 5 years ago

Same happens to me. image I am using com.blizzard.WoW flatpak. Also when trying to start World of Warcraft the screen turns black and is unresponsive. The application can be killed but other than that, there is nothing i can do about it. Also when starting with CLI i get the following error:

flatpak run com.blizzard.WoW
Verify "Battle.net Helper.exe" doesn't launch...
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
wine: Unhandled exception 0xc0000417 in thread 6f at address 0x5228f2 (thread 006f), starting debugger...
nning commented 5 years ago

There seems to be a solution: https://www.reddit.com/r/wine_gaming/comments/9fkijn/battlenet_fonts_are_not_rendered/

winetricks settings fontsmooth=rgb

I do not understand how to run it in Flatpak app context, though. Also, I am not sure whether this has to be ran at build time.

lionirdeadman commented 5 years ago

If this fix works, you can do :

flatpak run command=bash tld.domain.Application
winetricks settings fontsmooth=rgb
exit

Tell me if that works, @nning We could patch it in a next version but it seems Julian has been quite busy so I wouldn't expect it quite soon, redesign should be done first.

nning commented 5 years ago

Unfortunately, the proposed command does not work out of the box and I am getting the following error:

$ flatpak run --command=bash com.blizzard.StarCraft2
bash-4.3$ winetricks settings fontsmooth=rgb
warning: taskset/cpuset not available on your platform!
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string, error message "wine: '/var/data/wine' is a 64-bit installation, it cannot be used with a 32-bit wineserver." 
------------------------------------------------------

This could be related to https://github.com/winepak/applications/issues/5. I could not get winetricks to use wine64.

udev commented 5 years ago

@nning try modifying the yml file to include winetricks line as a step in the build process.

thebitstick commented 5 years ago

Any progress on including it in yml? Also it would probably be best to use wine64.

nning commented 4 years ago

I added winetricks settings fontsmooth=rgb at the end of the commands for starcraft2-installer and did a clean build, flatpak install, and Battle.net install. Although the winetricks command executes successfully, the fonts are still distorted in the Battle.net GUI.

udev commented 3 years ago

Definitely safe to close this given the state of Proton and Lutris. Thanks for the hardwork regardless! ✌️