.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Web-based server tools (http://forums.bots-united.com/forumdisplay.php?f=16)
-   -   HL WEBTV / PHPUA (http://forums.bots-united.com/showthread.php?t=1441)

BAStumm 02-01-2004 23:12

HL WEBTV /
 
I like these better:

http://spokaneteamfortress.com/stats/
http://bs-linux.com/hlwebtv/

:)

rob 03-01-2004 00:24

Re: just what the name says-
 
i like the hlwebtv site a lot, good stuff.

never seen either of them before tho...

thanks for the links :)

BAStumm 03-01-2004 00:46

Re: just what the name says-
 
I wrote them both...

First one queries halfd for the extended data

Second one uses a metamod plugin for the ultra extended data.

The code used to generate the hlwebtv stats are a part of the United Admins phpua project which I am the coordinator of. The metamod plugin (also written by me) allows us to get a wide array of server/player/entity data right down to health, armor, what weapon, etc... Not sure if you noticed on the hlwebtv deal but there is an <a title> for each player name in the player list, mouse over will show the player health etc. info. The output is a combo php/jscript to do the animation and realtime updates.

assuming you saw a colored map (i haven't finished them for all maps yet) is a combo of the ingame topo maps and botmans bsp tools (for the topo depth lines).

rob 03-01-2004 01:04

Re: just what the name says-
 
that is some great stuff!

the extended data is really cool with the mouseovers...

i will look around at UA for the project.

way back in the day...(last month), i had a pretty cool flash site that queried HLStats for the last 5 actions of the game, and queried the mean mod and hlds for some [*not as much as the metamod plugin] extended data...

is the plugin available at the meta mod site?

Nova 03-01-2004 01:08

Re: just what the name says-
 
Jesus ... it seems that your very versed with setting up HL servers ... if you dont mind ill probably ask you sometime about the BU Server, they dont want to run like i want them too ...

CS: 213.239.226.101:27015
TFC: 213.239.226.101:27016

Quote:

Originally Posted by BAStumm
I wrote them both...

First one queries halfd for the extended data

Second one uses a metamod plugin for the ultra extended data.

The code used to generate the hlwebtv stats are a part of the United Admins phpua project which I am the coordinator of. The metamod plugin (also written by me) allows us to get a wide array of server/player/entity data right down to health, armor, what weapon, etc... Not sure if you noticed on the hlwebtv deal but there is an <a title> for each player name in the player list, mouse over will show the player health etc. info. The output is a combo php/jscript to do the animation and realtime updates.

assuming you saw a colored map (i haven't finished them for all maps yet) is a combo of the ingame topo maps and botmans bsp tools (for the topo depth lines).


BAStumm 03-01-2004 01:29

Re: just what the name says-
 
the plugin is not quite done yet but will be available as a part of the phpua project when it is done. It too is not yet done. Hoping for a first release sometime soon as we are getting close. I still have to add in support for other mods to the plugin and then the php code needs completed to use the metamod plugin.

the hlwebtv deal was written as a demonstration to show "whats possible", the code is very rough. See, when I tell people you can do this stuff they laugh at me... So I have to prove its possible :)

rob 03-01-2004 01:33

Re: just what the name says-
 
does the data for the 'real time' map add much load to the server?

is the game server on the same box as the webserver?

BAStumm 03-01-2004 01:46

Re: just what the name says-
 
I notice no additional load on the game server. Not sure what the impact is on the webserver. My setup is two linux boxen on the same LAN. One box for web/mail/ftp/etc the other is strictly for game servers. My webserver is a pretty lean machine, 533mhz celeron with 384 megs ram. Game server is a XP2500+ barton with 1 gig ddr.

dav 07-01-2004 07:18

Re: just what the name says-
 
that's some nice stuff... now we just have to find a way to stream real HLTV feeds through a webserver :)

rob 21-01-2004 10:55

Re: real time server stats
 
getting the HL engine into a webbrowser would probably be more difficult.

i havent done any coding with hltv, but that would be an interesting way to get real time data.

anyone know anything?

BAStumm 21-01-2004 18:39

Re: real time server stats
 
edit: OOPS it brought me directly to page two and i thought this was a new topic...

anyway, getting data from HLTV would be nearly impossible.

/edit



I thought I showed you my hlwebtv deal?

http://spokaneteamfortress.com/hlwebtv/

HLWebTV will be a part of the phpUA project from http://unitedadmins.com and should be available mid February. The hlwebtv portion of phpUA is being dubbed WATCH.

Real Time is simply a matter of combining php and jscript to keep redrawing the data you wish to display. Create a "face" first which is your data container (tables, divs, whatever) and include "id" assignments in those. Then when you have new data to display off your socket you just use the jscript document.getElementById stuff to manipulate your data containers (or move images around the screen or whatever).

What data you wish to display changes what else you must do. If your happy with name, frags and time then just query direct to the HL server (default port 27015). If you want exteded data you need some other method to get the data. Log parsing perhaps, Halfd, a mm plugin, whatever...

PHPUA's WATCH feature uses an MM plugin I am creating (nearly finished). This page, http://spokaneteamfortress.com/stats/ queries halfd. Watch that page for a minute, the data does update when frags or deaths increase or players join or leave or whatever...

rob 22-01-2004 01:08

Re: real time server stats
 
i dont know much (or anything) about jscript, but i can do real time with flash.

im still very curious about talking with hltv tho.

if it is possible to get hltv to send packets to the webserver, i would think that they could be parsed.

maybe someday i will figure this out.

BAStumm 23-01-2004 00:33

Re: real time server stats
 
in order to get hltv stuff you'd have to figure out how to connect as a hltv client that the hlds engine would allow... That program would have to run as a service and feed data out to the webserver and the webserver proxy it somehow.

The hlwebtv overview deal I made uses a fair bit of bandwidth but not awful. I can't imagine what streaming live video and audio of the game would cost bandwidth wise... Plus whatever feed yer getting off hltv would need to be processed on the fly (shrunk resolution and converted to divx perhaps?). So now you talking about a good deal of horsepower required for this deal...

I dont really think its practical. It would be cool, but its not real practical.

rob 23-01-2004 19:33

Re: real time server stats
 
i think you are misunderstanding me.

i know it isnt practical to try and duplicate hltv in a web browser.

i just want to break apart hltv packets into usable data.

Pierre-Marie Baty 23-01-2004 21:24

Re: real time server stats
 
The problem IMO is that the HLTV protocol isn't just a one-way thing. In order for the game server to send HLTV packets to your application, I suspect you somehow have to make your application be seen as a valid HLTV client by the game server side... Unless the HLTV protocol is a broadcast thingy, then I would be mistaken, but I don't think so.

BAStumm 23-01-2004 21:33

Re: real time server stats
 
if you want extended game data then your better off just getting it through a hook (bot or mm) like I did for the hl web tv deal.

As PM stated I believe to get hltv info you must connect and auth as a valid hltv client. The client does send data back to indicate which player to watch or to use the topographical mode (whatever its called). You might be able to hi-jack the hltv messages in a mm plugin but you would prolly need a hltv client connected or the info might not exist (engine only sends if a hltv client is connected ???). I dunno, sub to the hlcoders@list.valvesoftware.com mailing list and ask around...

Infidel 11-02-2004 04:10

Re: real time server stats
 
I understand HLstats has been recently updated from it's previous untenable state{probably due to dependencies}.It's very close to real time or as practical can be expected although not as exhaustive as I would have liked. Psycho stats 1.9 was the latest I used and updates/compiles can be done as often as you wish but be advised it is exhaustive and I saw no limit of cpu usage.It requires a dedicated machine for best performance and you can forget about using celerons/durons if you want a result set before the following day,per compile,from a 30 day parse.It's an easy install until you ask questions in their forums = the worst I've ever seen.:RTFM: = which was/is dated at best.

BAStumm 13-02-2004 09:16

Re: real time server stats
 
the term "stats" used in this thread is not quite the same as the "stats" you refer to ala hlstats etc. Here its being used to refer to a script which provides information on a web page only about the current status of the game. meaning:

SERVER
hostname: bobs server
map: 2fort
timeleft: 15:23

Players
Name: bob
Frags: 14
Time: 48:58

Above being an over simplified example. Perhaps you might look at this link for an overly detailed example...

http://demo.phpua.com/index.php?mode=watch&server=0

Infidel 13-02-2004 13:46

Re: real time server stats
 
Granted,but would it not be easier to hook a result set of choice from an existing{static} result set ,although not exactly "realtime" but very near ,via the renewed HLstats?
I would think if stats was an objective that a permanent page would be desirable immediately or eventually.It was/ would be for me.

BAStumm 18-02-2004 07:53

Re: real time server stats
 
Quote:

Originally Posted by Infidel
Granted,but would it not be easier to hook a result set of choice from an existing{static} result set ,although not exactly "realtime" but very near ,via the renewed HLstats?
I would think if stats was an objective that a permanent page would be desirable immediately or eventually.It was/ would be for me.

please forgive me if i dont undestand what your getting at BUT have you clicked a single link I've posted in this thread? hlstats cannot tell you where a player is standing on the map. See this: http://demo.phpua.com/index.php?mode=watch&server=0 which is a url repost that I already posted...

oh and for those following along, phpUA has been released. http://phpua.com

Infidel 18-02-2004 13:40

Re: real time server stats
 
Shesh,the thread "real time stats",query the the result of choice accordingly;the game is CS.I never intended nor interpreted radar as required or desired. Get over it.

T!m 23-02-2004 18:01

Re: real time server stats
 
I Just tried to install phpua, but i can't get it to work, this is what i did:

I opened an account on tripod (lycos), uploaded phpua+hl plugin, installed phpua, and instaled the metamod pluging on the server.
no errors or so what, but phpua won't see the server.
the server is running cs and the mm plugin is loaded correct.

did i miss something?

T!m

ps. the adress is

http://members.lycos.nl/rbcsstats/phpua/

T!m 24-02-2004 21:14

Re: real time server stats
 
Hmzzzz...... found the problem :( the server doesen't support sockets snif, does anyone know a freehosting site that allow sockets?

thx, T!m

BAStumm 24-02-2004 21:19

Re: real time server stats
 
hey T!M, please post support issues or other related to phpUA to the phpUA forums. They can be accessed either from phpua.com or unitedadmins.com

T!m 24-02-2004 21:26

Re: real time server stats
 
Yeah found them already ;)

srry


All times are GMT +2. The time now is 13:12.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.