• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
dongzhe

Game Lobby

11 posts in this topic

HI guys I am try to make a game lobby, it would have same purpose as Garena. people could login and enter a room, player could play a game with people in same room. the game i would like to have are like warcraft, Star Craft , CS and so on. as we know, these game are communicate via UDP broadcast. the host will broadcast data to all LAN. UDP broadcast will be rejected by internet. therefore the lobby would establish a virtual LAN, player from different locations in the world could see each other and play the games together. When i say VLAN, please don't misunderstand with normal "VLAN". they are different. "VLAN" only works at same location, but what I need is across the internet. here is some of my ideas: 1. VPN, but I think it will not work well, it will cause too much overhead. 2. develop your own stuff like vpn, IP encapsulation, get rid of security. I am not too sure. I hope you could help me with 1. What method I could use to see each other, jion the host, play the games. but keep this in mind all the game i am talking about using UDP broadcast 2. any suggestions with that when game start, should the lobby act like data exchange center or all the data goes among the players only? and how to achieve the your suggestions i know it is big question, but any small ideas would help. if any one have same interest, you could join the group NetworkGaming@groups.live.com
0

Share this post


Link to post
Share on other sites
These games don't communicate via UDP broadcast, just UDP (and not even multicast). UDP will not be rejected by the internet (or else, most multiplayer games would not even work), but broadcast will.

Why would you need broadcast? Advertising/discovering the rooms? There are virtual LAN solutions, but from the top of my head I can't remember. Maybe you ought to post in the networking forums instead.
0

Share this post


Link to post
Share on other sites
Quote:
Original post by oliii
These games don't communicate via UDP broadcast, just UDP (and not even multicast). UDP will not be rejected by the internet (or else, most multiplayer games would not even work), but broadcast will.


Yes, may be you are right about it, when the game start, they talk via UDP only, but when you set a host, you are broadcasting.
0

Share this post


Link to post
Share on other sites
Not in the strict sense. 'Broadcasting' is creating a UDP broadcast socket, which works only on LAN (or virtual LAN). Basically telling the routers (under the same domain) to send that packets to everyone connected to them. On the Internet, that's just not possible :)

The host indeed 'broadcast' to the clients of the session (game lobby or otherwise), but it's just using a normal UDP socket (or several, one per client, although one for the entire game will be enough, like for XBox Live games), to the clients connected to the session.

The client connections, registrations, keep-alive and disconnections are usually ad-hoc solutions loosely based on the TCP/IP protocols.

So in essence, the host sends multiple UDP packets, via a basic UDP socket. That is still sending basic UDP packets.

These packets travel the internet quite happily, however you have to go through router security, as most users will be behind a firewall / router (NAT punchthrough).

There is talk of bringing multicast sockets, that reduced the overall bandwidth required from the host end-point, although that's not really feasible and supported at this time (and will it ever).

If you want to use a virtual LAN as a basis for your game, this has been done before, for example to play Quake across the Internet. But it's really not how most games do it.
0

Share this post


Link to post
Share on other sites
look, I don't have control over the source code of these games, when you host a game, it will work only in LAN, they will broadcast the data to other pc in LAN(even you are outside of firewall, broadcast will not going onto internet) to see if any other players is alive and setup the connection. these data should be captured, encapsulated and then send to game lobby.

when game lobby for exmaple has three clients, one clent host a game, and other two client jion the this host. when game start game lobby should no longer be a data exchanger. two connect should be setup. client 1 to host and client 2 to host.

assume I have all the IP info about these three client, how to make them to talk to each other by themself. ppp? L2TP? any ideas? detials?
0

Share this post


Link to post
Share on other sites
Post your question in networking forums for virtual LAN software pros and cons.
0

Share this post


Link to post
Share on other sites
Instead of writing your own you could use something like RakNet. It provides a lobby system and it is free to use until you earn over $250,000. I have not checked myself but it might be possible to just use the lobby features without anything else from the RakNet system.

RakNet by Jenkins Software

The Lobby System

0

Share this post


Link to post
Share on other sites
Quote:
Original post by kbar
Instead of writing your own you could use something like RakNet. It provides a lobby system and it is free to use until you earn over $250,000. I have not checked myself but it might be possible to just use the lobby features without anything else from the RakNet system.

RakNet by Jenkins Software

The Lobby System



thanks lot man, but I am more interesting in technical side of it. do you know any open source ?

[Edited by - dongzhe on December 10, 2009 5:13:53 PM]
0

Share this post


Link to post
Share on other sites
Is there a working version of RakNet that a person, me, could check out without needing to learn how to use compilers and such? I am trying to get a old demo back online without using something like Hamachi because it is very unreliable, same with BattleLan. Perhaps some executable to mess with? I am a slow learner and like starting out with something then add to it, remove or simply revamp beyond all recognition, assuming it doesn't step on anyones toes doing so.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0