Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Wine Steam Lego Batman and d3d device error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Tue Nov 29, 2016 8:08 pm    Post subject: [SOLVED] Wine Steam Lego Batman and d3d device error Reply with quote

I'm having an issue starting a Lego Batman game on steam via wine.
Right after I select play...I get a blank white screen then the desktop returns... showing the steam gui window, a reduced blank white screen window and an error window. Here is a photo of the error window:
https://imgur.com/a/L5ZCK
I have the "wine-steam-lego batman" setup on three other computers with intel and nvidia and they all work.
Also I have other lego games that work fine - Jurassic World and Lego Movie.

I have tried the following:
I have researched the error message "Failed to create d3d device. Application will now exit. Error=0x8876086c" and basically everything is windows oriented and doesn't resolve the issue.
I have re-downloaded the lego batman game several times with the same result.
I have copied the lego batman game from another computer and the same result.

Current setup:

CI3 550
4 Gb ram
Nvidia GTX 750

Gentoo stable
Kernel 4.4.6
QT 5.6.2
Plasma 5.8.4
Frameworks 5.28
KDE Apps 16.08.3
Nvidia-drivers 361.28
Wine 1.9.20 with staging and s3tc

Any help would be appreciated.
Thanks


Last edited by davidbrooke on Tue Dec 20, 2016 5:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
rh
n00b
n00b


Joined: 19 Sep 2006
Posts: 58

PostPosted: Wed Nov 30, 2016 8:49 am    Post subject: Reply with quote

You could try running it with setting the virtual desktop in winecfg. If it doesn't help, there are some tips for debug info in this old winehq bug report, in case you haven't seen it.

https://bugs.winehq.org/show_bug.cgi?id=27781

Since it should work, another option is to try a new, clean wine prefix both with 32 and 64 bits. I didn't find a demo for this, so can't really try it myself.
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Mon Dec 05, 2016 8:52 pm    Post subject: Reply with quote

rh wrote:
You could try running it with setting the virtual desktop in winecfg. If it doesn't help, there are some tips for debug info in this old winehq bug report, in case you haven't seen it.

https://bugs.winehq.org/show_bug.cgi?id=27781

Since it should work, another option is to try a new, clean wine prefix both with 32 and 64 bits. I didn't find a demo for this, so can't really try it myself.

Thanks for the reply!
Basically I had tried everything you suggested but the virtual desktop option. I tried that and the game worked. The "virtual desktop option" seems like a "less desired path"...My kids will be operating...so expecting them to get from steam to "virtual steam" would be insane. I will need to evaluate the need on that computer if no other options become available.
Back to top
View user's profile Send private message
rh
n00b
n00b


Joined: 19 Sep 2006
Posts: 58

PostPosted: Tue Dec 06, 2016 8:40 am    Post subject: Reply with quote

davidbrooke wrote:
Basically I had tried everything you suggested but the virtual desktop option. I tried that and the game worked.


It could be an issue with resolution. Have you tried to change the resolution in game menus to match your native screen res? If there isn't an option for it you can propably edit in some config file. If it doesn't work, we could compare xrandr output from working and non-working setup.
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Wed Dec 07, 2016 12:58 pm    Post subject: Reply with quote

rh wrote:
It could be an issue with resolution. Have you tried to change the resolution in game menus to match your native screen res? If there isn't an option for it you can propably edit in some config file.

I had adjusted the resolution in two ways prior to your suggestion:
1. Edit /home/username/.wine/drive_c/users/username/Local Settings/Application Data/Warner Bros. Interactive Entertainment/LEGO Batman/pcconfig.txt
Code:
FileVersion                 2
ScreenWidth                 1920
ScreenHeight                1080
WindowWidth                 1920
WindowHeight                1080
WindowLeft                  0
WindowTop                   0
ScreenRefreshRate           60
VerticalSync                1
FSAA                        0
Widescreen                  1
TextureQuality              0
ForceMultithreadedD3D       0
IgnoreVendorPresets         0
SFXVolume                   8
MusicVolume                 6
MasterVolume                10
MusicEnabled                1
MouseSensitivity            10
InvertY                     0
Vibration                   0
BloomEnabled                1
DofEnabled                  1
DesiredShadowMethod         2
ShadowsEnabled              1
DesiredDynamicLightQuality  2
SpeedBlurEnabled            1
ProcessColourEnabled        1
EdgeAAEnabled               0
SSAOEnabled                 0
AllowVendorExtensions       1
UseHires                    0
UseHiresPending             0
ForceShaderModel            0

I changed the resolution from 1024x768 to 1920x1080.

2. While in Steam, I right clicked on the game and selected "properties" then added the following to the "set launch options" field:
-w 1920 -h 1080

Both efforts resulted with the same error message.

Quote:
If it doesn't work, we could compare xrandr output from working and non-working setup.

Please post an xrandr example and specify the key points to compare.
Thanks
Back to top
View user's profile Send private message
rh
n00b
n00b


Joined: 19 Sep 2006
Posts: 58

PostPosted: Thu Dec 08, 2016 8:35 am    Post subject: Reply with quote

davidbrooke wrote:
Please post an xrandr example and specify the key points to compare.


Just running xrandr on a xterm as regular user should be enough. This shows the resolutions and refresh rates X can use on the connected monitor.

Code:
$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+  50.00    59.94 
   1920x1080i    60.00    50.00    59.94 
   1680x1050     59.88 
   1280x1024     75.02    60.02 
   1440x900      59.90 
   1280x960      60.00 
   1152x864      75.00 
   1280x720      60.00    50.00    59.94 
   1440x576      50.00 
   1024x768      75.03    70.07    60.00 
   1440x480      60.00    59.94 
   832x624       74.55 
   800x600       72.19    75.00    60.32    56.25 
   720x576       50.00 
   720x480       60.00    59.94 
   640x480       75.00    66.67    60.00    59.94 
   720x400       70.08 
DVI-0 disconnected (normal left inverted right x axis y axis)
DVI-1 disconnected (normal left inverted right x axis y axis)


If the one game is requesting is missing, that could be it. The game might request some more or less random resolution at start, before swithing to user configured resolution. Looking for differences in a working and non-working system might give a clue what the game wants. It should be something standard like 1024x768@60. Hopefully making that resolution available to X could solve the issue. This all is just guesswork on my part, but would explain why virtual desktop mode works, and the game works on another system.

Another option is that you could just try with another monitor that you know to work with this game. There propably is a wine debug variable to get some display related debug information, but I'm not familiar enough with wine to help you with that.
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Mon Dec 12, 2016 6:26 am    Post subject: Reply with quote

Here is the xrandr output:
Code:
 ~ $ xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 1150mm x 650mm
   1920x1080     59.93*+
Back to top
View user's profile Send private message
rh
n00b
n00b


Joined: 19 Sep 2006
Posts: 58

PostPosted: Mon Dec 12, 2016 9:38 am    Post subject: Reply with quote

I guess that's your problem. You don't have even the 1920x1080@60 mode available you set in game config. That could be an issue in graphics stack or monitor. One obvious cause could be a non-direct connection to your display device, such as home theather equipment or adapters. Trying a DVI connetion and another display device would help to rule out those as possible causes.

You could try to set the 59.93 refresh rate in game's config file, but even if it works that's a workaround, not a fix. Better way would be to find and fix the underlaying issue and make 1920x1080@60 and some other common modes available.

FWIW, here a link to wiki on adding new modes manually:
https://wiki.gentoo.org/wiki/Xrandr#Screen_modes

Posting to Kernel & Hardware subsection would get more attention of people with better understanding of the graphics stack. If you do so, please include your xserver log and xrandr output along information with graphics stack. If you want to continue here, please pastebin your xserver log and make+model of display device in that case too.
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Dec 17, 2016 6:03 am    Post subject: Reply with quote

rh wrote:
You could try to set the 59.93 refresh rate in game's config file, but even if it works that's a workaround, not a fix. Better way would be to find and fix the underlaying issue and make 1920x1080@60 and some other common modes available.

I tried using the 59.93 Hz value in the config file but it didn't help.
Sometimes it's best to admit that the solution is that it just won't work??? I think that is the route I'm taking at this point. So thanks for your help!
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Tue Dec 20, 2016 5:31 pm    Post subject: Reply with quote

Due to a new install on the problem computer...I decided to take one last effort to resolve the video issue.
I had a problem with a nvidia upgrade a few months back which broke my setup. This left me with my initial problem of setting up a 720p native TV to work in 1080p and fix overscan. I found CVT and was using it when I started this thread. I re-visited my nvidia fix and found a way to make it work again. I tested the "Lego Batman game on steam via wine" and it worked as expected. It appears that CVT was the problem. For those that are interested, the following is the nvidia.conf:
Code:
# 12/20/16
# Emerson Nvidia setup
# This setup allows for steam window games
#
Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Emerson"
    VendorName     "Unknown"
    ModelName      "Hitachi Engineering Company Ltd HDMI"
    HorizSync       31.0 - 69.0
    VertRefresh     50.0 - 85.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GTX 750"
#    Option         "ModeDebug"
    Option         "ModeValidation" "NoXServerModes,NoPredefinedModes,NoVESAModes"
    Option         "NoLogo"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Emerson"
    DefaultDepth    24
    Option         "nvidiaXineramaInfoOrder" "DFP-2"
    Option         "metamodes" "1920x1080 +0+0 {viewportin=1920x1080, viewportout=1860x1046+30+16}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum