Archived

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

Y2Kbug

Problem with debugging DirectPlay

Recommended Posts

Hi, I have a directplay app, which I need to test and I have no connection to another network. I try to use IP 127.0.0.1, but it doesn''t work. Can you help me, please??? thx Y2K.bug

Share this post


Link to post
Share on other sites
Oh yes, DPlay''s marvelous bug of not seeing a local host game. I quickly looked at this ages ago and there wasn''t a solution or work around. It''s a good example though about why not to use DPlay because I found this quite shoddy really.

Share this post


Link to post
Share on other sites
You don''t want to be running the server on the same computer as the client anyway. How do you plan on testing multiple clients?

If you want to do network coding you''re going to need a network regardless of whether you use Winsock or DirectPlay.

Ben


IcarusIndie.com [ The Rabbit Hole | The Labyrinth | DevZone | Gang Wars | The Wall | Hosting | Dot Com | GameShot ]

Share this post


Link to post
Share on other sites
Why not? You might want to host a local stand alone server and connect to it yourself for debugging purposes... I can think of many more reasons why I''d want to have a server and client on the same machine. However I can think of no technical reason why DPlay does not allow this.

Share this post


Link to post
Share on other sites
Even when doing single client tests I run the server on a seperate PC. It allows me to have access to all the debug info I need comming off the server either on screen or to a file. I use two comps or more if needed for Winsock as well.

Sure you could run client and server on the same PC but that''s only if you''re into that kind of self inflicted torment.

It''s a moot issue. If you want to do network coding you need a network. It''s kind of an obvious prerequisit.

Ben


IcarusIndie.com [ The Rabbit Hole | The Labyrinth | DevZone | Gang Wars | The Wall | Hosting | Dot Com | GameShot ]

Share this post


Link to post
Share on other sites
Testing on your own machine is a very useful first step of bugs-tracking (let's roll to 127.0.0.1, it should work actually...).

When you'll need to test your server/client application with multiple connections, ask to a friend on your ***replace this with your favorite pager (=probably ICQ)*** list and tell him to connect to the server you will be hosting.

=> Be sure to make a log-file (on server and client side) in order to check all data which is running accross the network.

[edited by - Cahaan on October 1, 2002 8:40:15 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
There is an incredibly damned fine absolutely wonderful reason to be able to run the client and server on the same PC. So you can host a game and play against other people...duh. Sorry to be like that, but like....every multi-player game out there that doesn''t HAVE to have seperate servers (such as an mmog) allows this. I would not buy a game where i HAD to have 2 computers just so i could play a game against a couple of friends.

Share this post


Link to post
Share on other sites
"Testing on your own machine is a very useful first step of bugs-tracking"

Not if your app is full screen. Having it on a second PC is like having dual monitor debugging. It''s very very nice even when just beginning.

AP:

That would be a P2P model which works fine. For the central server model you need a second PC. Which makes sense since the whole idea of a central server model is to have a dedicated server.

You can run the "SimpleConnect" demo included with the SDK multiple times on the same PC and they''ll all get the message.

Ben


IcarusIndie.com [ The Rabbit Hole | The Labyrinth | DevZone | Gang Wars | The Wall | Hosting | Dot Com | GameShot ]

Share this post


Link to post
Share on other sites
DirectPlay poses no such restrictions.
You should have no problem connecting to a session hosted on the same machine as your client.
I am guessing that you are not setting your addresses correctly, or that you are not using your enumeration responses correctly. I have written many apps using DirectPlay that both host and connect to a session on the same machine.


"It''s a good example though about why not to use DPlay because I found this quite shoddy really."

I have yet to see an example.

Share this post


Link to post
Share on other sites
It is all fine. Just now I test it through modem, so it is too expensive for me and my friends on ICQ doesn''t have time to test every five minutes new version!!! I have already tried IP 127.0.0.1, but it doesn''t work But I don''t want why!!!!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Running the server and client on the same machine is NOT a P2P model. P2P has nothing to do with the machines the programs are running on, it has to do with how you implement your network architecture.

Share this post


Link to post
Share on other sites
"Running the server and client on the same machine is NOT a P2P model."

Not necessarily. I don''t know of any professional games where you have to run the client and server in a seperate process on the same computer.

Generally the client and server are the same program at that point.

Ben


IcarusIndie.com [ The Rabbit Hole | The Labyrinth | DevZone | Gang Wars | The Wall | Hosting | Dot Com | GameShot ]

Share this post


Link to post
Share on other sites
Actually most games allow you to run a dedicated server and the client on the same machine, if that is what you wish to do. Think of Quake, Battlefield 1942 etc as these are all good examples. They also have the server and client being together as an option, but to say you know of know professional games is a bit blinkered.

Anyway back to the original point, write a bug report to MS and maybe one day htey will fix it.

Share this post


Link to post
Share on other sites
Run a sample from the SDK and try to connect to a session hosted on the same machine.

What DX version are you using? What version of Dplay are you using?

Right off the bat, I think that you are trying to connect to the server through the same port that it is hosting on, which is not allowed.

Share this post


Link to post
Share on other sites
Hi, I am using DX 8.1a and DPlay 7.
Thank you for that ports I have tried it and it works. Because I think, that I must enter the same ports on the both client and server. THANK YOU FOR YOUR POSTING AND HELP

Share this post


Link to post
Share on other sites
quote:
Original post by Y2Kbug
Hi, I am using DX 8.1a and DPlay 7.
Thank you for that ports I have tried it and it works. Because I think, that I must enter the same ports on the both client and server. THANK YOU FOR YOUR POSTING AND HELP


I don''t think there''s something like DP7. The previous version before 8 was 4 I think. Do us all a favor and just use 8.

Share this post


Link to post
Share on other sites
"Do us all a favor and just use 8."

Oh yes, it''s such a burden to us that he''s using DP4 or whatever.

Clue time: DPlay from DX7 works great. The only thing I don''t like about it is the fact you can''t specify the port to use.

Ben


IcarusIndie.com [ The Rabbit Hole | The Labyrinth | DevZone | Gang Wars | The Wall | Hosting | Dot Com | GameShot ]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If I have the DX8 SDK installed can I write code from DX7? Like say I have a book that teaches DirectPlay 7, would that code work in the DX8 SDK?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Yes, because COM interfaces aren''t allowed to change and are always distributed with the new interfaces so that code won''t break just ebcause someone installs the latest version.

Share this post


Link to post
Share on other sites