[Bug 17073] New: Star Trek Generations fails to display
http://bugs.winehq.org/show_bug.cgi?id=17073 Summary: Star Trek Generations fails to display Product: Wine Version: 1.1.13 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: directx-d3d AssignedTo: wine-bugs(a)winehq.org ReportedBy: Rincebrain(a)gmail.com On attempting to run Star Trek: Generations in Wine, I receive the following output, the cursor renders correctly, and an [almost] black screen (the top ~80 pixels of the screen display something non-black, in fullscreen mode - in windowed mode, nothing is visible) (see linked screenshot): $ wine sgens.exe fixme:ddraw:VGA_ioport_in Unsupported index, VGA crt controller register 0x3b4/0x3d4: 0x0f fixme:ddraw:VGA_ioport_out Unsupported index, VGA crt controller register 0x3b4/0x3d4: 0x0f (value 0x2a) fixme:ddraw:VGA_ioport_in Unsupported index, VGA crt controller register 0x3b4/0x3d4: 0x0f fixme:ddraw:VGA_ioport_out Unsupported index, VGA crt controller register 0x3b4/0x3d4: 0x0f (value 0xff) fixme:d3d:IWineD3DImpl_FillGLCaps OpenGL implementation supports 32 vertex samplers and 32 total samplers fixme:d3d:IWineD3DImpl_FillGLCaps Expected vertex samplers + MAX_TEXTURES(=8) > combined_samplers fixme:win:EnumDisplayDevicesW ((null),0,0x32f3c8,0x00000000), stub! fixme:ddraw:IDirectDrawImpl_WaitForVerticalBlank (0x13d780)->(1,(nil)): Stub fixme:ddraw:IDirectDrawImpl_GetScanLine (0x13d780)->(0x32f980): Semi-Stub fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 8 err:d3d:IWineD3DDeviceImpl_SetupFullscreenWindow (0x1440f0): Want to change the window parameters of HWND 0x20034, but another style is stored for restoration afterwards err:d3d:IWineD3DDeviceImpl_SetupFullscreenWindow (0x1440f0): Want to change the window parameters of HWND 0x20034, but another style is stored for restoration afterwards fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 16 err:d3d:IWineD3DDeviceImpl_SetupFullscreenWindow (0x1440f0): Want to change the window parameters of HWND 0x20034, but another style is stored for restoration afterwards err:d3d:IWineD3DDeviceImpl_SetupFullscreenWindow (0x1440f0): Want to change the window parameters of HWND 0x20034, but another style is stored for restoration afterwards err:d3d:IWineD3DDeviceImpl_SetupFullscreenWindow (0x1440f0): Want to change the window parameters of HWND 0x20034, but another style is stored for restoration afterwards Tested with wine-1.1.12-777-g6d0a0fb and wine-1.1.12-829-g0b8faac. Must be run with Windows 95/98/ME - game requires Win95 or above, and running with Win2K or above results in a crash (which I'm filing). -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 Chris Wales <chris(a)chrobis.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris(a)chrobis.com --- Comment #1 from Chris Wales <chris(a)chrobis.com> 2009-06-28 10:27:22 --- Confirming still present in Wine 1.1.24 - I see it also. The game seems to be running (albeit the opening movies have been skipped) - moving the cursor around the screen it changes as though it were moving over objects; game sound can be heard and clicking certain parts of the screen produces feedback sounds; however nothing but the cursor is visible. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #2 from Chris Wales <chris(a)chrobis.com> 2009-07-09 16:45:04 --- Confirming still present in 1.1.25 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #3 from Chris Wales <chris(a)chrobis.com> 2009-07-25 06:53:13 --- Confirming still present in 1.1.26 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #4 from Chris Wales <chris(a)chrobis.com> 2009-12-13 15:58:18 --- Created an attachment (id=25201) --> (http://bugs.winehq.org/attachment.cgi?id=25201) Console log of Generations output -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #5 from Chris Wales <chris(a)chrobis.com> 2009-12-13 16:01:21 --- On latest version of Wine (1.1.34) the situation has improved somewhat. The game seems to run two fullscreen windows - one of which will be completely black at any given point, and the other of which will contain the game. The two seem to alternate at different points. Oddly, when using Alt-Tab to switch to the game window, the screen does not move except for the cursor, although it is responsive as clicking areas of the screen generates the appropriate sound effects and actions. However, when using the Alt-Tab switcher (KDE4), the preview of the window shows a fully animated screen, even though the screen is static and will not animate when selected. I've attached a console log in case it sheds any light on this! -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 lahtis <lahtis(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lahtis(a)gmail.com --- Comment #6 from lahtis <lahtis(a)gmail.com> 2010-06-13 19:21:32 --- same errors Wine 1.2.-rc3 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 Juan Lang <juan_lang(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 --- Comment #7 from Juan Lang <juan_lang(a)yahoo.com> 2010-06-16 11:59:51 --- Confirming per comment 1. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 joaopa <jeremielapuree(a)yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree(a)yahoo.fr --- Comment #8 from joaopa <jeremielapuree(a)yahoo.fr> 2011-07-26 07:29:24 CDT --- still a bug in current wine? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 AdeC <adec2010(a)hotmail.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adec2010(a)hotmail.co.uk --- Comment #9 from AdeC <adec2010(a)hotmail.co.uk> 2013-07-31 06:04:10 CDT --- This is still a bug in latest wine (1.6) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #10 from AdeC <adec2010(a)hotmail.co.uk> 2013-09-28 14:55:59 CDT --- Still doesnt work with latest wine (1.7.3) BUT i have got it working with a custom playonlinux wine engine called 1.2.1-ddraw. SO if it could be found what fix this particular engine incorporated maybe we could fix this in the later versions? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #11 from AdeC <adec2010(a)hotmail.co.uk> 2013-11-24 16:56:49 CST --- I have found what changes were made to a version of wine that helps make this game work. If it's any help to anybody :) --- dlls/wined3d/swapchain_gdi.c.1.2 2010-07-16 17:05:45.000000000 +0200 +++ dlls/wined3d/swapchain_gdi.c 2010-10-27 19:39:04.000000000 +0200 @@ -101,7 +101,7 @@ void x11_copy_to_screen(IWineD3DSwapChai hSurfaceDC = front->hDC; - hDisplayWnd = This->win_handle; + hDisplayWnd = GetDesktopWindow(); hDisplayDC = GetDCEx(hDisplayWnd, 0, DCX_CLIPSIBLINGS|DCX_CACHE); if(rc) { TRACE(" copying rect (%d,%d)->(%d,%d), offset (%d,%d)\n", --- dlls/ddraw/main.c.1.2 2010-07-16 17:05:45.000000000 +0200 +++ dlls/ddraw/main.c 2010-10-27 19:46:22.000000000 +0200 @@ -53,7 +53,7 @@ static typeof(WineDirect3DCreate) *pWine WINE_DEFAULT_DEBUG_CHANNEL(ddraw); /* The configured default surface */ -WINED3DSURFTYPE DefaultSurfaceType = SURFACE_UNKNOWN; +WINED3DSURFTYPE DefaultSurfaceType = SURFACE_GDI; /* DDraw list and critical section */ static struct list global_ddraw_list = LIST_INIT(global_ddraw_list); @@ -766,6 +766,13 @@ static inline DWORD get_config_key(HKEY return ERROR_FILE_NOT_FOUND; } +void print_gdi_surface_warning() +{ + FIXME("This is a hacked ddraw defaulting to GDI even when opengl surfaces would be used!\n"); + FIXME("The normal way to default to GDI surfaces is to set \"HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\" to \"gdi\"\n"); + FIXME("If that works for you then you shouldn't use this hack.\n"); +} + /*********************************************************************** * DllMain (DDRAW.0) * @@ -839,14 +846,16 @@ DllMain(HINSTANCE hInstDLL, } else if (!strcmp(buffer,"opengl")) { - TRACE("Defaulting to opengl surfaces\n"); - DefaultSurfaceType = SURFACE_OPENGL; + TRACE("Not defaulting to opengl surfaces, in spite of the registry setting\n"); + print_gdi_surface_warning(); } else { ERR("Unknown default surface type. Supported are:\n gdi, opengl\n"); + print_gdi_surface_warning(); } } + print_gdi_surface_warning(); } /* On Windows one can force the refresh rate that DirectDraw uses by --- dlls/ddraw/ddraw.c.1.2 2010-07-16 17:05:45.000000000 +0200 +++ dlls/ddraw/ddraw.c 2010-10-27 19:48:54.000000000 +0200 @@ -479,7 +479,8 @@ IDirectDrawImpl_SetCooperativeLevel(IDir !(This->devicewindow) && (hwnd != window) ) { - HRESULT hr = IWineD3DDevice_AcquireFocusWindow(This->wineD3DDevice, hwnd); + HRESULT hr = IWineD3DDevice_AcquireFocusWindow(This->wineD3DDevice, GetDesktopWindow()); + FIXME("This is a hacked ddraw drawing to the desktop window instead of the window the app requested!\n"); if (FAILED(hr)) { ERR("Failed to acquire focus window, hr %#x.\n", hr); -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #12 from Henri Verbeet <hverbeet(a)gmail.com> 2013-11-25 04:41:40 CST --- I don't suppose this has a demo, right? The main difference that patch makes is probably from replacing the actual window with GetDesktopWindow() in various places, the rest is mostly just the same as setting "DirectDrawRenderer" to "gdi". -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #13 from AdeC <adec2010(a)hotmail.co.uk> 2013-11-25 05:46:22 CST --- I was told that i should try just setting the renderer to gdi but that didnt work but it does work using this patch. I dont have any idea if there is a demo of this game, a search didnt reveal any demo. I just have the original game -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #14 from AdeC <adec2010(a)hotmail.co.uk> --- Still doesnt run in 1.7.15 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned? Hardware|Other |x86 OS|other |Linux Severity|enhancement |normal --- Comment #15 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Is this still an issue in Wine 1.7.44 or later? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #16 from AdeC <adec2010(a)hotmail.co.uk> --- Just tested with latest wine 1.7.44 just get a black screen with flickering red box. Nothing shown -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #17 from lahtis <lahtis(a)gmail.com> --- Created attachment 56953 --> https://bugs.winehq.org/attachment.cgi?id=56953 Wine 1.6.2 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #18 from lahtis <lahtis(a)gmail.com> --- Created attachment 56954 --> https://bugs.winehq.org/attachment.cgi?id=56954 Wine 2.0-rc5-staging -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #19 from lahtis <lahtis(a)gmail.com> --- Just tested with latest wine 2.0-rc5 just get a black screen with flickering little boxes in screen . The screen is displayed at the top and bottom, something graphics. Sounds and music are right. And the mouse works. In the beginning the bottom of the screen was reflected in the subtitles. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #20 from lahtis <lahtis(a)gmail.com> --- Created attachment 56955 --> https://bugs.winehq.org/attachment.cgi?id=56955 backtrace-wine-2.0-rc5 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #21 from lahtis <lahtis(a)gmail.com> --- im noticed when game running. "Black screen" When pressing ALT + TAB key (Switch between windows) The game window, the image appears completely correct in ALT TAB box. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|Abandoned? | --- Comment #22 from Ken Sharp <imwellcushtymelike(a)gmail.com> --- Please retry in Wine 3.9 or later. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 tokktokk <fdsfgs(a)krutt.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs(a)krutt.org -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #23 from joaopa <jeremielapuree(a)yahoo.fr> --- Does the bug still occur with wine.4.9? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 Christopher May-Townsend <chris(a)maytownsend.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chris(a)maytownsend.co.uk --- Comment #24 from Christopher May-Townsend <chris(a)maytownsend.co.uk> --- With 5.6-staging, the game still fails to display with win95 set. The videos must be playing since if you hit a key you can briefly see the outline of the enterprise-D. The mouse icon changes to the one in the game and you can hear the background noises of the game playing. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=17073 --- Comment #25 from AdeC <adec2011.ac(a)gmail.com> --- Tried running this again with wine 5.20 and the terminal is throwing these errors 0590:fixme:d3d:wined3d_output_get_raster_status output 0x213440, raster_status 0x31f95c semi-stub! 05b8:fixme:d3d:surface_convert_format Cannot find a conversion function from format WINED3DFMT_B8G8R8X8_UNORM to WINED3DFMT_P8_UINT. 05b8:fixme:d3d:surface_cpu_blt Cannot convert WINED3DFMT_B8G8R8X8_UNORM to WINED3DFMT_P8_UINT. 05b8:err:d3d:cpu_blitter_blit Failed to blit. 05b8:fixme:d3d_shader:glsl_blitter_upload_palette P8 texture loaded without a palette. wine: Read access denied for device L"\\??\\Z:\\", FS volume label and serial are not available. 05b8:fixme:d3d_shader:glsl_blitter_upload_palette P8 texture loaded without a palette. 0590:fixme:ddraw:ddraw_surface1_Flip Ignoring flags 0x1. 05dc:err:iccvid:decode_cinepak CVID: corruption 15796 (QT/AVI) != 52888 (CV) 05dc:err:iccvid:decode_cinepak CVID: corruption 15796 (QT/AVI) != 1684 (CV) 05dc:err:iccvid:decode_cinepak CVID: corruption 15796 (QT/AVI) != 1684 (CV) 05dc:err:iccvid:decode_cinepak CVID: corruption 15796 (QT/AVI) != 1728 (CV) 05dc:err:iccvid:decode_cinepak CVID: corruption 15796 (QT/AVI) != 2020 (CV) 05dc:err:iccvid:decode_cinepak CVID: corruption 15796 (QT/AVI) != 2496 (CV) Same black screen as before -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla