Jump to content
  • Advertisement

Archived

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

helix

DirectPlay8 client/server -- Groups

This topic is 5793 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

What is the function of a group? Are they necessary for a simple game? I''m able to send some messages with no problem but I''m wondering if I should be using them. If they work how I would expect them to (arbitrary grouping of players), I don''t need them for my game. However, if their function is different from this, I may need to use them. So what''s the deal with these?

Share this post


Link to post
Share on other sites
Advertisement
The intention with the group is to speed up packets that all players of the group should receive, such as a "send packet to group" instead of a "broadcast" or "loop through all players and if they should get the packet send it to them". DirectPlay is meant to use multicasting when you are using groups, but as it says in the documentation:

"Note: Multicasting is not supported for this release"

I''m not an expert on multicasting, but as far as I have understood, multicasting means that you only send a single packet from the server but that it has several destination addresses. Obviously this should be a lot faster... when DirectPlay supports it, of course (DX9, perhaps?).

I had planned to use DP Groups in my online RPG. My strategy was that each player owned its own group and added or removed players depending on how close they were in the world. But, for reasons I''ve forgotten now, I decided to use a normal std::list of players instead and send packets with a normal "send to player" instead of "send to group" (I think it was because it was rather common that the active player shouldn''t receive the same packet as his "neighbors").

I hope this helps a little, at least


My Stuff : [ Whispers in Akarra (online rpg) || L33T WAR (multiplayer game) || The Asteroid Menace (another game) ]

Share this post


Link to post
Share on other sites
Yes, thanks. That''s pretty much what I was thinking. So I''m not going to worry about groups at all for now then heh.

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!