server protocol for gaming

Advanced game related topics
marc_256
Addict
Addict
Posts: 859
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

server protocol for gaming

Post 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
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: server protocol for gaming

Post 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?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
marc_256
Addict
Addict
Posts: 859
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: server protocol for gaming

Post 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,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
Nituvious
Addict
Addict
Posts: 1030
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: server protocol for gaming

Post 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:
▓▓▓▓▓▒▒▒▒▒░░░░░
marc_256
Addict
Addict
Posts: 859
Joined: Thu May 06, 2010 10:16 am
Location: Belgium
Contact:

Re: server protocol for gaming

Post 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,
- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...
Post Reply