Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (686)
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 2405 times)
0 Members and 1 Guest are viewing this topic.
Offline aseldawy

Junior Newbie


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

 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 Spiffy Duke »

Medals: 625
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 Devvie

« 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
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline aseldawy

Junior Newbie


« 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


« 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 Devvie

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

Dwinin (61 views)
2015-11-07 13:29:08

Rems19 (75 views)
2015-10-31 01:36:56

Rems19 (68 views)
2015-10-31 01:32:37

williamwoles (103 views)
2015-10-23 10:42:59

williamwoles (91 views)
2015-10-23 10:42:45

Jervac_ (103 views)
2015-10-18 23:29:12

DarkCart (131 views)
2015-10-16 00:58:11

KaiHH (113 views)
2015-10-11 14:10:14

KaiHH (153 views)
2015-10-11 13:26:18

BurntPizza (166 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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‑
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!