Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Freespace 2] - Black screen after intro cutscene using Dd7to9 #300

Open
wolfestridershooter opened this issue Sep 18, 2024 · 4 comments
Open

Comments

@wolfestridershooter
Copy link

wolfestridershooter commented Sep 18, 2024

Freespace 2 shows a black screen after the intro cutscene plays when Dd7to9 is enabled. Both the Steam version and GOG version have the same outcome. I am using the Steam version in the log below.

I am using DxWrapper v1.2.7200.25
INI Configuration:

;; Config file for DirectX DLL Wrapper
;;
;; For details, see: https://github.com/elishacloud/dxwrapper/wiki/Configuration
;;
[General]
RealDllPath                = AUTO
WrapperMode                = AUTO
LoadCustomDllPath          = 
ExcludeProcess             = 
IncludeProcess             = 
RunProcess                 = 
WaitForProcess             = 0
DisableLogging             = 0

[Plugins]
LoadPlugins                = 0
LoadFromScriptsOnly        = 0

[Compatibility]
Dd7to9                     = 1
D3d8to9                    = 0
DDrawCompat                = 0
Dinputto8                  = 0
DisableGameUX              = 0
EnableDdrawWrapper         = 0
EnableD3d9Wrapper          = 0
EnableDinput8Wrapper       = 0
EnableDsoundWrapper        = 0
HandleExceptions           = 0
SingleProcAffinity         = 0

[DDrawCompat]
DDrawCompat20              = 0
DDrawCompat21              = 0
DDrawCompat32              = 0
DDrawCompatDisableGDIHook  = 0
DDrawCompatNoProcAffinity  = 0

[ddraw]
ConvertToDirectDraw7       = 0
ConvertToDirect3D7         = 0
DdrawOverrideBitMode       = 0

[Dd7to9]
DdrawAutoFrameSkip         = 0
DdrawEmulateSurface        = 0
DdrawEmulateLock           = 0
DdrawForceMipMapAutoGen    = 0
DdrawFlipFillColor         = 0
DdrawFixByteAlignment      = 0
DdrawEnableByteAlignment   = 0
DdrawRemoveScanlines       = 0
DdrawRemoveInterlacing     = 0
DdrawReadFromGDI           = 0
DdrawWriteToGDI            = 0
DdrawDisableDirect3DCaps   = 0
DdrawLimitDisplayModeCount = 0
DdrawCustomWidth           = 0
DdrawCustomHeight          = 0
DdrawUseNativeResolution   = 0
DdrawOverrideWidth         = 0
DdrawOverrideHeight        = 0
DdrawIntegerScalingClamp   = 0
DdrawMaintainAspectRatio   = 0

[d3d9]
AnisotropicFiltering       = 0
AntiAliasing               = 0
EnableVSync                = 0
ForceVsyncMode             = 0
OverrideRefreshRate        = 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

Log file:

