D3DError - CreateDevice failed: D3DERR_DEVICELOST

Have trouble running Legend of Grimrock 2 or do you have questions about the purchasing options? Look for help here.
Post Reply
User avatar
Dr.Disaster
Posts: 2876
Joined: Wed Aug 15, 2012 11:48 am

Re: D3DError - CreateDevice failed: D3DERR_DEVICELOST

Post by Dr.Disaster »

mindragon73 wrote:I also ran both vcredist_x64.exe and DXSETUP.exe, but sadly I still get the same error.
Run vcredist_x86.exe too.
mindragon73
Posts: 12
Joined: Wed Oct 15, 2014 8:16 pm

Re: D3DError - CreateDevice failed: D3DERR_DEVICELOST

Post by mindragon73 »

Thanks for more tips!
Ok, a saw the last post first, so i ran vcredist_x86.exe, restarted the computer, but sadly still same error.

Then I checked the config file, and displayMode was actually already set to 1.
I changed it to 2, as I saw in an old thread regarding LoG1 where someone had the same error as I have now: (viewtopic.php?f=12&t=482&start=10) , and then the computer actually started to think for a while, instead of giving an error message immediately, but a while later I got a new error message:

D3DError - D3DXXompileShader failed: ERROR_BAD_EXE_FORMAT

Also tried changing displayMode to 0 (don´t know if you even can do that), but it also gives the shader error message above.
If I switch back to displayMode=1 then I get the original message again (D3DError - CreateDevice failed: D3DERR_DEVICELOST).

In the old threads I saw something about resolution, but the config file seems to detect my resolution (1920x1080).

Any more suggestions? Any tips are welcome as I really want to try this game! :-)
User avatar
Dr.Disaster
Posts: 2876
Joined: Wed Aug 15, 2012 11:48 am

Re: D3DError - CreateDevice failed: D3DERR_DEVICELOST

Post by Dr.Disaster »

Are you absolutely sure that your grafics driver installation is clean?

In case not i STRONGLY advice you to get DDU (from http://www.wagnardmobile.com/DDU/ ), uninstall ANY video driver this tool finds and then reinstall your current driver again (download before if not available anymore).
mindragon73
Posts: 12
Joined: Wed Oct 15, 2014 8:16 pm

Re: D3DError - CreateDevice failed: D3DERR_DEVICELOST

Post by mindragon73 »

I´m not sure of anything! :) But I´ve installed the latest available (stable) drivers for my card according to the Nvidia site.
I don´t know about clean though, so I´ll definitely try your unintalling program when I get home again.
(I´m actually off to Finland now).
Thanks for the suggestion!
mindragon73
Posts: 12
Joined: Wed Oct 15, 2014 8:16 pm

Re: D3DError - CreateDevice failed: D3DERR_DEVICELOST

Post by mindragon73 »

So, I downloaded and used DDU, then installed latest drivers (344,48, which was released recently).
Still the same error.
Every other game I have tried on Steam works, but not LoG, so I think I´m giving up on this game now.
Maybe I can try it in a year or so when I get a new computer.
User avatar
Dr.Disaster
Posts: 2876
Joined: Wed Aug 15, 2012 11:48 am

Re: D3DError - CreateDevice failed: D3DERR_DEVICELOST

Post by Dr.Disaster »

Can you please post your entire LoG2 "grimrock.cfg" file?
I got the feeling that a setting in there gets rejected by your DirectX system so we might have to do some manual tweaking. Perhaps it's something simple like the resolution detected was wrong and now LoG2 tries to set a resolution your DirectX rejects.
mindragon73
Posts: 12
Joined: Wed Oct 15, 2014 8:16 pm

Re: D3DError - CreateDevice failed: D3DERR_DEVICELOST

Post by mindragon73 »

Sure, it looks like this:

