Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 3018 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: 1033
Projects: 3
Exp: 20 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

Exp: 20 years

« 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  

EgonOlsen (76 views)
2018-06-10 19:43:48

EgonOlsen (56 views)
2018-06-10 19:43:44

EgonOlsen (76 views)
2018-06-10 19:43:20

DesertCoockie (256 views)
2018-05-13 18:23:11

nelsongames (156 views)
2018-04-24 18:15:36

nelsongames (155 views)
2018-04-24 18:14:32

ivj94 (896 views)
2018-03-24 14:47:39

ivj94 (157 views)
2018-03-24 14:46:31

ivj94 (809 views)
2018-03-24 14:43:53

Solater (173 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!