ValveSoftware / Proton

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

Team Fortress 2 (440) #3150

Open bkdwt opened 4 years ago

bkdwt commented 4 years ago

Hi. When I tried to run TF2 using D9VK with Proton 4.11.7 with PROTON_USE_D9VK=1 %command% and without, but the game only shows a black screen or a black screen with artifacts.

Here the logs:

With PROTON_USE_D9VK=1 %command%: steam.txt

Without: steam2.txt

And a screenshot of the artifact without PROTON_USE_D9VK=1 %command%: Screenshot from 2019-10-14 19-41-20

glxinfo | grep 'version'
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.2.1
OpenGL core profile shading language version string: 4.50
OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.2.1
OpenGL shading language version string: 4.50
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.2.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_shader_implicit_conversions, GL_EXT_shader_integer_mix,
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev ef) (prog-if 00 [VGA controller])
    Subsystem: Gigabyte Technology Co., Ltd Radeon RX 570
    Flags: bus master, fast devsel, latency 0, IRQ 31
    Memory at e0000000 (64-bit, prefetchable) [size=256M]
    Memory at f0000000 (64-bit, prefetchable) [size=2M]
    I/O ports at e000 [size=256]
    Memory at f7e00000 (32-bit, non-prefetchable) [size=256K]
    Expansion ROM at 000c0000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: amdgpu
    Kernel modules: amdgpu

01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
kisak-valve commented 4 years ago

For transparency, this issue report was moved from the Source-1-Games issue tracker to here because running the Windows client on Linux is not supported and we're using one issue report per unofficially supported game title with Proton. In general, Proton should grow to handle issues encountered with games, not the other way around.

This is the right place to discuss issues with TF2 when run with Proton and https://github.com/ValveSoftware/Source-1-Games/issues/2844 is a tightly scoped to the performance difference between the native OpenGL client and the Vulkan render path via d9vk and the Source-1-Games issue report should not be used for general Proton discussion.

SupinePandora43 commented 3 years ago
9195.610:0020:0024:err:steam:run_process Failed to create process L"\"\\\\?\\unix\\run\\media\\supine\\DATADISK\\Games\\SteamLibrary\\steamapps\\common\\Team Fortress 2\\hl2.exe\" -steam -game tf -novid -nojoy -nosteamcontroller -nohltv -particles 1 -precachefontchars -no_texture_stream -gl_enablesamplerobjects": 1115

proton 6.3

TheoCGaming commented 9 months ago

I can confidently say that tf2 works fine on proton as of now, except for the fact that none of the source games I try to run are able to connect to the steam client for some reason

kisak-valve commented 6 months ago

Team Fortress 2

Issue transferred from https://github.com/ValveSoftware/Proton/issues/7599. @tierwelder posted on 2024-03-23T17:05:54:

Hello, Team Fortress 2 is not working whatsoever for me on Linux, the issues are as follows: The game, neither the Stable version or the 64-bit Beta will launch using Steam Play, only when Proton (9.0 or older) is enabled, would they launch

when Proton is enabled, the game won't let me enter matchmaking, saying that I am 'in Insecure mode', adding -secure to the launch options of Team Fortress 2 doesn't help, as the game crashes when joining a server when this parameter is added.

Now, with a reinstall, even with Proton, the game doesn't launch whatsoever. Here's some system information:

Operating System: Bazzite 39 KDE Plasma Version: 5.27.11 KDE Frameworks Version: 5.115.0 Qt Version: 5.15.12 Kernel Version: 6.7.9-204.fsync.fc39.x86_64 (64-bit) Graphics Platform: Wayland Processors: 8 × AMD Custom APU 0405 Memory: 14.5 GiB of RAM Graphics Processor: AMD Custom GPU 0405 Manufacturer: Valve Product Name: Jupiter System Version: 1

I confirm:

I will be adding logs shortly in the reply section.

exysturnal commented 6 months ago

steam-440.log

Here is the log, for the game running w/Proton 9.0, on the Stable release, the game connects and works up until attempting to connect to Public matchmaking.

exysturnal commented 6 months ago

Now, on the x64_test, running the ln -s tf.sh hl2.sh command in my terminal (I use Ptyxis) in order to create the executable, I tried running the game without forcing Proton, the game wouldn't launch, and would not even create a log or give me an error message.

exysturnal commented 6 months ago

I can confidently say that tf2 works fine on proton as of now, except for the fact that none of the source games I try to run are able to connect to the steam client for some reason

can you share how you got it working?

kisak-valve commented 1 month ago

TF2 crashes when loading into a game (explanation on why Proton is still useful over native included)

Issue transferred from https://github.com/ValveSoftware/Proton/issues/8017. @bugflug posted on 2024-08-23T04:22:38:

Compatibility Report

System Information

I confirm:

Symptoms

TF2 crashes when using Proton to load into a match or view a demo file. The game successfully boots into the main menu and only crashes when there would otherwise be a loading screen before spawning in to the game.

It may be notable that the game did work with Proton before the 64-bit update for some people.

The only notable errors, oddly enough, are about running out of font handles?.. steam-440.log

Reproduction

Use Proton 9.0-2 (or any version, actually) to boot TF2 instead of doing it natively. Using OpenGL or Vulkan is not important as both result in the crash. After the main menu loads, attempt to load a map in the console like map pl_upward or attempt to load a demo file. The game will crash before the loading screen even shows

Why report when TF2 works natively?

Luck has it that any and ALL 3rd party tools to make cinematic movies in the game are based on Windows DLL injection (with the game in insecure mode, of course). The main tool used is HLAE, a.k.a. Half-Life Advanced Effects. This enables a ton of custom effects like

While HLAE is technically a hack, it's a staple of literally every frag movie creation scene in every source game. I've even successfully injected the advanced effects DLL into TF2 when opened with Proton. The only issue is the game itself when it tries to load into a map/game.

Because of how important these 3rd party tools are to the TF2 community, it's important to support the game with Proton regardless of its ability to run natively.

bugflug commented 1 month ago

Tested TF2 with Proton on a fresh Xubuntu install on a laptop with integrated graphics; still broken there. Much less likely to be a system-specific issue.

Tritibellum commented 1 month ago

I'm currently having this issue aswell on OpenSUSE Tumbleweed, and it is very likely that it is a game bug (game was working fine 5 months ago) and many of my attempts to find a workaround has been so far unsuccessful.

Again, i'm coming from the fact that i use HLAE to record videos, and it is impossible to do this without proton (unfortunately).

steam-440.log

Again, the most notable error in the crash log is the err:font:alloc_font_handle out of realized font handles, which is spammed excessively when loading a map/demo.

UPDATE: It doesn't seem to be a game bug, I have tried to change different TF2 branches and nothing seemed to work in my theory. I can't really figure out the real issue and the error itself is already obscure to find anything helpful...

Pao-Lumu commented 1 week ago

Compatibility Report

System Information

I confirm:

steam-440.log

Symptoms

Game loads to main menu without issue, but upon attempting to load into any map, by any means, the game instantly crashes to desktop.

Reproduction

Attempt to load into a map (map itemtest in console, connecting to community or official servers, starting a listen server, starting training, load a demo, etc.)

Of note: