Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (degenerate_762, AndrewAMD, Ayumi), 1,321 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
LAN-Serverlist #172763
12/14/07 14:50
12/14/07 14:50
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Hi!
How can I create a list, which shows me the opened gameservers in lan like in cs?
I don't need any code, I only want to know how it should be done...
Thanks for your answers!

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: LAN-Serverlist [Re: Dark_samurai] #172764
01/03/08 12:40
01/03/08 12:40
Joined: Mar 2007
Posts: 75
M
Metal_Man Offline
Junior Member
Metal_Man  Offline
Junior Member
M

Joined: Mar 2007
Posts: 75
You would need to have a server to hold a list of all of the opened gameservers and every time a gameserver is opened, the program would have to send it's information to the central server.

This information could include IP Address, Game Server Name, number of players, and ping

Re: LAN-Serverlist [Re: Metal_Man] #172765
01/03/08 13:12
01/03/08 13:12
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
That wouldn't work, as you can't use a hardcoded IP if the software must work on any LAN (you don't know what IPs are used inside the LAN, for server and clients).

I don't know the details, but I think it's possible to broadcast something to every computer on a LAN. So you can use a certain port to send out a message to all computers on the LAN and see which ones respond.

This is not built into 3dgs, so you would have to do plugin programming.

Re: LAN-Serverlist [Re: Excessus] #172766
01/05/08 12:00
01/05/08 12:00
Joined: Oct 2007
Posts: 1
J
john_rain Offline
Guest
john_rain  Offline
Guest
J

Joined: Oct 2007
Posts: 1
What does a 'central server' mean? I think only the same scripts can be connected as a server or client when they run in network, so how can they connect to a 'central server'? Can anyone explain this to me? Thanks!

Re: LAN-Serverlist [Re: john_rain] #172767
01/05/08 14:38
01/05/08 14:38
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline
Serious User
ulf  Offline
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
they way to do it is via udp broadcast.

if you want to request a list, send a udp broadcast packet to the network called 'request'. the servers wich listen get the broadcast 'request' and immidiately or after a small delay, broadcast their information 'myserverip:port,map,players,freeslots...' back to everyone.
this way the client that send the request can again listen for the serverinformation and fill the list.

i doubt this is possible with a6, maybe it works with a7 if you include sockets.h if not you will have to write a .dll or use an external starter program for this purpose.

correct me if iam wrong...

Re: LAN-Serverlist [Re: ulf] #172768
01/06/08 16:20
01/06/08 16:20
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Ok thanks for that informations.
So I need a plugin which can send/receive such a udp broadcast?
Is there already one out there or do I have to write it?

Dark_Samurai

Last edited by Dark_samurai; 01/06/08 16:20.

ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: LAN-Serverlist [Re: Dark_samurai] #172769
01/10/08 10:35
01/10/08 10:35
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Do I need c# for such a plugin or can it be written in c++?
Is it much effort to write such a plugin?
Do you know any good toturials for writing such a udp broadcasts?
Thanks!

Dark_Samurai


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: LAN-Serverlist [Re: Dark_samurai] #172770
01/10/08 17:44
01/10/08 17:44
Joined: Jun 2005
Posts: 4,875
broozar Offline
Expert
broozar  Offline
Expert

Joined: Jun 2005
Posts: 4,875
allowing only one game per lan is no option for you?

Re: LAN-Serverlist [Re: broozar] #172771
01/16/08 07:15
01/16/08 07:15
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline OP
Serious User
Dark_samurai  Offline OP
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Quote:

allowing only one game per lan is no option for you?




No!

Someone is making a plugin for me, wich allows to send/broadcast UDP-Packages. If there is someone else interested in such a plugin PM me, please.

mfg
Dark_Samurai

Last edited by Dark_samurai; 01/16/08 07:15.

ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: LAN-Serverlist [Re: Dark_samurai] #172772
01/18/08 22:00
01/18/08 22:00
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
Hi Dark_Samurai,

einen einzelnen server im lan (broadcasting) findet GSTNet so:

Code:

GSTNet_StartClient("255.255.255.255",2300,-0.1);




bei mehreren servern ist mehr aufwand beim nachrichten handling zwischen dem client und den servern nötig. z.B.
Code:

GSTNet_ClientSend(0, GetServerProperties, ""); // request must be handled on server side



nach auswahl des richtigen servers muß der client gestopt werden und mit der server ip gestartet werden
Code:

GSTNet_Disconnect(0);
wait(-0.5);
GSTNet_StartClient(sChoosenServerIP,2300,-0.1);




Andreas
GSTools - Home of
GSTScript 0.9.8: lua scripting for A6/7/8
GSTNet 0.7.9.20: network plugin for A6/7/8
GSTsqlite 1.3.7: sql database plugin for A6/7/8
3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
Page 1 of 2 1 2

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