Page 1 of 1

server protocol for gaming

Posted: Thu Jun 09, 2011 7:56 am
by marc_256
Hi all,

I just writing my second game (real 3D game)
I like to do this in a multi-user game.
So I need to communicate between 3 PC's via the web.
And transfer data from one PC to the other PC's.

Is there someone who knows how to do this and what is the best way to do this ?

- server protocol for gaming

- IP address,
- user name,
- user code,
- security code,
- data to store on the server,
- data to read from the server,
- ... ??

- Can I use all servers or must I use special servers ?


Greetz,
Marc

Re: server protocol for gaming

Posted: Fri Jun 10, 2011 6:02 pm
by blueznl
One of the important things is how to handle latency and lag.

Some questions:

- Is it for local LAN or for Internet play?
- How important is latency?
- Can you 'predict' and / or store player 'movement' or actions?
- Is there a master / host configuration?
- Can you / do you want to detect cheaters?

Re: server protocol for gaming

Posted: Sun Jun 12, 2011 1:07 pm
by marc_256
Hi blueznl,
- Is it for local LAN or for Internet play?
Internet playing (WAN)
- How important is latency?
For my first small (test) card game is it not so important.
but for the FPAG it is.

- Can you 'predict' and / or store player 'movement' or actions?
It will be so in my FPAG
- Is there a master / host configuration?
Not for now.
- Can you / do you want to detect cheaters?
Same answer, not for this game, but I'm intent to make an FPAG game.
Then I will need this.


EDIT: From an other forum, someone told me something as PHP/SQL server to start with.

Marc,

Re: server protocol for gaming

Posted: Tue Jun 14, 2011 2:56 am
by Nituvious
I have been writing a socketless(game devs don't need to open a new socket) master server that you might find interesting with your multiplayer games.
Basically what it does for your multiplayer games is allows players to see and connect to servers that other players have up. Without them having to know them personally and request the IP address manually by talking to the server host directly.
It's so far pretty painless and easy to use(I am a VERY simple programmer, so I think most of my stuff is really easy to use).
I wrote the server in PHP and the client side in PureBasic.

It's not yet complete yet, but I expect in a few days or so I will have a working test version ready to use for bug finding. I think it will work well with your card games or any other type of game you might plan on making. Or at least serve as a temporary thing until you find an alternative or something. :wink:

Re: server protocol for gaming

Posted: Tue Jun 14, 2011 11:09 am
by marc_256
Hi Nituvious,
I wrote the server in PHP and the client side in PureBasic
Nice, I'm happy to hear this is possible ...

Marc,