11756 18:46:16.336 Starting DxWrapper v1.2.7200.25
11756 18:46:16.336 Running from: C:\Program Files (x86)\Steam\steamapps\common\Freespace 2\dxwrapper.dll
11756 18:46:16.336 Reading config file: C:\Program Files (x86)\Steam\steamapps\common\Freespace 2\dxwrapper.ini
11756 18:46:16.336 LENOVO 82WQ Legion Pro 7 16IRX8H (Notebook)
11756 18:46:16.336 LENOVO LNVNB161216 SDK0T76461 WIN (Notebook)
11756 18:46:16.336 Intel(R) UHD Graphics
11756 18:46:16.336 Windows 10 Home 64-bit (10.0.22621)
11756 18:46:16.336 fs2.exe (PID:10156)
11756 18:46:16.342 Steam game detected!
11756 18:46:16.342 Environment variable __COMPAT_LAYER = "DWM8And16BitMitigation"
11756 18:46:16.342 Windows is newer than, Windows Vista: 1 Windows 7: 1 Windows 8: 1
11756 18:46:16.342 Disabling High DPI Scaling...
11756 18:46:16.342 Loaded library: user32.dll
11756 18:46:16.342 Loaded library: shcore.dll
11756 18:46:16.342 Loading 'ddraw.dll'...
11756 18:46:16.342 Hooking ddraw.dll APIs...
11756 18:46:16.343 Loaded library: d3d9.dll
11756 18:46:16.343 Enabling ddraw wrapper
11756 18:46:16.343 Enabling d3d9 wrapper
11756 18:46:16.343 Loading 'd3d9.dll'...
11756 18:46:16.343 Loaded library: C:\Windows\system32\d3d9.dll
11756 18:46:16.343 Loaded library: winmm.dll
11756 18:46:16.344 Installing memory management hooks
11756 18:46:16.344 Installing messaging hooks
11756 18:46:16.344 Installing display mode hooks
11756 18:46:16.344 Installing registry hooks
11756 18:46:16.344 Installing Win32 hooks
11756 18:46:16.344 Installing GDI & User32 hooks
11756 18:46:16.344 Loaded library: gdi32.dll
11756 18:46:16.344 Loaded library: kernel32.dll
11756 18:46:16.344 DxWrapper loaded!
11756 18:46:16.515 dd_DirectDrawEnumerateA
11756 18:46:16.515 d9_Direct3DCreate9
11756 18:46:16.515 Redirecting 'Direct3DCreate9' ...
11756 18:46:16.562 Creating interface m_IDirect3D9Ex::m_IDirect3D9Ex (074976C0) IID_IDirect3D9
11756 18:46:16.562 m_IDirect3D9Ex::LogAdapterNames Adapter: 0 \\.\DISPLAY5 NVIDIA GeForce RTX 4080 Laptop GPU
11756 18:46:16.563 m_IDirect3D9Ex::~m_IDirect3D9Ex (074976C0) deleting interface!
11756 18:46:16.563 dd_DirectDrawCreate
11756 18:46:16.563 dd_DirectDrawCreateEx
11756 18:46:16.563 Direct3D9SetSwapEffectUpgradeShim Calling 'Direct3D9SetSwapEffectUpgradeShim' ... 0
11756 18:46:16.563 Redirecting 'DirectDrawCreate' IID_IDirectDraw to --> 'Direct3DCreate9'
11756 18:46:16.563 Creating interface m_IDirectDrawX::m_IDirectDrawX (03469DA8) converting interface from v1 to v9
11756 18:46:16.563 Redirecting 'Direct3DCreate9' ...
11756 18:46:16.600 Creating interface m_IDirect3D9Ex::m_IDirect3D9Ex (07494688) IID_IDirect3D9
11756 18:46:16.600 Creating interface m_IDirect3DX::m_IDirect3DX (03456A68) converting interface from v2 to v9
11756 18:46:16.602 m_IDirect3DX::~m_IDirect3DX (03456A68) deleting interface!
11756 18:46:16.602 m_IDirectDrawX::~m_IDirectDrawX (03469DA8) deleting interface!
11756 18:46:16.604 m_IDirect3D9Ex::~m_IDirect3D9Ex (07494688) deleting interface!
11756 18:46:16.604 m_IDirectDrawSurfaceX::CleanupSharedEmulatedMemory Deleting 0 emulated surfaces!
11756 18:46:16.632 Direct3D9SetSwapEffectUpgradeShim Calling 'Direct3D9SetSwapEffectUpgradeShim' ... 0
11756 18:46:16.632 Redirecting 'DirectDrawCreate' IID_IDirectDraw to --> 'Direct3DCreate9'
11756 18:46:16.632 Creating interface m_IDirectDrawX::m_IDirectDrawX (0346A390) converting interface from v1 to v9
11756 18:46:16.632 Redirecting 'Direct3DCreate9' ...
11756 18:46:16.671 Creating interface m_IDirect3D9Ex::m_IDirect3D9Ex (03483DB0) IID_IDirect3D9
11756 18:46:16.672 WndProc::AddWndProc Creating WndProc instance! WND(007C0E2C,Freespace2Class,{0,0,1024,768})
11756 18:46:16.677 m_IDirectDrawX::CreateD3D9Device Direct3D9 device! 1024x768 refresh: 0 format: D3DFMT_X8R8G8B8 wnd: WND(007C0E2C,Freespace2Class,{0,0,1024,768}) params: {1024,768,D3DFMT_X8R8G8B8,1,0,0,1,WND(007C0E2C,Freespace2Class,{0,0,1024,768}),0,0,D3DFMT_UNKNOWN,0x0,0,0x80000000} flags: 0x46
11756 18:46:16.677 UpdatePresentParameter Removing window WS_EX_TOPMOST
11756 18:46:16.830 Creating interface m_IDirect3DDevice9Ex::m_IDirect3DDevice9Ex (07684B18) IID_IDirect3DDevice9
11756 18:46:16.847 Creating interface m_IDirect3DX::m_IDirect3DX (0761A728) converting interface from v2 to v9
11756 18:46:16.851 m_IDirectDrawX::CreateSurface2 Primary surface 0x0 dwFlags: 0x21 ddsCaps: 0x2238, 0x0, 513
11756 18:46:16.851 Creating interface m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX (07646318) converting interface from v2 to v9
11756 18:46:16.851 Creating interface m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX (076465A0) converting interface from v2 to v9
11756 18:46:16.851 m_IDirectDrawX::CreateSurface2 Found Stencil surface: D3DFMT_D16_LOCKABLE
11756 18:46:16.851 Creating interface m_IDirectDrawSurfaceX::m_IDirectDrawSurfaceX (078D0550) converting interface from v2 to v9
11756 18:46:16.851 Creating interface m_IDirect3DTexture9::m_IDirect3DTexture9 (0765C820)
11756 18:46:16.851 Creating interface m_IDirect3DVertexBuffer9::m_IDirect3DVertexBuffer9 (0765C980)
11756 18:46:16.874 Creating interface m_IDirect3DTexture9::m_IDirect3DTexture9 (078CDC00)
11756 18:46:16.875 Creating interface m_IDirect3DDeviceX::m_IDirect3DDeviceX (076CEB30) converting interface from v2 to v9
11756 18:46:16.875 Creating interface m_IDirect3DSurface9::m_IDirect3DSurface9 (07680658)
11756 18:46:16.875 Creating interface m_IDirect3DSurface9::m_IDirect3DSurface9 (0767FC08)
11756 18:46:16.875 Creating interface m_IDirect3DSurface9::m_IDirect3DSurface9 (07680080)
11756 18:46:16.880 Creating interface m_IDirect3DViewportX::m_IDirect3DViewportX (07805280) converting interface from v2 to v9
11756 18:46:16.880 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:16.882 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:16.882 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:16.891 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:16.891 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:16.895 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:16.896 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:16.901 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:16.901 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:16.908 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:16.908 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:17.227 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:17.227 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:17.227 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:17.230 m_IDirect3DDeviceX::~m_IDirect3DDeviceX (076CEB30) deleting interface!
11756 18:46:17.232 Creating interface m_IDirect3DTexture9::m_IDirect3DTexture9 (078CDB20)
11756 18:46:17.234 m_IDirectDrawSurfaceX::~m_IDirectDrawSurfaceX (07646318) deleting interface!
11756 18:46:17.235 m_IDirectDrawSurfaceX::~m_IDirectDrawSurfaceX (076465A0) deleting interface!
11756 18:46:17.235 m_IDirectDrawX::CreateD3D9Device Direct3D9 device! 640x480 refresh: 0 format: D3DFMT_X8R8G8B8 wnd: WND(007C0E2C,Freespace2Class,{0,0,1024,768}) params: {640,480,D3DFMT_X8R8G8B8,1,0,0,1,WND(007C0E2C,Freespace2Class,{0,0,1024,768}),0,0,D3DFMT_UNKNOWN,0x0,0,0x80000000} flags: 0x46
11756 18:46:17.571 m_IDirectDrawX::CreateSurface2 Primary surface 0x0 dwFlags: 0x21 ddsCaps: 0x238, 0x0, 513
11756 18:46:17.571 Creating interface m_IDirect3DVertexBuffer9::m_IDirect3DVertexBuffer9 (078CDB40)
11756 18:46:17.580 m_IDirect3DTexture9::~m_IDirect3DTexture9 (078CDC00) deleting interface!
11756 18:46:17.599 m_IDirect3DSurface9::~m_IDirect3DSurface9 (07680658) deleting interface!
11756 18:46:17.600 m_IDirect3DSurface9::~m_IDirect3DSurface9 (076800D8) deleting interface!
11756 18:46:20.337 m_IDirectDrawSurfaceX::~m_IDirectDrawSurfaceX (078C5610) deleting interface!
11756 18:46:20.337 m_IDirectDrawX::CreateD3D9Device Direct3D9 device! 1024x768 refresh: 0 format: D3DFMT_X8R8G8B8 wnd: WND(007C0E2C,Freespace2Class,{0,0,640,480}) params: {1024,768,D3DFMT_X8R8G8B8,1,0,0,1,WND(007C0E2C,Freespace2Class,{0,0,640,480}),0,0,D3DFMT_UNKNOWN,0x0,0,0x80000000} flags: 0x46
11756 18:46:20.428 m_IDirectDrawX::CreateSurface2 Primary surface 0x0 dwFlags: 0x21 ddsCaps: 0x2238, 0x0, 513
11756 18:46:20.428 m_IDirectDrawX::CreateSurface2 Found Stencil surface: D3DFMT_D16_LOCKABLE
11756 18:46:20.428 m_IDirect3DTexture9::~m_IDirect3DTexture9 (0765C820) deleting interface!
11756 18:46:20.428 Creating interface m_IDirect3DVertexBuffer9::m_IDirect3DVertexBuffer9 (078CE998)
11756 18:46:20.443 Creating interface m_IDirect3DDeviceX::m_IDirect3DDeviceX (0786B510) converting interface from v2 to v9
11756 18:46:20.443 m_IDirect3DSurface9::~m_IDirect3DSurface9 (0767FD10) deleting interface!
11756 18:46:20.443 Creating interface m_IDirect3DViewportX::m_IDirect3DViewportX (07804A60) converting interface from v2 to v9
11756 18:46:20.443 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 Creating interface m_IDirect3DTextureX::m_IDirect3DTextureX (0790F9E8) converting interface from v2 to v9
11756 18:46:20.529 Creating interface m_IDirect3DTextureX::m_IDirect3DTextureX (0790FA90) converting interface from v2 to v9
11756 18:46:20.529 m_IDirect3DTextureX::~m_IDirect3DTextureX (0790F9E8) deleting interface!
11756 18:46:20.529 Creating interface m_IDirect3DTextureX::m_IDirect3DTextureX (0790F6D8) converting interface from v2 to v9
11756 18:46:20.529 m_IDirect3DTextureX::~m_IDirect3DTextureX (0790F6D8) deleting interface!
11756 18:46:20.529 m_IDirect3DTextureX::~m_IDirect3DTextureX (0790F908) deleting interface!
11756 18:46:20.529 m_IDirect3DTexture9::~m_IDirect3DTexture9 (078CE7F8) deleting interface!
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.529 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.534 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.546 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.553 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.560 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.568 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.575 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.584 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.584 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.584 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.584 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.584 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.584 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.584 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:20.585 m_IDirect3DViewportX::SetViewport Warning: 'Scale homogeneous' Not Implemented:  ScaleX: 512 ScaleY: 512 MaxX: 1 MaxY: 0.75
11756 18:46:26.772 m_IDirect3DDeviceX::~m_IDirect3DDeviceX (0786B510) deleting interface!
11756 18:46:26.780 m_IDirect3DX::~m_IDirect3DX (0761A728) deleting interface!
11756 18:46:26.975 m_IDirect3DDevice9Ex::~m_IDirect3DDevice9Ex (07684B18) deleting interface!
11756 18:46:26.975 m_IDirect3DVertexBuffer9::~m_IDirect3DVertexBuffer9 (078CE998) deleting interface!
11756 18:46:26.975 m_IDirect3DVertexBuffer9::~m_IDirect3DVertexBuffer9 (078CDB40) deleting interface!
11756 18:46:26.975 m_IDirect3DVertexBuffer9::~m_IDirect3DVertexBuffer9 (0765C980) deleting interface!
11756 18:46:26.975 m_IDirectDrawX::CreateD3D9Device Direct3D9 device! 2560x1600 refresh: 0 format: D3DFMT_UNKNOWN wnd: WND(007C0E2C,Freespace2Class,{0,0,1024,768}) params: {2560,1600,D3DFMT_UNKNOWN,1,0,0,1,WND(007C0E2C,Freespace2Class,{0,0,1024,768}),1,0,D3DFMT_UNKNOWN,0x0,0,0x80000000} flags: 0x46
11756 18:46:26.975 UpdatePresentParameter Removing window WS_EX_TOPMOST
11756 18:46:27.240 Creating interface m_IDirect3DDevice9Ex::m_IDirect3DDevice9Ex (12E0B110) IID_IDirect3DDevice9
11756 18:46:27.296 Quiting DxWrapper
11756 18:46:27.297 Unloading libraries...
11756 18:46:27.297 DxWrapper terminated!
@elishacloud
Copy link
Owner

elishacloud commented Sep 18, 2024

Thanks for the logs. This game is using Direct3D v2. So far all v2 games have this issue with dxwrapper. I think it is a texturing issue. Currently Dd7to9 works best with DirectDraw v1 to 7 games and with Direct3D v5, 6, and 7 games. I plan to fix the v2 games soon.

@wolfestridershooter
Copy link
Author

Thanks for the lightning fast response, I will be patiently waiting for v2 support c:

@elishacloud
Copy link
Owner

On the Compatible Games page it says Freespace 2 is compatible although it just shows a black screen after the intro cutscene plays.

I don't remember which setting I used in dxwrapper in the past to get this working before. I don't have it setup now so I cannot check. But it wasn't dd7to9. If you are just trying to get the game working and you are not worried about converting it to Direct3D9 then you could try enabling DDrawCompat. That may get the game working.

@wolfestridershooter
Copy link
Author

wolfestridershooter commented Sep 20, 2024

I could have sworn I tried it with DDrawCompat before or maybe I also had Dd7to9 set accidentally. Either way I did get it to work using DDrawCompat and DDrawCompatDisableGDIHook although the intro cutscene will not play and kicks me straight to the title screen. The rest of the game and 3D views seem to work fine except any cutscene will just get skipped with this error being displayed in the log: ERROR: Failed to create the compat primary surface: 0x88760091
Here's the full log:

32840 22:25:02.279 Starting DxWrapper v1.2.7200.25
32840 22:25:02.279 Running from: C:\Program Files (x86)\Steam\steamapps\common\Freespace 2\dxwrapper.dll
32840 22:25:02.279 Reading config file: C:\Program Files (x86)\Steam\steamapps\common\Freespace 2\dxwrapper.ini
32840 22:25:02.279 LENOVO 82WQ Legion Pro 7 16IRX8H (Notebook)
32840 22:25:02.279 LENOVO LNVNB161216 SDK0T76461 WIN (Notebook)
32840 22:25:02.279 Intel(R) UHD Graphics
32840 22:25:02.279 Windows 10 Home 64-bit (10.0.22621)
32840 22:25:02.279 fs2.exe (PID:13932)
32840 22:25:02.285 Steam game detected!
32840 22:25:02.285 Environment variable __COMPAT_LAYER = "DWM8And16BitMitigation"
32840 22:25:02.285 Windows is newer than, Windows Vista: 1 Windows 7: 1 Windows 8: 1
32840 22:25:02.285 Disabling High DPI Scaling...
32840 22:25:02.285 Loaded library: user32.dll
32840 22:25:02.285 Loaded library: shcore.dll
32840 22:25:02.285 Loading 'ddraw.dll'...
32840 22:25:02.285 Hooking ddraw.dll APIs...
32840 22:25:02.285 Enabling DDrawCompat
32840 22:25:02.285 Process path: C:\Program Files (x86)\Steam\steamapps\common\Freespace 2\fs2.exe
32840 22:25:02.285 Loading DDrawCompat dynamically from C:\Program Files (x86)\Steam\steamapps\common\Freespace 2\dxwrapper.dll
32840 22:25:02.285 Loaded library: winmm.dll
32840 22:25:02.285 Loaded library: uxtheme.dll
32840 22:25:02.285 DDrawCompat v0.3.1 version loaded successfully
32840 22:25:02.285 DxWrapper loaded!
32840 22:25:02.402 Installing display mode hooks
32840 22:25:02.405 Installing registry hooks
32840 22:25:02.405 Installing Direct3D driver hooks
32840 22:25:02.405 Installing Win32 hooks
32840 22:25:02.414 Hooking user mode display driver: C:\Windows\System32\DriverStore\FileRepository\nvlti.inf_amd64_d4bea506394bce7a\nvldumd.dll+0x259d0
32840 22:25:02.529 Dynamic vertex buffers are available
32840 22:25:02.529 Dynamic index buffers are available
32840 22:25:02.530 Checking source color key support: passed
32840 22:25:02.532 Installing DirectDraw hooks
32840 22:25:02.532 Installing Direct3D hooks
32840 22:25:02.535 Finished installing hooks
32840 22:25:03.536 ERROR: Failed to create the compat primary surface: 0x88760091
32840 22:25:06.398 Quiting DxWrapper
32840 22:25:06.398 DDrawCompat detached successfully
32840 22:25:06.398 Unloading libraries...
32840 22:25:06.398 DxWrapper terminated!

Without DDrawCompatDisableGDIHook enabled the cutscene will play but the screen will always be black even after the cutscene finishes.
Here's the log without DDrawCompatDisableGDIHook enabled

31656 22:20:45.309 Starting DxWrapper v1.2.7200.25
31656 22:20:45.309 Running from: C:\Program Files (x86)\Steam\steamapps\common\Freespace 2\dxwrapper.dll
31656 22:20:45.309 Reading config file: C:\Program Files (x86)\Steam\steamapps\common\Freespace 2\dxwrapper.ini
31656 22:20:45.309 LENOVO 82WQ Legion Pro 7 16IRX8H (Notebook)
31656 22:20:45.309 LENOVO LNVNB161216 SDK0T76461 WIN (Notebook)
31656 22:20:45.309 Intel(R) UHD Graphics
31656 22:20:45.314 Windows 10 Home 64-bit (10.0.22621)
31656 22:20:45.314 fs2.exe (PID:14640)
31656 22:20:45.319 Steam game detected!
31656 22:20:45.319 Environment variable __COMPAT_LAYER = "DWM8And16BitMitigation"
31656 22:20:45.319 Windows is newer than, Windows Vista: 1 Windows 7: 1 Windows 8: 1
31656 22:20:45.319 Disabling High DPI Scaling...
31656 22:20:45.319 Loaded library: user32.dll
31656 22:20:45.319 Loaded library: shcore.dll
31656 22:20:45.319 Loading 'ddraw.dll'...
31656 22:20:45.319 Hooking ddraw.dll APIs...
31656 22:20:45.319 Enabling DDrawCompat
31656 22:20:45.319 Process path: C:\Program Files (x86)\Steam\steamapps\common\Freespace 2\fs2.exe
31656 22:20:45.319 Loading DDrawCompat dynamically from C:\Program Files (x86)\Steam\steamapps\common\Freespace 2\dxwrapper.dll
31656 22:20:45.319 Loaded library: winmm.dll
31656 22:20:45.320 Loaded library: uxtheme.dll
31656 22:20:45.320 DDrawCompat v0.3.1 version loaded successfully
31656 22:20:45.320 DxWrapper loaded!
31656 22:20:45.436 Installing display mode hooks
31656 22:20:45.439 Installing registry hooks
31656 22:20:45.439 Installing Direct3D driver hooks
31656 22:20:45.439 Installing Win32 hooks
31656 22:20:45.447 Hooking user mode display driver: C:\Windows\System32\DriverStore\FileRepository\nvlti.inf_amd64_d4bea506394bce7a\nvldumd.dll+0x259d0
31656 22:20:45.579 Dynamic vertex buffers are available
31656 22:20:45.579 Dynamic index buffers are available
31656 22:20:45.581 Checking source color key support: passed
31656 22:20:45.583 Installing DirectDraw hooks
31656 22:20:45.583 Installing Direct3D hooks
31656 22:20:45.586 Installing GDI hooks
35676 22:20:45.620 Loaded library: dwmapi.dll
31656 22:20:45.621 Finished installing hooks
31656 22:21:02.936 Quiting DxWrapper
31656 22:21:02.936 DDrawCompat detached successfully
31656 22:21:02.936 Unloading libraries...
31656 22:21:02.936 DxWrapper terminated!

Although even if these issues were to be fixed with DDrawCompat I'm personally going to wait until Dd7to9 works since I'm trying to run a process that can only hook into DX9. Also it doesn't seem like DxWrapper is properly detecting which Windows version it's running on because I'm running on Windows 11 Home not Windows 10 Home like it says in the logs.

@wolfestridershooter wolfestridershooter changed the title [Freespace 2] - Black screen after intro cutscene [Freespace 2] - Black screen after intro cutscene using Dd7to9 Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants