WineHQ
Bug Tracking Database – Bug 35405

 Bugzilla

 

Last modified: 2014-07-14 13:51:52 UTC  

NoLimits Coaster 2, Direct3D not supported

Bug 35405 - NoLimits Coaster 2, Direct3D not supported
NoLimits Coaster 2, Direct3D not supported
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: d3d
1.7.10
x86-64 MacOS
: P2 normal
: ---
Assigned To: Mr. Bugs
http://www.maddata.com/nolimits2/down...
: download, patch
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2014-01-18 20:54 UTC by Michael
Modified: 2014-07-14 13:51 UTC (History)
2 users (show)

See Also:
Regression SHA1:
Fixed by SHA1: d2c56a60271abc4d231c1f61510a7d24129ee815
Distribution: ---
Staged patchset:


Attachments
Debug Log (202.54 KB, text/plain)
2014-01-19 12:29 UTC, Michael
Details
Allow windowed WINED3DFMT_UNKNOWN (1.18 KB, patch)
2014-01-19 15:39 UTC, Ken Thomases
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2014-01-18 20:54:27 UTC
NoLimits Coaster 2 was recently released. When attempting to open the application, it gives the message: "windowed Direct3D rendering not supported in current display mode"

A demo can be downloaded and tested here: http://www.maddata.com/nolimits2/download03/NoLimits_2000_Demo_Install.exe
Comment 1 Ken Thomases 2014-01-19 04:20:29 UTC
Are you using a Retina MacBook Pro?  Have you configured the display to "scaled" at a resolution between "Best" and "More Space" (perhaps 1920x1200)?

If so, it's an issue I'm aware of.  Basically, the Mac APIs for reporting the current display mode shows, for example, 1920x1200 while those for listing all of the available display modes don't include 1920x1200!  They basically claim that the current display mode is not available.

This is presumably confusing Wine or the game, causing it to show that error message.

You can try temporarily switching your resolution to either Best or the highest More Space setting to see if that fixes it.
Comment 2 Michael 2014-01-19 07:05:08 UTC
Unfortunately it is not a Retina MacBook Pro.  I did try taking it off the Scaled display anyways, but still have the same issue.
Comment 3 Ken Thomases 2014-01-19 11:22:27 UTC
Huh.  Then we could probably use a +tid,+display,+d3d log.  See points 10.1 and 10.2 from here: http://wiki.winehq.org/FAQ#get_log
Comment 4 Michael 2014-01-19 12:29:20 UTC
Created attachment 47255 [details]
Debug Log

+tid,+display,+d3d
Comment 5 Michael 2014-01-19 12:29:36 UTC
Debug log added, thanks for the help.
Comment 6 Ken Thomases 2014-01-19 15:18:51 UTC
0009:trace:d3d:wined3d_check_device_type wined3d 0x1889e0, adapter_idx 0, device_type WINED3D_DEVICE_TYPE_HAL, display_format WINED3DFMT_B8G8R8X8_UNORM, backbuffer_format WINED3DFMT_UNKNOWN, windowed 0x1.
...
0009:trace:d3d:wined3d_check_device_type Unsupported display/backbuffer format combination WINED3DFMT_B8G8R8X8_UNORM / WINED3DFMT_UNKNOWN.

Seems like a wined3d bug, I think. dlls/wined3d/directx.c:wined3d_check_device_type() has a number of checks of the display and backbuffer format.  For several of the checks, the comment says the restriction only applies for full-screen mode but the check doesn't take windowed vs. full-screen into account.  The game is using windowed mode, but a supposedly full-screen-only check rejects the display/backbuffer format combination.

In fact, that function has a check which specifically allows WINED3DFMT_UNKNOWN in windowed mode, but the subsequent logic makes it impossible for that to pass.
Comment 7 Ken Thomases 2014-01-19 15:39:55 UTC
Created attachment 47256 [details]
Allow windowed WINED3DFMT_UNKNOWN

I can confirm the bug with the demo.

The attached patch fixes the problem for me.  The demo proceeds to load and play.  There are rendering problems galore, but that's a separate issue.

I have no idea if this patch is correct.  I based it entirely on the comments in the code, not any deeper understanding of the issue.  One of the wined3d developers should review.
Comment 8 Ken Thomases 2014-01-19 15:41:17 UTC
Marking confirmed.
Comment 9 Michael 2014-01-19 17:11:25 UTC
I'm able to load the game with this patch, thank-you!
Comment 10 Austin English 2014-01-19 18:12:16 UTC
(In reply to comment #7)
> Created attachment 47256 [details]
> Allow windowed WINED3DFMT_UNKNOWN
> 
> I can confirm the bug with the demo.
> 
> The attached patch fixes the problem for me.  The demo proceeds to load and
> play.  There are rendering problems galore, but that's a separate issue.
> 
> I have no idea if this patch is correct.  I based it entirely on the
> comments in the code, not any deeper understanding of the issue.  One of the
> wined3d developers should review.

I see the same issue in wine-1.7.11 on Fedora 19. Patch works there as well.
Comment 11 Henri Verbeet 2014-01-20 06:43:27 UTC
(In reply to comment #7)
> I have no idea if this patch is correct.  I based it entirely on the
> comments in the code, not any deeper understanding of the issue.  One of the
> wined3d developers should review.

It looks correct to me at first sight, but of course we'd like a test case.
Comment 12 Ken Thomases 2014-01-22 16:50:34 UTC
Comment on attachment 47256 [details]
Allow windowed WINED3DFMT_UNKNOWN

I have submitted a more thorough fix for CheckDeviceType() for windowed mode: http://source.winehq.org/patches/data/101903

I have also submitted an overhaul of the tests of CheckDeviceType() which also test windowed mode: http://source.winehq.org/patches/data/101904
Comment 13 Ken Thomases 2014-01-30 15:49:24 UTC
I believe this is fixed by http://source.winehq.org/git/wine.git/?a=commit;h=d2c56a60271abc4d231c1f61510a7d24129ee815
Comment 14 Michael 2014-01-30 16:01:49 UTC
(In reply to comment #13)
> I believe this is fixed by
> http://source.winehq.org/git/wine.git/?a=commit;
> h=d2c56a60271abc4d231c1f61510a7d24129ee815

Thank-you for your work on this Ken.  I really appreciate it.
Comment 15 Alexandre Julliard 2014-02-07 13:07:01 UTC
Closing bugs fixed in 1.7.12.
Comment 16 theroc214 2014-07-14 13:40:36 UTC
How do I add the patch into the game?
Comment 17 Bruno Jesus 2014-07-14 13:51:52 UTC
(In reply to theroc214 from comment #16)
> How do I add the patch into the game?

The patch was applied to wine, not the game. Ensure you are using a wine version >= 1.7.12

For further help please refer to the forums.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers