XNA Creators Club Online
Page 1 of 1 (5 items)
Sort Posts: Previous Next

What am I doing wrong?

Last post 12/22/2007 11:30 AM by LlamaAardvark. 4 replies.
  • 12/22/2007 10:07 AM

    What am I doing wrong?

    I have some experience with the XNA framework. I recently installed GS 2.0 and have made a small system (similar to the networking samples). I made some other smaller tests with the Beta but could not seem to find any sessions on my subnet (using SystemLink); I thought the release might work, but no such luck.

    I have followed the documentation and samples perfectly (as far as I can tell). I can create a session fine, but it can not be found by my other PC. I know about the GUID stuff so to run my game on both PCs I:

    1. Build the game on PC 1.
    2. Copy the output directory to my pen drive.
    3. Insert the pen drive into PC 2.
    4. Run the executable on both PCs.
    5. Host a session on PC 1.
    6. Search for sessions on PC 2 - returns no sessions found.

    Can someone run through the steps of code I need for networking (I've tried async but reverted to normal for this problem); and tell me what I need to do to run the same game on both my PCs.

    Thanks for any help.

     

     

  • 12/22/2007 10:38 AM In reply to

    Re: What am I doing wrong?

    What I would suggest before people try diagnosing a bug with no code and little information is that you try and confirm that at least one of the samples from the XNA site works. This could be NetRumble, P2P sample, Client/Server sample, network prediction sample etc, but there's nothing more frustrating than explaining how to do something only to find someone still has a firewall enabled.
  • 12/22/2007 11:21 AM In reply to

    Re: What am I doing wrong?

    All of the samples work (PeerToPeerSample, ClientServerSample, NetworkStateManagementSample, NetworkPredictionSample).

    I'm running on PC and interestlingly another issue have just cropped up:

    I have a microphone connected to my PC which works in the samples and even in the guide on my game. However my code (copied from the NetworkStateManagementSample) and the debugger shows that the NetworkGamer.IsTalking value is not working.

    Is this a bug or am I doing something wrong? Does the mic problem relate to the NetworkSession problem (which I'm still having).

  • 12/22/2007 11:23 AM In reply to

    Re: What am I doing wrong?

    Well, my first guess at the first issue is that you aren't calling session.Update() on the active NetworkSession.

    As for your IsTalking issue, you'll have to be a bit more specific about "not working". Is the IsTalking always on, always off, off when it should be on, on when it should be off...?

  • 12/22/2007 11:30 AM In reply to

    Re: What am I doing wrong?

    Darn it!

    I never knew there was a session.Update()!

    My face is going redder as I type. Adding this call to my lobby update fixes the IsTalking problem. Just going to test on PC 2 now.

    Thanks a lot.

Page 1 of 1 (5 items) Previous Next