protonscr

[d3d8] Trainz v1.3/UTC crashes

dxvkclosed d3d8
doitsujin/dxvk#4116 · opened 2024-07-07 by HunterCZ122 · updated 2025-01-31 · 3 comments · github
HHunterCZ122 2024-07-07 github

Partially transferred from https://github.com/AlpyneDreams/d8vk/issues/173

Software information

Trainz v1.3/UTC
Demo is obtainable here, but keep in mind that I use Czech retail Level 115 CD-ROM version, which hopefully shouldn't be that different.

Launcher requires winetricks mfc42, not necessary if you run the game directly from launcher's directory:
wine bin/trainz.exe -800 -ColorBits=32 -GlobalTextureResolution=0 -Render=RenderDirectX -DisableStencil -username= -password=

System information

Apitrace file(s)

Game will refuse to launch with apitrace no matter what method is used. Running apitrace manually also doesn't work:
C:/garbage/apitrace/bin/apitrace.exe trace -a d3d8 bin/trainz.exe -800 -ColorBits=32 -GlobalTextureResolution=0 -Render=RenderDirectX -DisableStencil -username= -password=
Arguments are passed fine otherwise the game will report interface error when renderer is not specified.

Log files

trainz_d3d8.log

This fatal error dialog appears:
Screenshot_20230704_225216
It works fine with WineD3D.

Both adding d3d8.dll next to game's executable or SysWOW64 directory (as it should be) in Wine prefix doesn't work.

The game also has OpenGL renderer, which works fine.

HHunterCZ122 2025-01-30 github

Seems to work now :)
Image

HHunterCZ122 2025-01-30 github

It also needs d3d9.deviceLossOnFocusLoss = True to resolve black screen after alt tabbing.

DLLs