PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Request for scripts => Topic started by: DeAn on 19 August, 2009, 11:17:42

Title: Servers Script
Post by: DeAn on 19 August, 2009, 11:17:42
Hello guys..
I need a script which shows the current running game servers on lan in API 2.
Is such a script available ?
Probably looking like this..
Title: Re: Servers Script
Post by: CrazyGuy on 19 August, 2009, 21:45:59
Nope
There is no script that scans a whole IP-range on every possible port available.
You can consider your hub useless as with the current libraries, the hub *waits* until the port checks are done.
Given a Class C network, scanning on all ports can take several days.

Even with all that worked out, there's no way for the script to read what actually is running on a specific port, given it doesn't instantly throw back alot of data while checking like DC clients and hubs do.

So the best you will end up with is a report showing you that "after x days of scanning some x ports may or may not host game servers"
Title: Re: Servers Script
Post by: DeAn on 20 August, 2009, 05:32:40
Ok.. Thanks for the explanation.
Title: Re: Servers Script
Post by: CrazyGuy on 20 August, 2009, 12:00:30
I had given it another thought and the best I can come up with is a script that works with a predefined list of IP's, ports and what is supposed to be running on that port.
The script can then check all IP/Ports defined in the list and indicate wether at least the IP is up and the port is accessible. If so, it can then assume the supposed game is running. However that last is just an assumption and I think that's how that script works shown in the picture you attached.
Title: Re: Servers Script
Post by: DeAn on 21 August, 2009, 05:38:31
Awesome.. So can you come up with that script ?

Thanks,

DeAn
Title: Re: Servers Script
Post by: DeAn on 22 August, 2009, 06:03:30
Ohh.. Great, can I get the link ?
Title: Re: Servers Script
Post by: CrazyGuy on 22 August, 2009, 12:17:22
You can search for it here, I'm not sure what it's called though.
Title: Re: Servers Script
Post by: Psycho_Chihuahua on 24 August, 2009, 21:19:02
The Search Function is indeed your friend ;)

http://forum.ptokax.org/index.php?topic=7166.msg69095#msg69095
Title: Re: Servers Script
Post by: DeAn on 25 August, 2009, 05:28:41
Thanks mate.. :)