Beginning C++, Part 2

[NOTE: I don't condone starting in C++ as a first language anymore.]

After further investigation and actual use, I would like to now recommend Michael Dawson's book "Beginning C++ Game Programming". I went to the book store, rifled through a ton of C++ programming books and after getting through my filter I settled on this book for my son Michael to start with.

Even though the title of the book sounds like you'll be getting into a bunch of fun game stuff the reality is that all the focus for the first 8 or so chapters is just on learning C. C++ comes in during the next couple chapters and builds upon what you learned about C but doesn't go too far - it keeps it simple.

Along the way you use the language to construct a few simple games that are all text-based which I believe is a great way to just focus on learning the language and some basics about game construction. So don't be expecting to be drawing graphics and making sounds and using the mouse on a graphical screen - you need another book to do that and it should be AFTER you get through this one.

I got Michael a book on coding game graphics that he's diving into now since he finished this book. I'm proud to say that he can program in C++ now after finishing this book and it's not an overly long one either. It's also very easy to understand with good explanations for the concepts.

Some things I would have liked to have seen in the book were explanations of switch() before its use, using struct{} and explanations of complex data structures, and explanations and use of printf. The book relies heavily on cout and cin which I'm not too fond of because of the syntax but they're easy to understand when it comes to printing string objects. When Michael was going through the book I taught him printf and had him convert all the couts in the book to printfs - it showed him more about what goes on inside those string objects and was less typing when he needed to print %d, %s, etc. arguments.

One important note: the gaming college Full Sail uses this book as their introductory programming course book. Michael went into Full Sail right after finishing this book so he got to do it all over again. Much easier the second time!

Try it.

Dark Forces Running on Windows Vista

I've been a huge, huge fan of LucasArt's Dark Forces (1995) for 12 years now and after moving to Windows XP I started running into some problems getting it to run properly, especially the CD-ROM detection.

Well, I found a fansite called DF-21 that had some excellent directions on how to get Dark Forces running on Windows XP. I messed around with the directions to simplify them a little bit and figured out how to get it to run on Vista. Here are my new directions for getting Dark Forces to run on Vista WITHOUT the CD in the drive:

(1) copy entire contents of Dark Forces CD to a directory (ex. d:gamesdark). Keep the directory name to 8 letters or less.
(2) run DOSBox 0.65 or higher (as of this writing, 0.70 is the current version and it works great)
(3) mount c d:gamesdark (or wherever you put the game on your hard drive)
(4) c:
(5) subst p: c: (you can use a letter other than P: as long as it's free on your system)
(6) p:
(7) cd dark
(8) type either imuse or dark to run the sound config utility or the game
(9) press ctrl-F12 until it runs smoothly (20,000+ cycles for me). With DOSBox 0.70 I didn't need to increase the cycles - worked perfectly!

Extras:
When running IMUSE for the first time, choose C for custom setup, choose Sound Blaster Pro, use all the default values (220, 5, 1 ) then choose the Advanced Menu. Select Music and choose the Roland at port 330 for the best music.

The only problem I'm having is remapping the keys because evidently Dark Forces didn't come with that ability until a later release. There's some info on the net on how to modify the JEDI.CFG file with your own scancodes and supposedly there's a DF95.EXE program somewhere that does this. Sounds like I should just write this little program to get my keys remapped.

Anyway, I'm really happy to be able to play Dark Forces again under Vista without the CD in the drive at the original framerate and with full Roland audio support!