-- options
resolution = "1920 x 1080"
displayMode = 1
verticalSync = 2
renderingQuality = 2
textureResolution = nil
textureFilter = 3
shadowQuality = 3
ssaoQuality = 3
fogParticles = true
muteMusic = false
muteSounds = false
musicVolume = 0.8
soundVolume = 0.8
arrowIcons = false
oneClickCasting = false
disableDamageTexts = false
hideItemProperties = false
mouseLook = true
invertX = false
invertY = false
autoSave = true
tabletMode = false
cameraBobbing = true
tooltipDelay = 0
maxFrameRate = 120
debugInfo = false
console = false
consoleKey = 220
windowPosX = nil
windowPosY = nil
editorWindowPosX = nil
editorWindowPosY = nil
editorWindowWidth = nil
editorWindowHeight = nil

-- key bindings
move_forward = 87
move_backward = 83
strafe_left = 65
strafe_right = 68
turn_left = 81
turn_right = 69
rest = 82
map = 9
swap_weapons = 88
character_sheet_1 = 49
character_sheet_2 = 50
character_sheet_3 = 51
character_sheet_4 = 52
quick_save = 116
quick_load = 120

-- editor key bindings
select_tool = 49
add_object_tool = 50
draw_walls_tool = 51
draw_heightmap_tool = 52
nudge_up = 87
nudge_down = 83
nudge_left = 65
nudge_right = 68
nudge_elevation_up = 4322
nudge_elevation_down = 226
rotate_left = 81
rotate_right = 69
delete = 46
set_starting_location = 89
teleport_party = 84
swap_tiles = 88
pick_tile_left = 188
pick_tile_right = 190
increase_height = 106
decrease_height = 111
increase_ceiling_height = 8298
decrease_ceiling_height = 8303
level_up = 33
level_down = 34
level_north = 8230
level_east = 8231
level_south = 8232
level_west = 8229
zoom_in = 107
zoom_out = 109
locate_object = 8262
selection_mask = 8264
start_preview = 116
stop_preview = 4212
toggle_fullscreen = 70
toggle_collisions = 112
open_door = 90
kill_monster = 75
heal_party = 72
User avatar
Dr.Disaster
Posts: 2876
Joined: Wed Aug 15, 2012 11:48 am

Re: D3DError - CreateDevice failed: D3DERR_DEVICELOST

Post by Dr.Disaster »

mindragon73 wrote:-- options
resolution = "1920 x 1080"
displayMode = 1
verticalSync = 2
renderingQuality = 2
textureResolution = nil
textureFilter = 3
shadowQuality = 3
ssaoQuality = 3
fogParticles = true
...
"textureResolution" should not be "nil" but a number ranging from 1 to 3.

I set this value to "nil" on purpose in my installation but LoG2 detected it to be false and auto-corrected it. Looking at your card setting "textureResolution = 3" should be the correct value for you.

In case LoG2 has trouble accessing your GPU's fullscreen mode you can also try "displayMode = 2" which represent LoG run in a window with borders or "displayMode = 3" which is a borderless window.
mindragon73
Posts: 12
Joined: Wed Oct 15, 2014 8:16 pm

Re: D3DError - CreateDevice failed: D3DERR_DEVICELOST

Post by mindragon73 »

Thank you for taking your time with this Doc!
Ok, I changed "textureResolution" to "3", but sadly still same error (D3DError - CreateDevice failed: D3DERR_DEVICELOST).
If I also change "displayMode" to 2 or 3 I get the other error message (D3DError - D3DXXompileShader failed: ERROR_BAD_EXE_FORMAT)

I still haven´t tried to uninstall and then reinstall the game again, so I´m gonna try that now.
mindragon73
Posts: 12
Joined: Wed Oct 15, 2014 8:16 pm

Re: D3DError - CreateDevice failed: D3DERR_DEVICELOST

Post by mindragon73 »

Reinstallation did not help either.
Post Reply

Return to “Support and Tech Discussion”