Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Building my own game server  (Read 2040 times)
0 Members and 1 Guest are viewing this topic.
Offline aseldawy

Junior Newbie




dzzz!


« Posted 2004-10-28 02:49:59 »

Hello,
 I with some colleagues want to make a game server of our own, but we do not know how to start. Is there a suggested papers or tutorials to read.

Ahmed Saad
Offline princec

JGO Kernel


Medals: 378
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2004-10-28 07:37:13 »

In order to build a server, you need a game idea first! And that greatly affects the design. What had you in mind?

Cas Smiley

Offline shawnkendall

Senior Member





« Reply #2 - Posted 2004-10-28 09:46:44 »

It seems to me that the implication is that they mean to serve existing games! No?

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline aseldawy

Junior Newbie




dzzz!


« Reply #3 - Posted 2004-10-29 02:53:13 »

Mainly we want to build my own games. The games are some turn based games like (Domino, Cards, Checkers ... etc). We may also make some simple real time games like Yahoo! Towers.
I want to ask a question. If we want to support existing games, shall we put all its rules on the server ourselves?

Ahmed Saad
Offline snowmoon

Senior Newbie




previosly known as TheLorax


« Reply #4 - Posted 2004-10-29 13:40:48 »

aseldawy: How much programming experience do you have?  Any client server programming?  What languages?

It would be easier to tell you what you need if we know where you are starting from.
Offline GMLightning

Innocent Bystander




Java games rock!


« Reply #5 - Posted 2004-10-30 17:39:16 »

Ok, first u need a layout of this game that u want to design----Like coordinates, what program to use, what Database host to use....and also how is people gonna know about it( local or not)

I use Sql server 2000 and host about 7 data bases on there.....But u must know how to use, it takes time and patience to build....u must also know ALOT about working with sql, extensions.ect...
Offline aseldawy

Junior Newbie




dzzz!


« Reply #6 - Posted 2004-11-06 06:15:09 »

We have a very good programming experience. Actually we are in the computer science department and this will be our graduation project. We do not know how start yet.
The features we want to add is
-Each user is connecting with username and password.
-Score is maintained for each user in every game.
-Ability to choose from different lounges/tables to play.
-Artificial users (computerized) may be added to achieve a minimum number of players at a game.
-Passive user can sit down and watch a game.
-Text chat/Voice chat is available while playing.
We want to apply all those to different games. Games are very simple (domino, cards ... etc.)

Ahmed Saad
Offline crystalsquid

Junior Member




... Boing ...


« Reply #7 - Posted 2004-11-06 09:44:09 »

If you are doing TURN based games (dominos, cards etc.) you can actually get away with mainly PHP/MySQL on the server side. A nice Linux server with Apache, PHP4, MySQL4 is robust, easy to use, and cheap to run. Especially if you have the resources of a computer science department at your disposal! This can easily provide the lounges/etc. and there is a wealth of example code for PHP/MySQL out there.

The Java games themselves (applets if you want them embedded on the web pages) then request specific 'php pages', and the php can then send any data it likes as a response (such as the current state of the game). The one aspect to be aware of here is that the php pages cannot contact the clients directly - they can only respond to requests FROM the client. However, if the clients ask for updates every 10 seconds or so it is workable - and possibly the simplest way. Use the MySQL database to maintain the state of each game & any chat messages.

For more complex games (of if you require the server to broadcast messages to clients), either use a Java server or a C++ server. These should still be able to access MySQL databases (although I don't know hopw the Java does this) - which provide the info for the players in the games, lounges, etc. the applets would then open TCP connections to the server app when the game starts. This is more complex for the networking side - but could be easier if your happier dealing with code & sockets.

Hope this helps (or gives you some possible directions to pursue)

- Dom
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.

Dwinin (19 views)
2014-09-12 09:08:26

Norakomi (54 views)
2014-09-10 13:57:51

TehJavaDev (63 views)
2014-09-10 06:39:09

Tekkerue (31 views)
2014-09-09 02:24:56

mitcheeb (53 views)
2014-09-08 06:06:29

BurntPizza (37 views)
2014-09-07 01:13:42

Longarmx (23 views)
2014-09-07 01:12:14

Longarmx (26 views)
2014-09-07 01:11:22

Longarmx (26 views)
2014-09-07 01:10:19

mitcheeb (34 views)
2014-09-04 23:08:59
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!