Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (307)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Choosing network arch. for a game with 32+ players  (Read 1148 times)
0 Members and 1 Guest are viewing this topic.
Online moogie

JGO Knight


Medals: 7
Projects: 5


Java games rock!


« Posted 2004-06-24 07:45:49 »

I am currently thinking about cloning (and extending) "Anaconda" which is a in-game of Time Splitters 2 for the Game cube. It is basically a snake game.

It is to be network multiplayer, i will be using java3d and will be able to have more than one player per computer.

One of my main desired features is to allow many concurrent players. e.g. 32+

I am a little unsure as to what networking strategy i should aim to use.... Currently i can think of two strategies:

1. Asynchronous.

Allowing each client to potentially send information any time and the ability to queue up some information.

2. Discrete time steps.

Meaning a server waits for a specified time collecting any information recieved from the clients and then updating the world and sending back information to the clients. If a client does not manage to send any information to the server in the specified time step, the information is ignored by the server.

I believe the second method will be easier to implement however it does mean the clients with high latency will be severely penalized...

The Asynchonous method will could allow users of realatively high latency to play however i will need to handle the bunching of information messages that could occur.


I was going to use a UDP boardcast for the communication between the clients thinking that this should reduce the network traffic, however it is come to my attention that such broadcasts are not propergated though the internet. Meaning that i will have to use many UDP 'connections' Does anyone have any idea at the performance issues realated with many udp connections?

Another potential problem is the fact that each computer may have 1-4 players at the actual terminal. I was hoping to make each game instance running on the computer to be independant however this may cause problems when finding games to connect to. What methodology should i use to resolve this?

Cheers

N Klaebe
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #1 - Posted 2004-06-24 08:12:31 »

Snake is going to be really difficult in terms of networking, even the smallest lag will make it unplaybale.

Infact, the infamous UDP vs TCP debate in this forum actually started around this area. Smiley

Kev

Online moogie

JGO Knight


Medals: 7
Projects: 5


Java games rock!


« Reply #2 - Posted 2004-06-24 08:30:56 »

Yeah, i understand that. however i will be probably sacrficing game speed and increasing tail size growth to compensate.

At the moment i am thinking for aiming for a 100-150ms input refresh rate. And thus network message rate.

The game update rate will be independant to the input refresh rate. Thus hiding the poor responce to a degree.
Games published by our own members! Check 'em out!
Try the Free Demo of Titan Attacks
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #3 - Posted 2004-06-24 09:14:17 »

snake as a turn-based game ..... nice idea Smiley

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Online moogie

JGO Knight


Medals: 7
Projects: 5


Java games rock!


« Reply #4 - Posted 2004-06-25 06:19:22 »

lol, it wont be that bad.... i hope! Tongue

To keep things simple i will probably limit the game to a LAN environment to begin with and usd UDP multicast.

Once i have the game working for the LAN i will go about changing the networking to allow online play.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
mrbenebob (20 views)
2013-06-19 14:55:23

BrassApparatus (30 views)
2013-06-19 08:52:37

NegativeZero (34 views)
2013-06-19 03:31:52

NegativeZero (35 views)
2013-06-19 03:24:09

Jesse_Attard (40 views)
2013-06-18 22:03:02

HeroesGraveDev (76 views)
2013-06-15 23:35:23

Vermeer (77 views)
2013-06-14 20:08:06

davedes (78 views)
2013-06-14 16:03:55

alaslipknot (70 views)
2013-06-13 07:56:31

Roquen (93 views)
2013-06-12 04:12:32
Smoothing Algorithm Question
by UprightPath
2013-05-28 02:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-28 02:57:33

Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!