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

Is it more complicated than this ???

Last post 02-04-2008 3:48 PM by dedokole. 11 replies.
  • 01-27-2008 4:16 PM

    Is it more complicated than this ???

    I can`t get the network samples (p2p, c/s) to find LAN sessions. I have two PC`s connected via a switch, and I can play other LAN games no problem.

    I copied the sample to both PC`s;

    started the projects;

    created non-live profiles;

    started a session on the first PC;

    ... but when I try to join that session on the seccond PC,  I keep getting "Error: No session found".


    So, is there something more complicated I should do?

    Tried turning off the firewall completely but still keep getting the same message. I've done no change to the code, just copied it and run it.

  • 01-27-2008 9:03 PM In reply to

    Re: Is it more complicated than this ???

    This may sound silly, but are you sure the network session is being updated?
    John Sedlak Xna/DirectX MVP
    Focused Games | My Blog
  • 01-28-2008 4:38 AM In reply to

    Re: Is it more complicated than this ???

    Well from what I see in the code, the network session can`t be updated unless you join.

    In other words, on the client side, UpdateNetworkSession() isn`t called since networkSession == null.
    The server side, on the other hand, does update.

  • 01-28-2008 5:24 AM In reply to

    Re: Is it more complicated than this ???

    Are you sure both the projects have the same GUID in the AssemblyInfo.cs ?

    This might not be a problem for that sample (Because it's the same files), but for the .Net Rumble kit I had to update this.

  • 01-28-2008 4:55 PM In reply to

    Re: Is it more complicated than this ???

    start sample, press HOME key - menu appears, go to personal settings, network info and check network adapter & local IP on both computers. you probably need to change that. press more info and follow the link listed there on how to change network adapter
    Currently working on : RTS Cargo Cult based on my own 3D engine MoonGate. More info soon.
  • 01-28-2008 5:29 PM In reply to

    Re: Is it more complicated than this ???

    Are you making sure that your host box is calling Update on the session even though the other computer hasn't joined? That would make for a problem as well.

    Nick Gravelyn -- Microsoft XNA MVP
    Blog | XNA Wiki | FX-izer | EasyZip | Current Adventures | Next-Gen
  • 01-28-2008 6:58 PM In reply to

    Re: Is it more complicated than this ???

    Thanks CrowdedCrane, that was the problem, but I don`t know how to solve it. The Network Adapter used to be my ADSL connection, but I disconnected it so now it`s Local Area Network (that`s half the problem solved). Under Local IP address is my LAN address (that`s good also), but under System Link Address it says "Not Active". I followed the link provided in the Network Information sheet but I didn`t find anything useful there. Couldn`t even set the LAN as default Network Adapter.

    So now the question is how to get it to recognize the System Link Address ??? 

    Is anybody knowlidgable of this kind of problematics? As I said I changed nothing in the code, so I guess I should adjust some Windows settings for my LAN. Any help would be greatly appreciated as I`am nearing a deadline for my college project.

     

  • 01-29-2008 3:36 AM In reply to

    Re: Is it more complicated than this ???

    i'm sorry i can't provide any more information, i'm stuck in this phase too - i have one computer connected to net through adsl modem and notebook connected to first comp. when i am offline both computers have 192.168.0. xxx adresses and it works, but online main comp. has address like 97.xxx.xxx.xxx (not in the same subnet) and it is not working. any help appreciated.
    Currently working on : RTS Cargo Cult based on my own 3D engine MoonGate. More info soon.
  • 01-29-2008 7:06 AM In reply to

    Re: Is it more complicated than this ???

    :)) Isn`t that just great Crane ....
    Well at least you`ve got the System Link Address recognized when you`re offline - mine says 'Not Active'.
    Anyway, I`ll keep trying to get to the bottom of this, If I find out anything I`ll be sure to post here.  

    But all aside, I don`t think the end-user of the game should be bothered with stuff like manualy changing windows settings. I mean my LAN works just fine for non-XNA games. So I guess, I`ll give it a few days, after that I'll revert to System.NET - that train`s never late.

  • 01-30-2008 5:47 AM In reply to

    Re: Is it more complicated than this ???

    I totally agree with you. if you find out something pls post here. thanks
    Currently working on : RTS Cargo Cult based on my own 3D engine MoonGate. More info soon.
  • 01-31-2008 11:45 AM In reply to

    Re: Is it more complicated than this ???

    System Link sessions only work on the same subnet, which is why you wouldn't find sessions if one PC is on your DSL network and the other is still on the private 192.168 network.

    I'll see what I can dig up about the "Not Active" state...I haven't seen that before.

    Mitch Walker
    Program Manager - XNA Game Studio
  • 02-04-2008 3:48 PM In reply to

    Re: Is it more complicated than this ???

    Mitch Walker:

    I'll see what I can dig up about the "Not Active" state...I haven't seen that before.

    Well it's an honor to be the first :)))) Anyway, since I was stuck there, I decided to abandon XNA for networking, and went with this tutorial: http://www.ziggyware.com/readarticle.php?article_id=133 based on System.Net and Sockets. It's realy simple to follow, and effective, so I easily integrated it in my 3D game, although it's original implmentation is for a very simple 2d sample, so I recommend it 100%

Page 1 of 1 (12 items) Previous Next