| View previous topic :: View next topic |
| Author |
Message |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Nov 23, 2006 4:57 pm Post subject: |
|
|
| I generally use the http package for these kinds of scripts.. But sockets are not that much harder, the thing to keep in mind, is that you have to "gets" each line from a socket, whereas the "geturl" function from the http package gets the entire file at once (unless you do other things to limit how many lines you pull in) Take a look at the weather script I (re)did, it uses both sockets or http package (configurable option). |
|
| Back to top |
|
 |
atreides Voice
Joined: 20 Nov 2006 Posts: 17
|
Posted: Thu Nov 23, 2006 7:57 pm Post subject: |
|
|
| rosc2112 wrote: | | atreides wrote: |
It connects to a server (CounterStrike)
It reports round scores and player kills to the channel.
|
URL for where to get scores? |
Well I dont think you can get this information from a URL. There is a program called HLSW that can connect to servers and it has a scorebot feature of its own. I think this script would be a bit harder, and you would have to have HLSW. |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Nov 23, 2006 8:06 pm Post subject: |
|
|
| I need to know the server address and port number if you expect a script to do this. I'm not a mind-reader. |
|
| Back to top |
|
 |
atreides Voice
Joined: 20 Nov 2006 Posts: 17
|
Posted: Thu Nov 23, 2006 8:29 pm Post subject: |
|
|
Ah yes. I was hopin you could script it so we enter that information on our own. Would you need the rcon password?
connect 216.86.155.34:27016
There is a password... |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Nov 23, 2006 9:10 pm Post subject: |
|
|
telnet: Unable to connect to remote host: Connection refused
I need the address and port number you connect to to get scores from. And preferably some protocol specifications..Obviously the other software you mention understands the protocol to be able to pull the data. I have not the vaguest idea about this game thing, but if I could find out how to pull in the data, I can make a script for it. But I can't do anything without being able to connect to the right server and the right port number. The address and port number you gave me are invalid. |
|
| Back to top |
|
 |
atreides Voice
Joined: 20 Nov 2006 Posts: 17
|
Posted: Thu Nov 23, 2006 9:13 pm Post subject: |
|
|
| rosc2112 wrote: | telnet: Unable to connect to remote host: Connection refused
I need the address and port number you connect to to get scores from. And preferably some protocol specifications..Obviously the other software you mention understands the protocol to be able to pull the data. I have not the vaguest idea about this game thing, but if I could find out how to pull in the data, I can make a script for it. But I can't do anything without being able to connect to the right server and the right port number. The address and port number you gave me are invalid. |
I really wouldnt no then, sorry. I wouldnt sweat this. I could use the software. Thanks so much |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Nov 23, 2006 9:32 pm Post subject: |
|
|
| Ok then. |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Fri Nov 24, 2006 2:56 am Post subject: |
|
|
It only took me 5 seconds with google to find what you're looking for.
Ofcourse, I'm not entirely sure if it works.
http://limit.org/projects.php |
|
| Back to top |
|
 |
jhan86 Voice
Joined: 20 Sep 2006 Posts: 12
|
Posted: Fri Nov 24, 2006 7:06 am Post subject: |
|
|
BoOoO... You got me all excited because I thought it was SteamID script but it was a matchbot script  _________________ #scripts @ GameSurge |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
|
| Back to top |
|
 |
jhan86 Voice
Joined: 20 Sep 2006 Posts: 12
|
Posted: Fri Nov 24, 2006 7:18 am Post subject: |
|
|
Metroid: i just tried using that script. It doesn't work either.  _________________ #scripts @ GameSurge |
|
| Back to top |
|
 |
jhan86 Voice
Joined: 20 Sep 2006 Posts: 12
|
Posted: Fri Nov 24, 2006 3:52 pm Post subject: |
|
|
rosc!!! Thank you very much! I'm sure alot of people will enjoy your script! _________________ #scripts @ GameSurge |
|
| Back to top |
|
 |
atreides Voice
Joined: 20 Nov 2006 Posts: 17
|
Posted: Sat Nov 25, 2006 12:53 am Post subject: |
|
|
| works like a charm. |
|
| Back to top |
|
 |
|