ValveSoftware / Proton

Compatibility tool for Steam Play based on Wine and additional components
Other
23.93k stars 1.05k forks source link

SpellForce 3 (311290) #1033

Open lieff opened 6 years ago

lieff commented 6 years ago

Distro: Ubuntu 18.04 GPU: GTX 980, Nvidia proprietary driver 390.48 Resolution: 2560x1440 RAM: 16GB Proton 3.7-5 Beta

Joinyy commented 5 years ago

Distro: Arch (Linux 4.19.1) GPU: GTX 1050 Ti, Nvidia driver 410.xx Resolution: 1920x1080 RAM: 16 GB (DDR4) Proton 3.16 Beta

It crashes on start, throwing an error message with a coredump. I sent this to the dev's already, but maybe there is someone who can narrow the issue down to something more specific.

kisak-valve commented 5 years ago

Hello @lieff, @Joinyy, can one of you please add PROTON_LOG=1 %command% to the game's launch options and drag and drop the generated $HOME/steam-$APPID.log into the comment box.

lieff commented 5 years ago

Here: steam-311290.log

zzhiyi commented 5 years ago

DXVK missing D3D10StateBlockMaskEnableAll implementation and then D3D10CreateStateBlock.

Switch to wined3d goes a bit further but still shows a black screen: 0026:fixme:dxgi:dxgi_output_GetDisplayModeList iface 0x12f8610, format DXGI_FORMAT_B8G8R8A8_UNORM, flags 0, mode_count 0x22f788, desc 0x12f7740 partial stub! 0026:fixme:dxgi:DXGID3D10CreateDevice Ignoring flags 0x20. 0026:fixme:dxgi:wined3d_bind_flags_from_dxgi_usage Unhandled DXGI usage 0x40. 0026:fixme:dxgi:dxgi_factory_MakeWindowAssociation iface 0x12ec960, window 0x1005c, flags 0x1 stub! 0026:fixme:d3d11:wined3d_depth_stencil_view_desc_from_d3d11 Unhandled depth stencil view flags 0x3. 0026:fixme:dwrite:get_name_record_codepage encoding 20 not handled, platform 1. 0026:fixme:dwrite:dwritefactory_CreateMonitorRenderingParams (0x1): monitor setting ignored 0026:fixme:d3d11:d3d11_device_CheckFormatSupport iface 0x12f7788, format 34, format_support 0x22faf0 partial-stub! 0026:fixme:dwrite:get_name_record_codepage encoding 20 not handled, platform 1.

mozo78 commented 5 years ago

This bug is resolved in vanilla Wine: https://bugs.winehq.org/show_bug.cgi?id=44340

doitsujin commented 5 years ago

doitsujin/dxvk@81821414b0dfd0e429fc506167415ad8c4ca7d01 implements D3D10 state blocks, which are needed by Wine's Direct2D implementation (yes, this game actually uses that). There are more rendering-related issues, I'm working on it.

Edit: @mozo78 doitsujin/dxvk@53aa27336bb6ee3b04f38a4e7d60016c7a4785fa should fix the rendering issues, except the UI font. The UI font is still broken due to Direct2D/DWrite issues.

mozo78 commented 5 years ago

Thank you very much doitsujin! I'll try it and I'll report you back.

mozo78 commented 5 years ago

Yes it's working fine now. Thank you so much!!!

elfefe commented 5 years ago

Hey ! I meet the same issue here ! Where do you find the files to modify ?

kisak-valve commented 3 years ago

Spellforce 3 - broken fonts rendering

Issue transferred from https://github.com/ValveSoftware/Proton/issues/4802. @nadrolinux posted on 2021-05-04T12:30:45:

Compatibility Report

System Information

I confirm:

Symptoms

Fonts rendering is broken (I attached print screen) regardless of chosen language.

Reproduction

Just run a game.

broken_fonts steam-311290.log

alosarjos commented 2 years ago

Fonts rendering issue still happening with Reforged update

tgurr commented 2 years ago

doitsujin/dxvk@8182141 implements D3D10 state blocks, which are needed by Wine's Direct2D implementation (yes, this game actually uses that). There are more rendering-related issues, I'm working on it.

Edit: @mozo78 doitsujin/dxvk@53aa273 should fix the rendering issues, except the UI font. The UI font is still broken due to Direct2D/DWrite issues.

@doitsujin hope it's okay to ask directly - I'm just wondering since you've already had a look at the game and fixed some of the issues, the remaning font rendering issue, is it an issue of the game itself (like @alosarjos stated sadly still present in the recent reforced update) or is it an issue of dxvk that might still get addressed? Did it maybe just get forgotten, a quick search on the dxvk issues didn't came up with a bug still open in regards to spellforce, should we report one about the remaining font rendering issue?

mozo78 commented 2 years ago

It's a Wine bug but they will not fix it for different reasons. Apply this patch and start the game with FullHD resolution: https://bugs.winehq.org/attachment.cgi?id=64384 It's almost perfect: https://i.imgur.com/xjf9iq6.png

tgurr commented 2 years ago

@mozo78 thanks for the information, I guess you're talking about https://bugs.winehq.org/show_bug.cgi?id=47085 then? I didn't find any followup upstream bug(s) for the remaining issue(s) though. Huge thanks for the patch I'll see if I can give it a try. Sad that things didn't improve since wine 4.9 in this regard.

mozo78 commented 2 years ago

Yes, i filed this bug but I have been told the patch will not find place in the main code. You can read the posts for more info :)

tgurr commented 2 years ago

For anyone interested, I've created a Proton version with the patch mentioned above included, you can download it here. Unpack to compatibilitytools.d, restart Steam for it to pick it up and select Proton-spellforce as a game specific Proton version for running Spellforce 3. While font rendering is not perfect even with the patch at least fonts are much more readable and don't hurt the eyes anymore like without it.

mozo78 commented 2 years ago

At FullHD it's almost perfect :)