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

WizzardUK

Tricks for the Windows Game Programming Guru, Help!

8 posts in this topic

I have just got a copy of Andre LaMothe''s book and wanted to get straight into it. I have read Chapter 1 and want to try out the FREAKOUT game. I loaded the files into Visual C++ as it said in the book but when I compile it I get an error (2 actually) telling me there should be a ; before an identifier. The exact errors are: blackbox.h(33) : error C2146: syntax error : missing '';'' before identifier ''lpdd'' blackbox.h(33) : fatal error C1004: unexpected end of file found Line 33 of blackbox.h is: extern LPDIRECTDRAW4 lpdd; // dd object I have added the library files to the list under the ''Link'' tad in ''Settings'', although some of the libraries (DSOUND3D.LIB and DMUSIC.LIB) I can not find. They are not installed using the SDK installer. I assume the problem is a setting with Visual C++, but I have no idea where to look. If anyone has the book or knows what I am doing wrong I would appreciate any help. Cheers Wizzard
0

Share this post


Link to post
Share on other sites
Did you set the lib and include folders in MSVC++ too?

Tools->Options: pic Directories tab and add the sdk folders that contain the lib and the include files accordingly (make sure you float these new folders to the top of the list

Edited by - xtrmntr on October 11, 2001 2:39:28 PM
0

Share this post


Link to post
Share on other sites
Cheers guys,that worked.

Although NOW I can''t link it because of the DSOUND3D.LIB doesn''t
exist.

Why wasn''t the file extracted when I installed the SDK (it''s the one off the CD that came with the book)?
Where can I get the individual file from and can I just copy that file into the lib directory?

Wizzard
0

Share this post


Link to post
Share on other sites
WOW! are you using the SDK from the book! thats prehistory now
the sdk there is directx 6, we are 4 versions ahead now (dx7,dx7a,dx8,dx8a)

even though you should be able to compile with dx6 (because the sample was written with that version) perhaps you might want to download one of the new versions and try again, they are backward compatible (although DX8 doesnt have the dx7 docs) so this might help you getting dsound3d, as an alternative, you might want to browse the sdk disk and look for the lib, so you can manually copy it, the installer I believe is some sort of self extracting zip, so you might be able to unzip it, and look for the file if it does not come already unziped.

Hope it helps.
0

Share this post


Link to post
Share on other sites
I downloaded the 8.0a SDK (all 150Mb of it) but I didnt know if it would be compatible (now I know different!) I have installed 8.0a on my other PC but still no DSOUND3D.LIB or DMUSIC.LIB.

Browsing the CD doesn''t help either. The files I want aren''t on the CD (the installer just copies the files, it doesnt extract them).

Can I just copy these files (when I find them!) into my LIB directory?
Can anyone send me them?

Wizzard
0

Share this post


Link to post
Share on other sites
If you read the help file which comes with the direct x 8.0 SDK it will inform you which libraries are needed for the different sections of the API. Direct Music has never been made up of one library so the reason you can''t find dmusic.lib is because it doesn''t exist. It never has. Other libraries such as striimds.lib, and quartz.lib are used instead. Check the docs to find out which headers and lib files are needed for specific components of direct x. As for the DSound3d.lib I''m not quite sure if this ever existed either. But if it did, it was integrated into the regular dsound.lib with the DirectX 8.0 release.
0

Share this post


Link to post
Share on other sites
They have NEVER existed?

I can''t understand why Andre LaMothe refers to both in his book then. The program does not link because it says it needs DSOUND3D.LIB

If they don''t exist, how do I get around the problem of Visual C++ asking for them?

Wizzard
0

Share this post


Link to post
Share on other sites
I have got it working now,
I removed dsound3d.lib and dmusic.lib from the link tab area in project settings and it''s all working.

Thanks everyone who helped,
I will buy you all a drink!

Cheers
Wizzard
0

Share this post


Link to post
Share on other sites