| View previous topic :: View next topic |
| Author |
Message |
Anthony Voice
Joined: 12 Jan 2008 Posts: 4
|
Posted: Tue Jan 15, 2008 8:37 am Post subject: HL2 server list |
|
|
Hi!,
Im looking for a script that will allow me to add my HL2 servers to it and people can then type !servers and they would recive a PM, with the server IP, amount of players on and the current map.
E.g.
<user>!servers
<bot>Server #1: 123.123.123.123:27015 12/24 de_dust2
<bot>Server #2: 123.123.123.123:27025 12/24 de_dust2
etc
I was thinking the servers could be added to the bot either through PM, or even using some kind of text document on the server that it reads from.
I used to have a script like this but its for "rbot" so its coded in "ruby" (i think) but i think some protocols have been updated since then because its not working anymore .
If you think there might be somthing in that script that could help here i could post it.
Thanks for any help you can give me!
P.s. I realise this might take alot of time to do, so if anyone could recommend any scripts thats kind of like this, i could probaly workout how to edit them myself (i have basic TCL knowledge).
Thanks again for any help you can give me!
Anthony. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Jan 15, 2008 11:04 am Post subject: |
|
|
The first part of this request is simple, just a matter of using "puthelp" to show servers from a list. Showing users/map are a different matter tho, how would we obtain that information?
Maybe someday someone will actually post the specs for these servers so we can write scripts that communicate with the server. |
|
| Back to top |
|
 |
Anthony Voice
Joined: 12 Jan 2008 Posts: 4
|
Posted: Tue Jan 15, 2008 11:57 am Post subject: |
|
|
Hi, thanks for your reply!
if its not possible to directly get the map/players do you think it would be possible to get the infomation from a website? E.g. I use this script called "lgsl" which basicly shows all the infomation i need but on a webpage (you can see example http://specialattack.net/monitor/).
Thanks! |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Tue Jan 15, 2008 5:59 pm Post subject: |
|
|
| Thats doable. Do you want the script to just use that webpage for data, rather than have a seperate list of servers in a text file? |
|
| Back to top |
|
 |
Anthony Voice
Joined: 12 Jan 2008 Posts: 4
|
Posted: Wed Jan 16, 2008 1:01 am Post subject: |
|
|
Hi,
Well i supose i could just use the webpage data now (its hosted on the same server as the bot will be, so me adding servers to it etc won't be a problem ).
I only mensioned the text file idea because i thought you would need to store the servers somewhere if you was going to get the infomation directly.
Thanks again!
Anthony. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Wed Jan 16, 2008 2:27 am Post subject: |
|
|
| Give me a few days, been busy here this week. |
|
| Back to top |
|
 |
Anthony Voice
Joined: 12 Jan 2008 Posts: 4
|
Posted: Wed Jan 16, 2008 3:09 am Post subject: |
|
|
| OK thanks sooo much! |
|
| Back to top |
|
 |
Wannabe Voice
Joined: 10 Feb 2006 Posts: 17
|
Posted: Sat Feb 09, 2008 6:49 am Post subject: |
|
|
Btw, since almost all the requests like this are for hl & hl:s based games, this should cover most of them
http://developer.valvesoftware.com/wiki/Server_Queries
Although you will need UDP which means getting a UDP package for tcl. |
|
| Back to top |
|
 |
|