AJAX scores.log parser/score tracker

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

AJAX scores.log parser/score tracker

Postby Psychcf » Mon Mar 12, 2007 2:07 am

http://psychdesigns.net/~psychiccyberfr ... 2.0.tar.gz
http://www.stormassault.com/dmdocuments/Ajax_Score_Tracker-1.0.zip (old)


That zip there contains an ajax scores tracker I wrote this weekend. It's all one page, and it's all AJAX. It automatically re-parses the log every 5 minuites, however each player's tab has to be manually updated. When you switch to a new player tab that tab is automatically updated. It is under the GPL.

Changes for version 2:
* Optimizations for dom, so less browser lockups
* added player url thing
* Charts of kills per match
* New layout, get more information faster
* Manually update the log with a button, and it shows a throbber

Try it out here:
http://stormassault.com/serverscripts/scores/
Last edited by Psychcf on Wed Oct 31, 2007 11:45 pm, edited 3 times in total.
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby John Galt » Sun Oct 28, 2007 11:46 pm

PCF, this is awesome. Thanks :) Working to hack it into my site now.
cat /dev/urandom > /dev/mem
John Galt
Alien
 
Posts: 166
Joined: Thu Jul 19, 2007 9:20 pm
Location: Washington, DC

Postby Psychcf » Mon Oct 29, 2007 1:56 am

yeah, I actually should rewrite it, dojo 1.0 was recently released and that uses dojo 4.5 iirc. I'll update it when I get the chance.
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby John Galt » Mon Oct 29, 2007 4:11 am

Cool -- keep us posted. I'm surprised nobody else seemed to have noticed this.

There isn't much else in the way of this out there that I was able to find and I'm not much of a coder yet, so building it from scratch and patchwork with qstat isn't really viable for me.

:)
cat /dev/urandom > /dev/mem
John Galt
Alien
 
Posts: 166
Joined: Thu Jul 19, 2007 9:20 pm
Location: Washington, DC

Postby John Galt » Mon Oct 29, 2007 4:23 am

Also, can you think of any easy way to get this working with multiple score files? Xeno also mentioned a de-facto per player opt out by prepending the string

Code: Select all
^4^2

to your name. Does this take that into account? A cursory look at the source doesn't appear to have any checks for that string, but I may be missing something.

Thanks again for the great little tracker.
cat /dev/urandom > /dev/mem
John Galt
Alien
 
Posts: 166
Joined: Thu Jul 19, 2007 9:20 pm
Location: Washington, DC

Postby Xeno » Mon Oct 29, 2007 4:41 am

Thanks for bringing that up, John.

Psych, it would be appreciated if you could add that to the source code.
Xeno
peregrinus originis incognitae
 
Posts: 396
Joined: Wed Nov 15, 2006 10:42 pm

Postby :) » Mon Oct 29, 2007 4:48 am

John Galt wrote:There isn't much else in the way of this out there that I was able to find and I'm not much of a coder yet, so building it from scratch and patchwork with qstat isn't really viable for me.


qstat is for getting current server status, it's not really designed for server stats.

also, server stats aren't really an interactive thing; is ajax best for this?
I say that because I can't even try this out because of the cpu load.
:)
Keyboard killer
 
Posts: 590
Joined: Tue Feb 28, 2006 9:09 pm

Postby John Galt » Mon Oct 29, 2007 1:41 pm

qstat is for getting current server status, it's not really designed for server stats.


Yeah, I'm aware. I was just envisioning a kind of panel in my head that tied qstat into it all as well to get current activity, etc. The rest, I wasn't sure how to approach.

Good point about ajax as well. I hadn't thought about your poor old pII.

For now, I think it'll do. Any one playing Nex will probably have a machine with enough oomph to do the processing client side anyway.

You just have to get your mobo (case?) fixed, Dave ;)

We'll see. This is all just the "coming together" phase :)
cat /dev/urandom > /dev/mem
John Galt
Alien
 
Posts: 166
Joined: Thu Jul 19, 2007 9:20 pm
Location: Washington, DC

Postby Psychcf » Mon Oct 29, 2007 2:42 pm

well, what's probably causing the massive cpu loads is dom transformations, I have learned a lot about dom optimization since I wrote that. Dojo 0.9 features huge amounts of optimizations as well. Dave PMed me about it, I think a group of us should get together and write a really kick ass stats parser with a subversion repo or something.

Here's some of the really cool things I think we can incorperate into it:
* Dojo 3d charting: http://download.dojotoolkit.org/release ... _bars.html
* Tree widget, grouping clan tags
* Advanced dojo.data API functions such as lazy loading. This significantly increases responsiveness of the application.

there are some other things too, I'm just loosing my head...
Last edited by Psychcf on Wed Oct 31, 2007 11:41 pm, edited 1 time in total.
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby Psychcf » Mon Oct 29, 2007 11:09 pm

@John Galt: I just realized that you have the older version up, this new one that I just posted should be much faster.
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Next

Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron