• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
Atemu

D3D11CreateDevice failed

31 posts in this topic

Hello,

 

I have a huge problem. I can't run my program in Debug, I use the D3D11_CREATE_DEVICE_DEBUG when I want to initialize DX 11. However, it works in Release mode. I tried toreinstall the DirectX SDK but it's not successfull sad.png

Yesterday everything was working fine and not today sad.png

 

The source code that initialize DX 11:

UINT createDeviceFlags = 0;
#if defined(DEBUG) || defined(_DEBUG)  
    createDeviceFlags |= D3D11_CREATE_DEVICE_DEBUG;
#endif

D3D_FEATURE_LEVEL featureLevel;
HRESULT hr = D3D11CreateDevice(
		0,                 // default adapter
		md3dDriverType,
		0,                 // no software device
		createDeviceFlags, 
		0, 0,              // default feature level array
		D3D11_SDK_VERSION,
		&md3dDevice,
		&featureLevel,
		&md3dImmediateContext);

if( FAILED(hr) )
{
	MessageBox(0, L"D3D11CreateDevice Failed.", 0, 0);
	DXTrace( __FILE__, __LINE__, hr, DXGetErrorDescription(hr), FALSE );
	return false;
}

These are the information I get:

First-chance exception at 0x7751c41f in SpinningCube.exe: Microsoft C++ exception: _com_error at memory location 0x0031ec88..
An undetermined error occurred hr=E_FAIL (0x80004005)

Thanks in advance !

0

Share this post


Link to post
Share on other sites

I'm getting the same problem as well. I think it has something to do with the update yesterday.

0

Share this post


Link to post
Share on other sites

I'm getting the same problem as well. I think it has something to do with the update yesterday.

I also installed the update yesterday :(

0

Share this post


Link to post
Share on other sites

You've got to be kidding me. Now in order to debug shaders I need to use the Graphics Diagnostic tool that requires you to buy Visual Studios. That's ridiculous.

No, that's Microsoft...

Edited by Atemu
0

Share this post


Link to post
Share on other sites

Solution found for the D3D11_CREATE_DEVICE_DEBUG flag:

For developers currently working on applications in Microsoft Visual Studio 2010 or earlier using theD3D11_CREATE_DEVICE_DEBUG flag, be aware that calls to D3D11CreateDevice will fail. This is because the D3D11.1 runtime now requires D3D11_1SDKLayers.dll instead of D3D11SDKLayers.dll. To get this new DLL (D3D11_1SDKLayers.dll), install the Windows 8 SDK, Visual Studio 2012, or the Visual Studio 2012 remote debugging tools. See the Debug Layer documentation for more info. You can download Visual Studio 2012 remote debugging tools from either of these links:
0

Share this post


Link to post
Share on other sites

Yeah this whole thing is pretty bad. I really don't like that they've effectively killed PIX, and their replacement requires a paid version of Visual Studio.

2

Share this post


Link to post
Share on other sites

Forgive me if I missed something, but does this require you to have the professional edition of Visual Studio 2012?  What about the express edition?  If the former is true, then that's really unfortunate for the large number of indie game devs that can't afford it.  No disrespect to Microsoft, but wow, that doesn't sound like it will go down very well with Windows devs, and maybe increase the piracy rate for their professional IDE.  And people complain about Apple...

 

Shogun.

 

EDIT: Okay, it does require the paid version.  So, what is Microsoft thinking?  That only the big time professional devs can debug their games? \/_\/ 

Edited by blueshogun96
0

Share this post


Link to post
Share on other sites

Yeah I think it's a really poor move on their part. This means that if you want a free graphics debugging tool you'll have to stick to Nsight and GPU PerfStudio.

2

Share this post


Link to post
Share on other sites

 If the former is true, then that's really unfortunate for the large number of indie game devs that can't afford it.

Yeah that's really disappointing.

If you're strapped for cash, you can actually buy a professional version of an older VS version such as 2008 for very cheap, but the latest version always costs a kidney!

2

Share this post


Link to post
Share on other sites

It seems that Microsoft is determined on making the lives of indie developers/students a lot harder... First they stop supporting XNA and now this, I'm pretty sure developing for the next XBox will be close to impossible for indies, let's hope the PS4 will be more indie friendly.

 

I'm just glad my University provides Visual Studio 2012 Ultimate licenses for free to all students.

1

Share this post


Link to post
Share on other sites

MJP wasn't at the summit this year.  But the rest of us gave the feedback to them that the VS tools provided need to be in the free version (and also not hidden under the C++ parts of Visual Studio). They did seem to hear the message but I have no idea how fast they can react even if they agree with it.

2

Share this post


Link to post
Share on other sites

I have tried nSIght and GPU PerfStudio 2.0 as well as Pix.  Each application crashes upon startup now.  They worked fine prior to the update that we are discussing.  Does nSight or any of the other applications run for anyone who has done the update? if so, have you done anything besides installing the Windows 8 SDK.

 

I am using windows 7 and visual studio 2010

 

thanks much

0

Share this post


Link to post
Share on other sites

I just tried the release candidate of NSight 3.0 on Win7 with VS 2010 and it seemed to work fine. Are you still using version 2.2?

0

Share this post


Link to post
Share on other sites

yea, i am using version 2.2  

 

where is version 3.0  when i go to nvidia all i see is version 2.2 for visual studio 2010

0

Share this post


Link to post
Share on other sites

 If the former is true, then that's really unfortunate for the large number of indie game devs that can't afford it.

Yeah that's really disappointing.

If you're strapped for cash, you can actually buy a professional version of an older VS version such as 2008 for very cheap, but the latest version always costs a kidney!

 

Really?  I thought that it required you to have VS 2012 professional edition.  Maybe I didn't read it right.  In that case, I'm good because I have 2010 professional.  I got it as a gift from Microsoft about a year or two ago.

 

Shogun.

0

Share this post


Link to post
Share on other sites

Does Microsoft announced earlier that this kind of update would take place ? Or it was described only in update ?

 

In my opinion this is critical hit for game creativity ( Indie Games ) written on DirectX. That's really sad

 

______________________________________________________________________________________________________________

 

Geek Message Blog

The steps I take to make a dream come true:

 

http://geekmessage.wordpress.com

Edited by Cthuga
0

Share this post


Link to post
Share on other sites

 

 If the former is true, then that's really unfortunate for the large number of indie game devs that can't afford it.

Yeah that's really disappointing.

If you're strapped for cash, you can actually buy a professional version of an older VS version such as 2008 for very cheap, but the latest version always costs a kidney!

 

Really?  I thought that it required you to have VS 2012 professional edition.  Maybe I didn't read it right.  In that case, I'm good because I have 2010 professional.  I got it as a gift from Microsoft about a year or two ago.

 

Shogun.

 

He is just referring to the price of the SKU, not the functionality of the graphics debugger.  The graphics debugger is currently only available in the Pro or better version of VS2012.

 

Does Microsoft announced earlier that this kind of update would take place ? Or it was described only in update ?

 

In my opinion this is critical hit for game creativity ( Indie Games ) written on DirectX. That's really sad

 

______________________________________________________________________________________________________________

 

Geek Message Blog

The steps I take to make a dream come true:

 

http://geekmessage.wordpress.com

 

There were some hints about this (there are some links in the following blog post that would indicate this was coming...) but I don't think it was fully understood just how much of a problem this is going to be.  A bunch of the MVPs (myself included) are lobbying to get the graphics debugger put into the express edition, but there is no word on if or when that might happen.  Let's keep our fingers crossed, and if you have access to someone at Microsoft, please make a comment or send an email to indicate the necessity of this update!

0

Share this post


Link to post
Share on other sites

I just uninstalled the KB "update" that killed PIX.  I was gave nSight a whirl, but it was very slow, and crashed on me continously.  Within 10 minutes of starting the uninstall, and rebooting and launching PIX, i was able to fix my pixel shader, and now i can move on.

 

 

woot woot

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0