Jump to content
  • Advertisement

Archived

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

GroZZleR

Mouse Problems with some Examples (In Jim Adams' Book)

This topic is 5744 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I appear to be having mouse problems with "Programming Role Playing Games with DirectX". I''m not quite sure WHAT the problem is however. In example 18 (The Battle) and example 20 (the game), my mouse doesn''t appear to want to target / highlight / do anything. In Example 18, when my "Attack" or "Spell" options come up, clicking on them don''t do anything. And then I can''t click on any of the monsters either, so thats no good. And in Example 20, the game, during the first sequence with all the text, I _CAN_ click through that... But once combat begins, I can''t seem to attack the creature. I can walk around with the arrow-keys, but I can''t seem to click and attack the creature. I''ve looked at the source code, and it APPEARS that you''re supposed to use your mouse (I could be completely wrong and stupid). I haven''t really started reading the book, just playing around with the examples. Anyone know what could be causing this or whats wrong? DirectX 8.1 is installed and works with other things (like Isometric Game Programming examples and any games that use DirectX).

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by GroZZleR
...
I haven''t really started reading the book, ...
...



That would be a good place to start.


Share this post


Link to post
Share on other sites
Not exactly sure what you mean by that.

In Chapter 16, theres that demo where you walk around and attack some creatures and talk to others and such. You use spacebar to attack.

In Chapter 18, it says:
"Battle. A 3-D combat engine demo. Click the target creatures; then wait for the battle options to appear and select how to attack."

Well it doesn't appear to work when clicking with my mouse... So something is obviously up and I'm curious as to what the problem could be.

Theres no point going in-depth into a book, when I have a basic Mouse problem from the get-go. Is there?

[edited by - GroZZleR on January 23, 2003 5:32:51 PM]

Share this post


Link to post
Share on other sites
If you are not going to get "in-depth" in the book then you might want to send it to me so I can

Have you checked the book or authors sight for fixes? maybe there is a bug and if so someone else would have found it too, contacted the publisher or author and possible posted a fix on their site.

You could also, get in-depth with the book and find out why it''s not doing what you think it should be doing. RTFM.

Share this post


Link to post
Share on other sites
quote:
Original post by bslayerw
If you are not going to get "in-depth" in the book then you might want to send it to me so I can

Have you checked the book or authors sight for fixes? maybe there is a bug and if so someone else would have found it too, contacted the publisher or author and possible posted a fix on their site.

You could also, get in-depth with the book and find out why it''s not doing what you think it should be doing. RTFM.


Or, in this case, RTFB!

Share this post


Link to post
Share on other sites
I did find the solution on Jim Adams' page. I was using DirectX 8.1 and the source was all done in DirectX 8.0. There are apparently some problems with "clicking on meshes" (as the source / method has changed).

Its all cleared up now.

And WTF is your problem exactly Dave? I'm so sorry that my DirectX 8.1 SDK was conflicting with the DirectX 8.0 code. Why do you have to be so hostile to someone who has a problem?



[edited by - GroZZleR on January 23, 2003 7:54:05 PM]

Share this post


Link to post
Share on other sites
My point was that if you read the book, you might actually have an understanding of what the code was doing and be better able to find the problem.

Starting with an example from chapter 16 or 18 without having read chapters 1-18 seems kind of counter productive to me.

As to being hostile, that was not my intention. I think if you read my other posts here, you will find that I am not a hostile individual.

Share this post


Link to post
Share on other sites
Jim didn''t use the mouse much in the book. I have many questions about 3D coords and mouse after reading the book.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!