Collapse column

 Main Menu -


 Links -


 Personal Menu -

Hi, Guest
avatar


 Calendar -

May 2021
S M T W T F S
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

Author Topic: Script: Checker players  (Read 2191 times)

f@nt0m

  • Guest
Script: Checker players
« on: 24. August 2020, 22:37:32 »
While I was waiting for players I made the script for checking availability people on the page
https://www.betastrike.net/phgstats/index.php
And autoconnection to game if is detected players

Warning! The script is use Internet Explorer for get page with list game servers
If you use IE browser, then get ready to expected close it
« Last Edit: 25. August 2020, 08:24:29 by f@nt0m »

f@nt0m

  • Guest
Re: Script: Checker players
« Reply #1 on: 26. August 2020, 14:17:07 »
Manual:
Open file in Notepad
In string after "set path Game=" enter your path to game
also if setted variable %csCon%
If variable %csCon% are also set "True" the script will be auto connecting to the game.
If you want a sound notification, enter your path to a sound file,
otherwise leave empty

Save and run

New version
 - add sound notification
 - optimaize and fixes

Cnegurozka

  • Administrator
  • Uber-Pro
  • *****
  • Posts: 408
  • Karma: +0/-0
Re: Script: Checker players
« Reply #2 on: 26. August 2020, 23:18:25 »
Hi,
interesting idea. Are you running this script all the time your PC is on?
And then it will start CS when it detects players?

But I have one request: Please don't use your current website (https://www.betastrike.net/phgstats/index.php). This causes the master to check for all available servers, which is very slow, because most of them are offline. Please use the list that is checked automatically. The versions for humans can be found here:
https://www.betastrike.net/index.php?page=server-status

Most of this info is available to use in a master server in this list. I just added also the current numbers of players there.
https://www.betastrike.net/hlmaster.lst

I guess it is much faster to use that list instead.
If you want any other info please tell me, I can probably include it quite easily.
I'm running:
Gameservers: HL Deathmatch | Firearms 1.2a | CS 6.1 | CS 5.2
And Teamspeak 3
... also BetaStrike.Net in general ;)

f@nt0m

  • Guest
Re: Script: Checker players
« Reply #3 on: 27. August 2020, 09:21:50 »
Hi,
interesting idea. Are you running this script all the time your PC is on?
And then it will start CS when it detects players?
Yes it is

But I have one request: Please don't use your current website (https://www.betastrike.net/phgstats/index.php). This causes the master to check for all available servers, which is very slow, because most of them are offline. Please use the list that is checked automatically. The versions for humans can be found here:
https://www.betastrike.net/index.php?page=server-status
Ok thx. But parse is difficult it this link

Most of this info is available to use in a master server in this list. I just added also the current numbers of players there.
https://www.betastrike.net/hlmaster.lst
Fine, that's just what we need!
I will change the script near future

I guess it is much faster to use that list instead.
If you want any other info please tell me, I can probably include it quite easily.
Ok, thx

f@nt0m

  • Guest
Re: Script: Checker players
« Reply #4 on: 27. August 2020, 18:06:06 »
I have a problem with the link. It doesn't have a LS (line separatare) I think it's because of php code <br> (maybe I'm wrong) I get the one string without split. And while such parse possibly but it's sometimes can doesn't work.
It'd be nice to have data on CS vesrion and name game. Thanks

f@nt0m

  • Guest
Re: Script: Checker players
« Reply #5 on: 29. August 2020, 13:01:20 »
New version
 - Parse code has been completely rewritten for the new link https://www.betastrike.net/hlmaster.lst
 - Optimized and fixed

Update 0.8.1a
 - Hot fixes
« Last Edit: 29. August 2020, 14:12:28 by f@nt0m »

Cnegurozka

  • Administrator
  • Uber-Pro
  • *****
  • Posts: 408
  • Karma: +0/-0
Re: Script: Checker players
« Reply #6 on: 15. September 2020, 19:54:00 »
I have a problem with the link. It doesn't have a LS (line separatare) I think it's because of php code <br> (maybe I'm wrong) I get the one string without split. And while such parse possibly but it's sometimes can doesn't work.
It'd be nice to have data on CS vesrion and name game. Thanks

It has nothing to do with html, this is just plain text. And it has a line separator, but since it's generated on a linux system it is using "LF" (\n) as newline, but windows expects "CR LF" (\r \n) as newline. That topic is already as old as windows.  ;)
But if you can work with this version everything is fine I guess!
I'm running:
Gameservers: HL Deathmatch | Firearms 1.2a | CS 6.1 | CS 5.2
And Teamspeak 3
... also BetaStrike.Net in general ;)

Eisbaer

  • Newbie
  • *
  • Posts: 38
  • Karma: +0/-0
    • Counter-Strike Beta 6.1
Re: Script: Checker players
« Reply #7 on: 18. November 2020, 22:50:48 »
Excellent work Tilo!