+ Reply to Thread
Results 1 to 8 of 8

Thread: multiplayer online game development

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    8

    Default multiplayer online game development

    Can someone help me knowing how online multiplayer works. I want to know about the games which are not necessarily turn based. I basically need to know how does client-server communication happens. Is there any standard protocol used? Does any game logic or part of game logic run on the server?

  2. #2
    Moderator
    Join Date
    Nov 2004
    Posts
    2,882

    Default

    far too broad a question for here. Try gamedev.net

    client->server comms happens like any other comms (winsock for instance). Standard protocols? well, UDP and TCP for one, but I think you mean is there a standard way of doing the game networking and the answer is pretty much no.

    Does game logic run on the server? absolutely.
    www.mindflock.com - social AI-based games

  3. #3
    Junior Member
    Join Date
    Aug 2007
    Posts
    3

    Default

    Anything that isn't on the server is pretty much open to exploitation/hacking and that is something that could kill your game before u even get it made.

    Try make as much of the game mechanics work through the server.

    I myself am not that experienced with networking but i did manage to get a server + client working by using a networking example in Blitz3D. If you go on their site there is plenty of examples and i recommend checking it out to anyone as it has helped me get into the whole concept of programming.

    Very simple but powerful and empowering to a novice such as myself .

  4. #4
    Junior Member
    Join Date
    Jan 2007
    Posts
    8

    Default

    Now let me make my question more clear. I have seen these casual online multiplayer games where about 6 player play a game against each other and one can drop a power-up or (in-game item as they call it) and it affects the opponents game. I want to know how does this happen.

  5. #5
    Senior Member
    Join Date
    Feb 2007
    Location
    Canberra, Australia
    Posts
    958

    Default

    Client sends a message saying "hey, I dropped a powerup". Server checks to see if this is possible; if so, it sends a message to everyone saying "hey, someone dropped a powerup at [this location]". They update their game states.

    If you need to ask questions like that, you really need to start networking from first principles. Try gamedev.net, as already recommended. They have a bunch of good articles.
    Inventive Dingo
    Mayhem Intergalactic - streamlined space strategy game

  6. #6
    Senior Member
    Join Date
    Aug 2004
    Location
    Arlington, VA
    Posts
    656

    Default

    Quote Originally Posted by laxmid View Post
    Can someone help me knowing how online multiplayer works. I want to know about the games which are not necessarily turn based. I basically need to know how does client-server communication happens. Is there any standard protocol used? Does any game logic or part of game logic run on the server?
    You'll need a 3rd party tool like OpenTNL or RakNet.

    It sounds like you need a lot more background information before you can ask the right question. this might help: TCP and UDP .
    Philip Ludington
    Mr. Phil Games

  7. #7

    Default

    Quote Originally Posted by MrPhil View Post
    You'll need a 3rd party tool like OpenTNL or RakNet.

    It sounds like you need a lot more background information before you can ask the right question. this might help: TCP and UDP .
    I second that, don't try to make your own network library, there are other alternatives like raknet and for flash you have already-made libs like
    www.electro-server.com

  8. #8
    Senior Member
    Join Date
    Jun 2007
    Location
    In a indie card box
    Posts
    287

    Default

    Quote Originally Posted by laxmid View Post
    Can someone help me knowing how online multiplayer works. I want to know about the games which are not necessarily turn based. I basically need to know how does client-server communication happens. Is there any standard protocol used? Does any game logic or part of game logic run on the server?
    Well actually a game which is turn based is exactly the same as any other game... user input just takes longer...
    And I'm really sorry to say this, but if you need to ask this kind of question (this general question and standard protocol), you probably should not be thinking in making any game of this kind...

    Just google for networking stuff... its a big question that one... ans too broad to just say it in a post...

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts