Making a network game

Advanced game related topics
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Making a network game

Post by Moonshine »

Hi all. Ive got some free time so I was thinking of making a multiplayer bomberman like game for me and some friends. Problem is Ive no idea how to do networking in a game. Anybody know what exactly needs to be done? For example Ive no idea how to send packets between computers (over the internet) and then how to use them to update all players. And Im unsure what would be required for this (a dedicated server?) and where to get one...

Cheers :)
Mark my words, when you least expect it, your uppance will come...
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: Making a network game

Post by NoahPhense »

Moonshine wrote:Hi all. Ive got some free time so I was thinking of making a multiplayer bomberman like game for me and some friends. Problem is Ive no idea how to do networking in a game. Anybody know what exactly needs to be done? For example Ive no idea how to send packets between computers (over the internet) and then how to use them to update all players. And Im unsure what would be required for this (a dedicated server?) and where to get one...

Cheers :)
Start with the codearchiv.. plenty of network stuff in there.. and along with
the examples that came with PB, should get you moving on basic network
comms.

i.e. there is a Network Client and Network Server in the help file.. that's
what I used to get started.. learning how they talk to each other..

- np
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

But if you want to make a 4 Player game, you should use threads for every player.
bye,
Daniel
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Post by Moonshine »

Thanks for the replies, I'll look into it :)
Mark my words, when you least expect it, your uppance will come...
User avatar
waffle
Enthusiast
Enthusiast
Posts: 129
Joined: Mon May 12, 2003 1:34 pm
Location: USA
Contact:

Post by waffle »

experiment with pauls chat apps and basically duplicate that for your game. you'll need to add custom code (prefixes) like in freds atomic server to handle special situations....

i've done some multiplayer code in DB and a remote server admin tool in PB, but I'm still working on my own first multiplayer PB game. Today is the first day in about a month or more that i could work on it. I've even been offered money for the tool, but its free until I convert it to linux or become famous :)
Code is good... Its an international language.
merendo
Enthusiast
Enthusiast
Posts: 449
Joined: Sat Apr 26, 2003 7:24 pm
Location: Germany
Contact:

Post by merendo »

Some time back I've created a very simple chat via LAN/Internet with PB. Then I showed this chat to a friend of mine - and what did he do? He hacked the programme because I had very little experience in coding hacker-secure. He said one very important sentence: "25 percent of the programming is the programme itsself, 75 percent is the security".

So always make your protocols as secure as possible, whenever you examine some data from a client, first make sure: Does this client exist? Has he properly logged in? If you don't check such things, it is likely that someone just connects, sends some rubbish into the network and leaves. If there is sufficient security this won't happen.

So you really should care about security if you don't want your game to be hacked.
The truth is never confined to a single number - especially scientific truth!
User avatar
waffle
Enthusiast
Enthusiast
Posts: 129
Joined: Mon May 12, 2003 1:34 pm
Location: USA
Contact:

Post by waffle »

i finished my bumper pool game.
it supports 4 players online or ofline or mix/match

you can find it here:

http://home.comcast.net/~norman.perry/Pool.zip

it has source code.
Code is good... Its an international language.
Moonshine
Enthusiast
Enthusiast
Posts: 263
Joined: Tue May 25, 2004 12:13 am
Location: UK

Post by Moonshine »

Ah yes, Ive alredy downloaded it but not looked at the source. Cheers, I'll have a look :)
Mark my words, when you least expect it, your uppance will come...
Post Reply