• 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.

Archived

This topic is now archived and is closed to further replies.

Hamada AbdelRahman

Automation Error ,Err.Number=-2005530516

3 posts in this topic

vb Q: I get error when calling this function,its code is -2005530516 ,and in the dx library err enum this err constant name is (Const D3DERR_INVALIDCALL = -2005530516 (&H8876086C). I can run any game on my computer, so i guess it''s not the card! Any help appreciated. ''Starts here Dim Dx As DirectX8 Dim D3d As Direct3D8 Dim D3Ddevice As Direct3DDevice8 Dim bRunning As Boolean Private Function Initialize() As Boolean Dim DispMode As D3DDISPLAYMODE Dim D3Dwindow As D3DPRESENT_PARAMETERS Set Dx = New DirectX8 Set D3d = Dx.Direct3DCreate D3d.GetAdapterDisplayMode D3DADAPTER_DEFAULT, DispMode D3Dwindow.Windowed = 1 D3Dwindow.SwapEffect = D3DSWAPEFFECT_COPY_VSYNC D3Dwindow.BackBufferFormat = DispMode.Format Set D3Ddevice = D3d.CreateDevice _ (D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, _ Me.hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, _ D3Dwindow) Initialize = True End Function
0

Share this post


Link to post
Share on other sites
INVALIDCALL usually means that either a parameter you''ve passed to D3D is invalid or an operation you''ve requested isn''t possible.


The easiest way to find out why a D3D call returned an INVALIDCALL error is to let it tell you:

1) Make sure you''re using the DEBUG version of the D3D runtime is installed (you were given the option when you installed the SDK).

2) Make sure that the DEBUG version of the runtime is enabled. Go to the DirectX applet in the Control Panel and look under the Direct3D tab.

3) Whilst in the DirectX control panel applet, increase the debug output level for Direct3D to maximum.

I''ve not used Visual BASIC for over 10 years so I''ve forgotten what debugging support is available and I don''t have it installed on this machine to check... If VB DOES have a debug output window:

4) Run your program and let it fail with the INVALIDCALL error.

5) Now look at all the text in your debug output window. D3D will log information, warnings, and importantly errors to that. It''ll also explain the reason WHY a D3D call has failed.


If VB doesn''t have a simple debug output window:

4) Download and run DebugView from www.sysinternals.com or use the command line debug viewer that comes with the DirectX SDK

5) Run your program and let it fail with the INVALIDCALL error.

6) Now look at all the text in the debug viewer. D3D will log information, warnings, and importantly errors to that. It''ll also explain the reason WHY a D3D call has failed.



--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com
0

Share this post


Link to post
Share on other sites
If you are using VB.NET, you''ll need to enable unmanaged debugging to get useful error messages. Right click the project, go to the Properties page, and select Configuration properties. Select the Debugging section, and make sure that "enable unmanaged debugging" is set to true.

Hope it helps,
Pinz.
0

Share this post


Link to post
Share on other sites
I say the only parameter that could be wrong is the D3DPRESENT_PARAMETERS, either D3DSWAPEFFECT_COPY_VSYNC can''t be used here, but I dont think so, or it can be because youve forgotten to initialize a field of the struct (eg hDeviceWindow,BackBufferWidth/Height). Actually, I''m almost sure it comes from this structure.

I hope I''ve been useful.


Prog, Sex & Rock''n''Roll :
I don''t like the Prog but the prog likes me.
0

Share this post


Link to post
Share on other sites