Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
0 registered members (), 635 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A list of active servers? #83221
07/25/06 11:58
07/25/06 11:58
Joined: Jul 2006
Posts: 28
Amman, Jordan
Dareen Offline OP
Newbie
Dareen  Offline OP
Newbie

Joined: Jul 2006
Posts: 28
Amman, Jordan
How can i make the client search for the active sessions before it connects to one, and allow the user to choose among them?
Is there anyway other than using a data base?


Upon my end shall I begin? Forsaking all I've fallen for.. I rise to meet the END!!
Re: A list of active servers? [Re: Dareen] #83222
07/25/06 12:06
07/25/06 12:06
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Short answer: no.

Long answer: you don't necessarily need a RDBMS, a textfile could serve as a database aswell. But you will need a central server with a static IP adress that has a list (RDBMS, textfile, ..) of IP adresses of gameservers.

Every gameserver that starts tells the central server it's IP adress, the central server then stores that in a list. You can contact the central server in several ways:
-Make it a 3dgs server program. You then will need to session_connect to it (need the pro version)
-Make it a RDBMS and use the built in networking to send the query over.
-Make it a webserver running a php script and contact it via HTTP.

When the client that wants to join a game can then request the list from the central server.

Re: A list of active servers? [Re: Excessus] #83223
07/25/06 12:15
07/25/06 12:15
Joined: Jul 2006
Posts: 28
Amman, Jordan
Dareen Offline OP
Newbie
Dareen  Offline OP
Newbie

Joined: Jul 2006
Posts: 28
Amman, Jordan
Thanx Excessus ,

I do have the Pro version.

Quote:


But you will need a central server with a static IP adress that has a list (RDBMS, textfile, ..) of IP adresses of gameservers.





but what i need for my MP game is to work on any LAN (whether the LAN is connected to the internet or not; like GLIDER does), so i can't use a static server IP address.


Upon my end shall I begin? Forsaking all I've fallen for.. I rise to meet the END!!
Re: A list of active servers? [Re: Dareen] #83224
07/25/06 12:32
07/25/06 12:32
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Ooh, it's a LAN game. I had assumed it was an internet game.

There are ways to scan other computers in a LAN. You'd have to scan the port that 3dgs uses on the other computers. I don't know how to do this, but it'll involve writing a C++ (or other external language) program..

Re: A list of active servers? [Re: Excessus] #83225
07/25/06 12:39
07/25/06 12:39
Joined: Jul 2006
Posts: 28
Amman, Jordan
Dareen Offline OP
Newbie
Dareen  Offline OP
Newbie

Joined: Jul 2006
Posts: 28
Amman, Jordan
Thanx alot Excessus,
I read a topic about ports that are used by 3dgs but it was about A5 version..
do you have any idea of what is the port that 3dgs latest version uses?


Upon my end shall I begin? Forsaking all I've fallen for.. I rise to meet the END!!
Re: A list of active servers? [Re: Dareen] #83226
07/25/06 12:46
07/25/06 12:46
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Hmm, I remember reading the default portnumber somewhere but I can't remember. I'm pretty sure it is documented somewhere (try a forum search aswell).

However, there is a commandline switch for setting the servers' portnumber. This is what the manual says:
Quote:


-port number
Through this command line option, a port address for TCP/IP client/server communication can be given. Valid ports are in the range 2300..2400. If no port is given, a default port address is assigned. A port address can only be given for the server - the client will connect to the right port automatically.





Re: A list of active servers? [Re: Excessus] #83227
07/25/06 12:51
07/25/06 12:51
Joined: Jul 2006
Posts: 28
Amman, Jordan
Dareen Offline OP
Newbie
Dareen  Offline OP
Newbie

Joined: Jul 2006
Posts: 28
Amman, Jordan
Thanx for the help
ill start searching on how to scan other computers using ports


Upon my end shall I begin? Forsaking all I've fallen for.. I rise to meet the END!!

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1