Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (527)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
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  
  Connection design issues:  (Read 1362 times)
0 Members and 1 Guest are viewing this topic.
Offline silverklyph

Senior Newbie




Java games rock!


« Posted 2004-06-28 18:58:18 »

This probably could fit in with networking, but this more abstract design oriented than hard code.

Basically what I want to do is make a starcraft-ish type of PvP battle game, but I'm not sure how one would go about identifying other people online to engage with.  I was thinking you could log on and arrive at a splash screen with a list of players online, then click on a player's name and they would get a challenge message.  However, I would like to do this without a server so getting all the players into a list would be difficult.  I know with RMI there is a registry, which is basically a phonebook with all the active machines, is there something like that in the regular networking api?
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #1 - Posted 2004-06-28 19:59:19 »

Quote
This probably could fit in with networking, but this more abstract design oriented than hard code.


Seems the best place is here Smiley.

Quote

However, I would like to do this without a server so getting all the


Um, you want a lobby-server system without a server? Wink.

Seriously, why do you want to do that? e.g. this is impossible on the internet, since you will need to broadcast your **** (that's what the network owners will call it the first time you start ping-flooding their nets) over everywhere to find your servers - unless you use a global standard locator service, which itself probably uses servers, or have some kind of centralized locator - in other words, a server Smiley.

Obviously, if this is only for LAN play, then you can spam the network all you want (unless you don't actually own it, in which case you might still get into trouble...)

Quote

players into a list would be difficult.  I know with RMI there is a registry, which is basically a phonebook with all the active machines, is there something like that in the regular networking api?


Arguably, RMI *is* the "regular networking". Unless you're using J2ME or similar. It is part of J2SE...

Certainly, there is nothing else in J2SE (it would be duplication of effort Wink). RMI is technically part of a DOA = distributed object architecture.

I doubt RMI's quite what you want though - unless you have other reasons for using RMI anyway. If you don't, then it's kind of like using a sledgehammer on a small nail; yes, it works fine - but it's way more than you need for the job Smiley.

malloc will be first against the wall when the revolution comes...
Offline DanK

Junior Devvie




Javver games rock yawel!


« Reply #2 - Posted 2004-07-04 14:09:30 »

If you wrote a game similar in quality to starcraft, you'd have little trouble finding someone capable of hosting a server for you, which you'd have have to have a server, even if it was provided by a third party service like gamespy or kali or one of those, you'd still have to build one.

A match making service is a pretty simple thing, basically as simple as chat, and that's if you want to be friendly about it. You could create one using a scripting langauge (servlets, php, perl, etc), basically anyone wanting to host a copy of your game, would request a page on your server that pointed to the script, and anyone wanting to join a game would create a connection to the same place, and get a list of server IP's. You'd need a server, but the server hardly does anything, the actual hosting of a game could be done by the people playing your game (peer to peer or server centric).

Using a setup like this, the match making server would do very little work, require only a small amount of bandwidth and next to no CPU power, as the person who chose to host a game would probably assume all the workload of the game they create.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

PocketCrafter7 (12 views)
2014-11-28 16:25:35

PocketCrafter7 (7 views)
2014-11-28 16:25:09

PocketCrafter7 (8 views)
2014-11-28 16:24:29

toopeicgaming1999 (74 views)
2014-11-26 15:22:04

toopeicgaming1999 (64 views)
2014-11-26 15:20:36

toopeicgaming1999 (15 views)
2014-11-26 15:20:08

SHC (29 views)
2014-11-25 12:00:59

SHC (27 views)
2014-11-25 11:53:45

Norakomi (32 views)
2014-11-25 11:26:43

Gibbo3771 (28 views)
2014-11-24 19:59:16
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!