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

PC to PC

Last post 04-10-2008 12:30 AM by ZSharp. 11 replies.
  • 03-08-2008 1:24 AM

    PC to PC

    what do you need to run a PC to PC peer to peer  networking game? are there any tutorials on this subject? im loking into it a little more as i progress with my game so i hope someone can drag me into this!
  • 03-08-2008 3:30 AM In reply to

    Re: PC to PC

    Among the Samples on this site, there is also a Peer-to-Peer sample.

     

  • 03-08-2008 4:16 AM In reply to

    Re: PC to PC

    i was told that in order to play over wan and use XNA, even if its two pcs you both need a gold membership and also need the CC, i think im opting to use c# lidgren, but im confused as to how to use it, i want peer to peer, so in order for two player to connect to one another that means that both needs a server and a client right?
  • 03-08-2008 4:29 AM In reply to

    Re: PC to PC

    You are talking about two different network setups. You can either do a client-server approach where one machine acts as a central server, taking primary responsibility for making sure all the machines stay in synce, or you can do a peer-to-peer system where each machine takes partial responsibility for the world and then sends that out to the other machines.

    Even if you are using a different networking API, I would still suggest looking at the samples on this site. They are a clean example of how the networking architecture for the two systems work.

    Nick Gravelyn -- Microsoft XNA MVP
    Blog | XNA Wiki | FX-izer | EasyZip | Current Adventures | Next-Gen
  • 03-08-2008 12:42 PM In reply to

    Re: PC to PC

    well let me tell you a little bit about my game as of now.

     

    really the game right now is just a tile map with a user running around, for simplicity sake i want to be able to see another user running around on my screen, later on in my game i want to be able to have multiple users in one game, eventually i think it would be best to have a client/server.  but right now i think its simpler to do a peer to peer, which means one person becomes the host and one becomes the client.

     

    so in orer to do this i would need some help, i have no idea what im doing at all. lol

     

    people say to use that lidgren that way you can by pass the use of LIVE but i dunno how to use it.

  • 03-27-2008 9:08 AM In reply to

    Re: PC to PC

    ouch. **
    If you don't know what your doing then XNA is not for you - yet!
    You need to work some to combat the learning curve - it is lowered with XNA but still there.

    Read some C# books like "Illustrated C# 2005".

    Try to follow some C# tutorials on the web.
    Some are even with XNA in mind.

    After you have coded some sprites, spritefonts etc. yourself then try the tutorials on this site.

    There is a free peer-to-peer example on this site and you don't need a subscribtion for PC to PC afaik.

     

  • 03-29-2008 1:37 PM In reply to

    Re: PC to PC

    PifPafPuf:
    There is a free peer-to-peer example on this site and you don't need a subscribtion for PC to PC afaik.


    You don't need a CC subscription for PC to PC system link, but for anything online with the XNA networking you must have a CC subscription.

    Nick Gravelyn -- Microsoft XNA MVP
    Blog | XNA Wiki | FX-izer | EasyZip | Current Adventures | Next-Gen
  • 04-08-2008 9:43 PM In reply to

    Re: PC to PC

    willthiswork89:
    what do you need to run a PC to PC peer to peer  networking game? are there any tutorials on this subject? im loking into it a little more as i progress with my game so i hope someone can drag me into this!


    You do not need any subscription, and you can use socket stream or datagram sockets.  I suggest you read up on network protocols, client / server architecture.  Once you are familar how that works, I then suggest learning C# Network programming using sockets.  Once you get threw that, you will understand why you do not need any xbox live membership and how you can position your game logic to take advantage of your final goals.

    It will take you a while to get comfortable but stick with it, in the long run you will be ok.



    _______________________________
    http://lifeofadeveloper.blogspot.com/
  • 04-09-2008 1:01 PM In reply to

    Re: PC to PC

    You can use the XNA Framework networking API (no need to bother with lower level things like raw sockets) without any subscription as long as you are running over a local network. See here.
    XNA Framework Developer - blog - homepage
  • 04-09-2008 1:04 PM In reply to

    Re: PC to PC

    its been quite a while since i have checked this thread! since this post ive implemented a server/ client which allows 32+ people in at once. using lidgren c# to do so. so far ive implemented smooth movement based on prediction. i also have implemented bullets and the damaging system, which was very hard but i just have beat past it. I have implemented a radarsystem which shows equipment in the display screen of the world. (its 2d) so things are getting quite large fast!
  • 04-09-2008 8:23 PM In reply to

    Re: PC to PC

    good job. thanks to the power of the internet it looked like you did it all in one night !



    _______________________________
    http://lifeofadeveloper.blogspot.com/
  • 04-10-2008 12:30 AM In reply to

    Re: PC to PC

    Very nice! have you managed to run and play it over the internet ?

Page 1 of 1 (12 items) Previous Next
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG