Page 1 of 1
Making a network game
Posted: Sat Jul 17, 2004 9:20 pm
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

Re: Making a network game
Posted: Sat Jul 17, 2004 10:29 pm
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
Posted: Sun Jul 18, 2004 12:10 pm
by DarkDragon
But if you want to make a 4 Player game, you should use threads for every player.
Posted: Sun Jul 18, 2004 2:42 pm
by Moonshine
Thanks for the replies, I'll look into it

Posted: Thu Jul 22, 2004 9:16 am
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

Posted: Thu Jul 22, 2004 1:30 pm
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.
Posted: Wed Aug 18, 2004 6:48 am
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.
Posted: Thu Aug 19, 2004 2:56 am
by Moonshine
Ah yes, Ive alredy downloaded it but not looked at the source. Cheers, I'll have a look
