Assaultcube Server Stats (aka sekret MOOM)
#11
Ah yes. I missed that page. I focused mainly on the server logs.

The reason for this is early on in the process of making this script, I didn't realize python made a difference between int and float. So I had to do some un-thought-out changes to the script.

One thing to realize is that these stats are not live. These are all one day. I plan on getting some regular scheduling for updates and such, but first I have to make many improvements.

Here is the escape table:
html_escape_table = {
    "&": "&",
    '"': """,
    "'": "'",
    ">": ">",
    "<": "&lt;",
    }

Meaning this:
#" onclick="alert('oops')" rel="
Would become this:
#&quot; onclick=&quot;alert(&apos;oops&apos;)&quot; rel=&apos;&apos;

again, I'll be making improvements on this front.


Another note is that all of the data compilation (HTML making) happens off of the server on my home computer. This is because I would make the site, then revise it and rerun the script.

I'll play around with the CSS some more with my web-guru's. I dont have a terribly great eye for color :>


@Flow
I recall your stats that you pulled out of your hat, and I wondered at the time how you masterfully produced those.
I have a feeling my classes (I made them so they dont have to be specific to this script) are about in the same stage as yours were, you were probably farther (just re-read your post). I plan on extending and getting more out of the info when I can figure more out about it.

On the topic of extern info, it might be nice if some documentation was written up. I know I do not possess enough knowledge to write up a sufficient piece of documentation. I just never learned some of the stuff I use. (Now I am reminded that I need to thank Fiz up in the OP).

Ahha, I plan on using geoIP on the next version. That sounds quite fun.
I also plan on showing the list of servers in some kind of order. Most likely the highest ratio of time up/time played. I would have to think about temp servers only put up to play 4 games or so.

I am quite sorry that I may not of adressed as much as you did.



To make my intentions about the project clear:
I plan on making this script more secure and reliable (meaning preventing injection and such)
I plan on figuring out some server to collect data once a week.
I plan on making everything fully automated.
I do not plan on making this a constant data collection process like a ladder.

However, if I do get a server resource that will allow me to constantly collect data, I may rethink the last one. It would require something very different though.
Thanks given by:


Messages In This Thread
RE: Assaultcube Server Stats (aka sekret MOOM) - by Ronald_Reagan - 11 Sep 11, 01:58AM