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 (406)
games submitted by our members
Games in WIP (293)
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 1679 times)
0 Members and 1 Guest are viewing this topic.
Offline aseldawy

Junior Newbie




dzzz!


« Posted 2004-10-28 04: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
« League of Dukes »

JGO Kernel


Medals: 196
Projects: 3


Eh? Who? What? ... Me?


« Reply #1 - Posted 2004-10-28 09: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




Apathy Error: Don't bother striking any key.


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

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

Shawn Kendall
Full Sail Real World Education
Immediate Mode Interactive, LLC
<A HREF="http://cosmic-game-engine.blogspot.com/">Cosmic Game Engine Dev Journal</a>
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline aseldawy

Junior Newbie




dzzz!


« Reply #3 - Posted 2004-10-29 04: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 15: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

JGO Visitor



Java games rock!


« Reply #5 - Posted 2004-10-30 19: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 07: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 10: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks 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!
cubemaster21 (76 views)
2013-05-17 21:29:12

alaslipknot (87 views)
2013-05-16 21:24:48

gouessej (117 views)
2013-05-16 00:53:38

gouessej (112 views)
2013-05-16 00:17:58

theagentd (124 views)
2013-05-15 15:01:13

theagentd (112 views)
2013-05-15 15:00:54

StreetDoggy (156 views)
2013-05-14 15:56:26

kutucuk (178 views)
2013-05-12 17:10:36

kutucuk (177 views)
2013-05-12 15:36:09

UnluckyDevil (185 views)
2013-05-12 05:09:57
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

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.196 seconds with 20 queries.