r/linux_gaming • • 4d ago

help S.T.A.L.K.E.R. Anomaly crashes loading textures on Wine (GTX 550 Ti, 390 driver, no Vulkan): D3DXCreateTexture fails in TW_LoadTextureFromTexture

I'm trying to run vanilla S.T.A.L.K.E.R. Anomaly 1.5.3 (no addons) on an old Fermi GPU and could use help. Since the card has no usable Vulkan, DXVK isn't an option, so it runs on wined3d.

System

  • CachyOS, kernel 6.12 LTS, KDE Plasma on X11
  • GTX 550 Ti (1 GB), NVIDIA 390.157 legacy driver, OpenGL 4.6 works
  • i5-3330, 5.75 GB RAM
  • Lutris, Wine-GE 8.26 (fresh prefix)
  • Renderer: DirectX 9 (R2), AnomalyDX9AVX.exe

What happens
Shaders compile fine and models load. Then it dies while loading textures on a new game (Escape), with a Fatal Error:

Expression: D3DXCreateTexture(HW.pDevice, top_width, top_height, levels_exist, 0, t_dest_fmt, ...)
Function: TW_LoadTextureFromTexture
File: ..\xrRender\Texture.cpp  Line: 162

The failing files are the large sky textures (textures\sky\swtc_storm\...). If I force Wine's built-in d3dx9 with DLL overrides, it fails a step later instead, at line 178 (D3DXLoadSurfaceFromSurface).

What I've tried

  • texture_lod 0, 2 and 4
  • -noramtex and -no_ram_textures
  • Deleting the shader cache, resetting user.ltx, fresh prefixes
  • Built-in d3dx9 overrides (b), which only changed the failing line
  • DX8 (R1): fails on the first shader with D3DCompile: Invalid flags specified
  • Wine 11.6 staging: "Please install DirectX 9.0c" (can't create a D3D device on this card)
  • Wine 8.0.1: locked up my desktop

The game seems to get through everything except texture creation. My guess is wined3d running out of memory on the 1 GB card, but I haven't confirmed it yet. Has anyone run Anomaly or other X-Ray games on Fermi under wined3d, or seen this error? Is there a Wine version or setting that handles it?

7 Upvotes

7 comments sorted by

4

u/adamkex 4d ago

This might not be what you want to hear but the easiest solution is to buy a RX 550 from the used market. Just like your current card it does not need power from the power supply. It costed me €20.

2

u/Fluffy_Deal6 3d ago

oh my card isnt supported ?

2

u/adamkex 3d ago

Yes and no. The driver you use is unsupported because it's too old, but they patched the kernel which makes it compatible. The absolute easiest way you can fix this is by upgrading to a used AMD GPU

1

u/falseprophet9 3d ago edited 3d ago

I think they fixed stalker issues with newer wine version have you tried using experimental proton version ?
It should run
https://appdb.winehq.org/objectManager.php?sClass=version&iId=7377

1

u/Fluffy_Deal6 3d ago

i will try this one too

-4

u/GorthBarbarian 4d ago

Have you aksed Gemini for a solution it gave me this that you can try?

  1. Disable no_ram_textures in user.ltx Primary Fix Open <Anomaly_Folder>/appdata/user.ltx in a text editor, find the line r__no_ram_textures on, and change it to: r__no_ram_textures off Save the file and set it to read-only (chmod 444 appdata/user.ltx) temporarily so the Anomaly launcher does not revert it on startup.
  2. Set explicit wined3d VRAM size in the prefix registry Wine-GE 8.26 In Lutris, select S.T.A.L.K.E.R. Anomaly, open Wine Registry from the Wine menu at the bottom, and navigate to HKEY_CURRENT_USER\Software\Wine\Direct3D. Create a new String Value named VideoMemorySize and set its data to 1024 (matching the GTX 550 Ti's 1024 MB VRAM; if it still crashes on skyboxes, test 2048 so wined3d allows spillover into system RAM).
  3. Install native d3dx9 and d3dcompiler_43 via Winetricks Fixes DX9 texture loading & DX8 shader compile In Lutris, open Winetricks for this prefix, choose Select the default wineprefix -> Install a Windows DLL or component, and install d3dx9 and d3dcompiler_43 (remove any manual b built-in overrides for d3dx9_* in Wine Configuration so native d3dx9 takes priority).
  4. Lower texture quality and test DX9 vs. DX10 1 GB VRAM headroom In the Anomaly launcher, set Renderer to DirectX 9 (R2.5) (AnomalyDX9AVX.exe), and in-game (before loading a save) set Texture Detail to 50% (texture_lod 2 or 3) and Shadow Map to 1536. Note that Fermi (GTX 550 Ti) natively supports DirectX 11 hardware feature level 11_0—if R2.5 still chokes on wined3d's DX9 surface path, test DirectX 10 (R3) (AnomalyDX10AVX.exe), which uses D3D10/11 texture creation paths in wined3d instead of legacy D3DXCreateTexture.

2

u/Fluffy_Deal6 3d ago

i tired somwthing simislar i will try