It is currently Thu Sep 09, 2010 12:34 pm

All times are UTC + 1 hour [ DST ]





Post new topic Reply to topic  [ 6 posts ] 
  Print view Previous topic | Next topic 
Author Message
 Post subject: Live scorebot at website
PostPosted: Wed Jul 07, 2010 5:52 pm 
Newbie
Newbie

Joined: Wed Jul 07, 2010 4:40 pm
Posts: 3
Hi everyone :)

I'm trying to do a LIVE Scorebot on website.

I know, that logaddress is sending some data to my server - it's my friend's screenshot, but I don't know how to decode this and add to MYSQL.

Anyway, I know, that yours perl scripts are doing this, unfortunately I don't know perl, and can't write my own script...
I just want to save in my database:
- players, especially who killed who
- weapons what players have at the time
- who have bomb
- when bomb was planted, and who is trying to defuse it (also with or without defuser)
- number of round after restart
and... I suppose that's all

I don't want more information in my database, so it's possible to modify yours files to save only that?

If it's possible? I know it is, because I've seen that on hltv.org VIP zone, it's mean, that when i just type logaddress_add hltv.orgblablabla on my cs server, then I've scorebot after few moments on their site...

The website site should be easier I think, and probably I'll do it myself.

Can you help me?
I only want info how to read info from logaddress, save it to my db, and maybe little help with reading this..

Anyway, i want to use ajax to refreshing that page, so it should be LIVE in its own way :)


Top
 Profile  
 
 Post subject: Re: Live scorebot at website
PostPosted: Thu Jul 08, 2010 2:09 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1282
Location: Germany
Hello,

well the idea is not so bad, but HLStats is more complex.
You can't just change it the way you want. Also I do not have the time for this.

I've created some XML interface some time ago, which can be queried to get some information out of HLStats and implement into another service.
But this interface is far from complete.

Some of your wanted information is not available in the log stream. You have to write your own game plugin to get the information.

If you really just want to get some information from the gameserver, ypu can either use such services as http://www.game-monitor.com/ or use the steamcondenser framework to get the information by yourlsef: http://koraktor.github.com/steam-condenser/

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Live scorebot at website
PostPosted: Thu Jul 08, 2010 5:39 pm 
Newbie
Newbie

Joined: Wed Jul 07, 2010 4:40 pm
Posts: 3
Ok, so maybe you can only show me the way on a little sample, how to read logaddress info, write into database, and I'll try to do this on my own...

Then, i'll show my source to you, and then you'll know what i'm doing wrong...


And I'm pretty sure, that i can take most of those data, because I can read this in HLSW console when i'm taking logs from server via this software... Also I can run scorebot this way, but irc only. So there is that info in logaddress i think : p


Top
 Profile  
 
 Post subject: Re: Live scorebot at website
PostPosted: Fri Jul 09, 2010 12:42 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1282
Location: Germany
if you are going to use the steamcondenser framework, you can have a look at the usage page there:
http://koraktor.github.com/steam-condenser/usage.html

There are examples to get the data.

Do you have any experience in PHP and MySQL ?

_________________
Image
Image


Top
 Profile  
 
 Post subject: Re: Live scorebot at website
PostPosted: Sat Jul 10, 2010 12:12 am 
Newbie
Newbie

Joined: Wed Jul 07, 2010 4:40 pm
Posts: 3
yep :) i haven't done any big projects like hlstats yet, but few smaller scripts ;p


Top
 Profile  
 
 Post subject: Re: Live scorebot at website
PostPosted: Sat Jul 10, 2010 8:02 pm 
Administrator
Administrator
User avatar

Joined: Fri May 06, 2005 1:27 pm
Posts: 1282
Location: Germany
well then you should be able to get the data and write it into a DB.
But the storage in the DB is not really needed. You can safely get the data and display it, without storing.
If you want to keep the data, eg. to know what happened yesterday, then you need to save it.

_________________
Image
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
skymiles v1.1 designed by CodeMiles Team -TemplatesDragon-.