-
Notifications
You must be signed in to change notification settings - Fork 119
Description
I'm currently trying to run BVE Trainsim v.2.6.3 on GE-Proton10-15 - I've gotten to the point where it can run but with graphical artifacting - color-keyed transparency not working. Installing dxwrapper dd7to9, however, adds a soft error which normally isn't present with the Direct3D 7 backport.
Steps to reproduce
- Download and install BVE 2.6.3 from bvets.net, as well as any scenario, preferably the vendor-made Uchibō Line v9
- If on Wine, install
vb6runandd3drmtricks. - If on Wine or Vista+, copy
dx7vb.dllfrom XPsystem32and place inSysWOW64(a.k.a. BVE 4 on Windows 7 trick). - Install dxwrapper dd7to9 to BVE's directory as
ddraw.dll. If on Wine, assign library override.
Before step 4, the game runs, and can load into a scenario without dying. However, after installing dxwrapper, the game fails to initialize with an unspecified Direct3D error that seems to correlate to m_IDirectDrawSurfaceX::SetClipper Error: could not find clipper in the logs.
At this point, I'm not expecting the graphics to look right, but for the game to initialize D3D successfully. I've tried several seemingly relevant advanced options in the config file to no effect, I've taken a very brief look at the code and seems that the only option that has any effect in this scenario is Dd7to9. I've also tried several different wrapped DLL's, but they either had no effect, were not loaded, or did not have an overlap's with BVE's dependency tree. Only DLL which had any effect was ddraw.
Attached are the current, dirty, configuration and the log of the latest run with with said config..
PS: I don't know how to word this, I don't know if this is any useful for the development of dxwrapper, and I have not done an extensive search through issues. I have seen that there are issues involving DDSurfaceX but I have not finely combed through them since none of them mentioned SetClipper.
[General]
RealDllPath = AUTO
WrapperMode = AUTO
LoadCustomDllPath =
ExcludeProcess =
IncludeProcess =
RunProcess =
WaitForProcess = 0
DisableLogging = 0
[Plugins]
LoadPlugins = 0
LoadFromScriptsOnly = 0
[Compatibility]
Dd7to9 = 1
D3d8to9 = 0
D3d9to9Ex = 0
DDrawCompat = 1
Dinputto8 = 0
DisableGameUX = 0
EnableDdrawWrapper = 1
EnableD3d9Wrapper = 0
EnableDinput8Wrapper = 0
EnableDsoundWrapper = 0
EnableOpenDialogHook = 0
WinVersionLie = off
WinVersionLieSP = 0
FixPerfCounterUptime = 0
HandleExceptions = 1
SingleProcAffinity = 0
[DDrawCompat]
DDrawCompat20 = 1
DDrawCompat21 = 0
DDrawCompat32 = 0
DDrawCompatDisableGDIHook = 0
DDrawCompatNoProcAffinity = 0
[ddraw]
DdrawOverrideBitMode = 0
DdrawUseDirect3D9Caps = 0
[Dd7to9]
DdrawAutoFrameSkip = 0
DdrawEmulateSurface = 0
DdrawEmulateLock = 0
DdrawExtraEmulationSize = 0
DdrawKeepAllInterfaceCache = 0
DdrawForceMipMapAutoGen = 0
DdrawClampVertexZDepth = 0
DdrawFixByteAlignment = 0
DdrawEnableByteAlignment = 0
DdrawIntroVideoFix = 0
DdrawRemoveScanlines = 0
DdrawRemoveInterlacing = 0
DdrawReadFromGDI = 0
DdrawWriteToGDI = 0
DdrawLimitTextureFormats = 0
DdrawLimitDisplayModeCount = 0
DdrawCustomWidth = 0
DdrawCustomHeight = 0
DdrawUseNativeResolution = 0
DdrawOverrideWidth = 0
DdrawOverrideHeight = 0
DdrawIntegerScalingClamp = 0
DdrawMaintainAspectRatio = 0
[d3d9]
AnisotropicFiltering = 0
AntiAliasing = 0
EnvironmentCubeMapFix = 0
EnableVSync = 0
ForceVsyncMode = 0
ShowFPSCounter = 0
OverrideRefreshRate = 0
LimitDisplayModeCount = 0
CustomDisplayWidth = 0
CustomDisplayHeight = 0
LimitPerFrameFPS = 0
EnableWindowMode = 0
WindowModeBorder = 0
SetInitialWindowPosition = 0
InitialWindowPositionLeft = 0
InitialWindowPositionTop = 0
FullscreenWindowMode = 0
ForceExclusiveFullscreen = 0
ForceMixedVertexProcessing = 0
ForceSystemMemVertexCache = 0
SetSwapEffectShim = 0
DisableMaxWindowedMode = 0
ForceDirect3D9On12 = 0
GraphicsHybridAdapter = 0
[FullScreen]
FullScreen = 0
ForceWindowResize = 0
WaitForWindowChanges = 0
[dinput8]
DeviceLookupCacheTime = 0
FilterNonActiveInput = 0
FixHighFrequencyMouse = 0
MouseMovementFactor = 0
MouseMovementPadding = 0
[dsound]
Num2DBuffers = 0
Num3DBuffers = 0
ForceCertification = 0
ForceExclusiveMode = 0
ForceSoftwareMixing = 0
ForceHardwareMixing = 0
ForceHQ3DSoftMixing = 0
ForceNonStaticBuffers = 0
ForceVoiceManagement = 0
ForcePrimaryBufferFormat = 0
PrimaryBufferBits = 16
PrimaryBufferSamples = 44100
PrimaryBufferChannels = 2
AudioClipDetection = 0
[AppCompatData]
DisableSurfaceLocks = 01076 16:20:24.356 Starting DxWrapper v1.4.7900.25
1076 16:20:24.356 Running from: C:\Program Files (x86)\BVE\dxwrapper.dll (79990000)
1076 16:20:24.356 Reading config file: C:\Program Files (x86)\BVE\dxwrapper.ini
1076 16:20:24.356 NVIDIA GeForce MX230
1076 16:20:24.356 Microsoft Windows XP 64-bit (10.0.19045)
1076 16:20:24.356 Windows 10 64-bit (10.0.19045)
1076 16:20:24.356 BVE.exe (PID:1116)
1076 16:20:24.356 "C:\Program Files (x86)\BVE\BVE.exe"
1076 16:20:24.359 Environment variable __COMPAT_LAYER = ""
1076 16:20:24.359 Windows is newer than, Windows Vista: 1 Windows 7: 1 Windows 8: 1
1076 16:20:24.359 Disabling High DPI Scaling...
1076 16:20:24.359 Loaded library: user32.dll
1076 16:20:24.359 Loaded library: shcore.dll
1076 16:20:24.359 Installing custom unhandled exception filter...
1076 16:20:24.359 Loading 'ddraw.dll'...
1076 16:20:24.359 Hooking ddraw.dll APIs...
1076 16:20:24.362 Loaded library: d3d9.dll
1076 16:20:24.362 Enabling d3d9 wrapper
1076 16:20:24.362 Loading 'd3d9.dll'...
1076 16:20:24.362 Loaded library: C:\windows\system32\d3d9.dll
1076 16:20:24.362 Loaded library: winmm.dll
1076 16:20:24.362 Installing memory management hooks
1076 16:20:24.362 Installing messaging hooks
1076 16:20:24.362 Installing version hooks
1076 16:20:24.363 Installing display mode hooks
1076 16:20:24.363 Installing registry hooks
1076 16:20:24.363 Installing Win32 hooks
1076 16:20:24.364 Installing GDI & User32 hooks
1076 16:20:24.364 Installing Kernel32 hooks
1076 16:20:24.364 DxWrapper loaded!
1076 16:20:24.615 dd_DirectDrawCreate
1076 16:20:24.615 Redirecting 'DirectDrawCreate' to --> 'Direct3DCreate9'
1076 16:20:24.615 GetD3d9UnnamedOrdinal cannot find unnamed ordinal '18' in System32 d3d9.dll!
1076 16:20:24.615 Direct3D9SetSwapEffectUpgradeShim Error: Failed to get address!
1076 16:20:24.615 Creating interface m_IDirectDrawX::m_IDirectDrawX (00154548) converting interface from v1 to v9
1076 16:20:24.615 d9_Direct3DCreate9
1076 16:20:24.615 Redirecting 'Direct3DCreate9' ...
1076 16:20:24.634 Creating interface m_IDirect3D9Ex::m_IDirect3D9Ex (00152BB0) IID_IDirect3D9
1076 16:20:24.635 m_IDirect3D9Ex::LogAdapterNames Adapter: 0 \\.\DISPLAY1 NVIDIA GeForce MX230
1076 16:20:24.635 Creating interface m_IDirect3DX::m_IDirect3DX (00D9F6A8) converting interface from v1 to v9
1076 16:20:24.635 m_IDirectDrawX::SetCooperativeLevel Setting single precision FPU and disabling FPU exceptions!
1076 16:20:24.635 WndProc::AddWndProc Creating WndProc instance! WND(002102CC,ThunderRT6PictureBoxDC,{4,4,484,244})
1076 16:20:24.635 m_IDirectDrawX::CreateD9Device Direct3D9 device! 1920x1080 refresh: 0 format: D3DFMT_UNKNOWN wnd: WND(002102CC,ThunderRT6PictureBoxDC,{4,4,484,244}) params: {1920,1080,D3DFMT_UNKNOWN,1,0,0,1,WND(002102CC,ThunderRT6PictureBoxDC,{4,4,484,244}),1,0,D3DFMT_UNKNOWN,0x0,0,0x80000000} flags: 0x46
1076 16:20:24.698 Creating interface m_IDirect3DDevice9Ex::m_IDirect3DDevice9Ex (00152280) IID_IDirect3DDevice9 game interface v1
1076 16:20:24.703 m_IDirectDrawX::CreateSurface2 Primary surface D3DFMT_UNKNOWN 0x0 dwFlags: 0x1 ddsCaps: 0x200, 0x0, 1
1076 16:20:24.703 Creating interface m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX (02687258) converting interface from v1 to v9
1076 16:20:24.703 Creating interface m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX (026875B0) converting interface from v1 to v9
1076 16:20:24.703 m_IDirectDrawSurfaceX::SetClipper Error: could not find clipper
1076 16:20:24.703 m_IDirectDrawSurfaceX::~m_IDirectDrawSurfaceX (026875B0) deleting interface!
1076 16:20:24.703 m_IDirectDrawSurfaceX::~m_IDirectDrawSurfaceX (02687258) deleting interface!
1076 16:20:24.703 m_IDirectDrawX::~m_IDirectDrawX (00154548) deleting interface!
1076 16:20:24.703 m_IDirect3DX::~m_IDirect3DX (00D9F6A8) deleting interface!
1076 16:20:24.714 m_IDirect3DDevice9Ex::~m_IDirect3DDevice9Ex (00152280) deleting interface!
1076 16:20:24.714 m_IDirect3D9Ex::~m_IDirect3D9Ex (00152BB0) deleting interface!
1076 16:20:24.714 m_IDirectDrawSurfaceX::CleanupSharedEmulatedMemory Deleting 0 emulated surfaces!
1076 16:20:25.372 Quiting DxWrapper
1076 16:20:25.372 Unloading libraries...
1076 16:20:25.372 Removing custom unhandled exception filter...
1076 16:20:25.372 DxWrapper terminated!