Author Topic: Soldat Logstat development - statistics program  (Read 9922 times)

0 Members and 1 Guest are viewing this topic.

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Soldat Logstat development - statistics program
« on: June 27, 2007, 11:11:27 am »
Latest Public BETA:
Version 0.1.2


Intro
Hi,

I've noticed that there is a huge demand for Soldat statistic programs. Since 1.4 introduced some changes in the logformat, I'm going to write an entirely new statistics program.

The program is written in Visual Basic 6.0 because I didn't have had the time yet to learn a cross-platform client-side language decently enough to make a statistics program good enough to release to the community.

The goal of this topic is to collect ideas and suggestions before the program is released.


Here are a few screenshots already:
Main screen
General screen
Weapon Stats screen - Primary weapons
Weapon Stats screen - Secondary weapons
Weapon Stats screen - Misc weapons
And again, this stats program will have a blistering fast parse speed:
Parsing

All suggestions are welcome. However, please don't spend your time looking for suggestions regarding the look, as you can see I haven't even had the time to design a logo :P. Suggestions regarding the layout or structure are certainly welcome.


Public BETA-Testing:
Current version is 0.1.2, see top of this post for the download link.

Please leave any errors along with the logstat_log.txt file in this post, thanks alot!

Known bugs:
- None yet

Fixed in next version:
- None yet



Grtz, DePhille
« Last Edit: July 11, 2007, 07:40:03 am by DePhille »
This signature was broken. Feel free to fix it.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Soldat Logstat development - statistics program
« Reply #1 on: June 27, 2007, 11:15:07 am »
For servers, don't rush to adapt to the new log format (file names) yet, 2.6.2 apparently has an option to use the old format

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Soldat Logstat development - statistics program
« Reply #2 on: June 27, 2007, 11:24:02 am »
For once, Visual Basic comes in handy. I just need to change a simple mask in order to fix that. Currently, any file with the pattern KillLog-*.txt in the given map will be parsed.

Thanks for the warning though.

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Soldat Logstat development - statistics program
« Reply #3 on: June 27, 2007, 12:59:33 pm »
Layout should be similar to Soldat's layout. the color and look of it.

To fill up the general, try putting in like, accuracy, how many hit from how many you shot, and misses. And how about showing the most used color of your character, like red, black, blue and so on.
Maybe show the most used weapon at the bottom or something, just to fill things up.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Soldat Logstat development - statistics program
« Reply #4 on: June 27, 2007, 01:02:39 pm »
hits/misses are not logged, therefore accuracy can not be reported.

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Soldat Logstat development - statistics program
« Reply #5 on: June 27, 2007, 01:04:03 pm »
Crap.
How about games won and games lost?
 Those should be logged right?

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Soldat Logstat development - statistics program
« Reply #6 on: June 27, 2007, 01:20:17 pm »
They are for servers but unfortunately not for Soldat clients.
I already made a sugestion for that in the suggestions subforum, you can help drawing attention to it, if it gets implemented it's only a few hours work to implement stats such as games won, favourite server, favourite gamemode, flag captures and so on.

Thanks for all the suggestions so far, keep them coming :).

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Soldat Logstat development - statistics program
« Reply #7 on: June 27, 2007, 01:21:31 pm »
You can add total deaths, favourite weapons (personal weapons stats?), top victims and top killers.

Concerning the weapons stats, i think you shouldn't separate the porcentages in primary/secondary/misc weapons. It's ok to separate the layout that way, but the porcentages should be calculated over the total kills, not only the kills with weapons listed in each sub-section. As you see, grenades will always be the full bar the way it's shown there.
urraka

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Soldat Logstat development - statistics program
« Reply #8 on: June 27, 2007, 02:53:03 pm »
For total stats, the amount of kills is always the same as the amout of deaths: If a kill 'happens', someone dies.
The personal stats however will have deaths included.

Player specific stats are pretty hard to calculate in Visual Basic, without taking up the parsing time enormeously. (<3 PHP). However, it might also be my lack of knowledge. I'll look into it.

That's a good point, maybe it's easier to put grenades in secondary or primary category?
Having the bars compared to the total amount of kills only shows very small bars, so it's pretty hard to see any diffrence.

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Soldat Logstat development - statistics program
« Reply #9 on: June 27, 2007, 03:09:29 pm »
I so want to beta test this for you.

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Soldat Logstat development - statistics program
« Reply #10 on: June 27, 2007, 03:35:42 pm »
Thanks, I will do my best to finish it asap!

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Soldat Logstat development - statistics program
« Reply #11 on: June 27, 2007, 08:42:52 pm »
That's a good point, maybe it's easier to put grenades in secondary or primary category?
Having the bars compared to the total amount of kills only shows very small bars, so it's pretty hard to see any diffrence.

Hmm i guess i didn't explain right what i was thinking. The idea is to take as 100% the number of kills made by the most popular weapon. For instance:

knife: 1000 kills
desert eagles: 750 kills
grenades: 500 kills

Then, the porcentages would be:

knife: 100%
desert eagles: 75%
grenades: 50%

I hope i explained it right. Notice that i included one weapon of each section, which shows what i was saying also in my previous post.
I'm not inventing anything here, this is the way it's calculated in zitrostats, and i think it's perfect that way.

About the total stats, i thought it were only for your player, heh. So yes, total deaths would be for personal stats.
urraka

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Re: Soldat Logstat development - statistics program
« Reply #12 on: June 27, 2007, 08:46:25 pm »
So, if you got, say 153 Deagle kills, that would be considered 100%

If you got 39 knife kills and 21 grenade kills, how would the program determine the percentages?

"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Soldat Logstat development - statistics program
« Reply #13 on: June 27, 2007, 09:19:11 pm »
So, if you got, say 153 Deagle kills, that would be considered 100%

If you got 39 knife kills and 21 grenade kills, how would the program determine the percentages?
You would get 100% if thats all you used...

Offline mxyzptlk

  • Veteran
  • *****
  • Posts: 1493
  • The Panda Ninja
Re: Soldat Logstat development - statistics program
« Reply #14 on: June 27, 2007, 09:24:10 pm »
no, he's saying that the weapon that you used the most counts as 100%, and everything is in relation to that. It's not hit accuracy, it's weapon percentages.

"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking

Offline Xxypher

  • Veteran
  • *****
  • Posts: 1319
  • Soldat Veteran.
Re: Soldat Logstat development - statistics program
« Reply #15 on: June 27, 2007, 09:30:02 pm »
I wasn't talking about accuracy, I was talking about weapon usage too.

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Soldat Logstat development - statistics program
« Reply #16 on: June 28, 2007, 03:55:59 am »
Hmm, yes that's even a better idea.

I've got yet another question. Currently, the program should fit in a 640*480 screen resolution. If no-one here uses that old screen resolution anymore I could take it up to 800*600 so I can make those bars a bit wider, which will make the difference between them alot clearer. What do you think?

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Soldat Logstat development - statistics program
« Reply #17 on: June 28, 2007, 07:02:06 am »
Go with 800x600 or... make it scale so that people who want it bigger can have a bigger resolution.  Make it so it can stretch and it remembers its window size for the next time it loads?

Offline DePhille

  • Flagrunner
  • ****
  • Posts: 623
  • SoldatPage Webmaster
    • SoldatPage
Re: Soldat Logstat development - statistics program
« Reply #18 on: June 28, 2007, 11:43:37 am »
that's a whole bunch of work to do in Visual Basic. There are currently already over 200 controls in the program, and making it scaleable would require me to calculate a relative width and height for every one of them.
I'll switch to 800*600 though.

It only brings one extra problem: How should I fill the general statistics now?

Grtz, DePhille
This signature was broken. Feel free to fix it.

Offline urraka

  • Soldat Developer
  • Flagrunner
  • ******
  • Posts: 703
Re: Soldat Logstat development - statistics program
« Reply #19 on: June 28, 2007, 12:06:06 pm »
Or move to VB.NET :P
Scaling is so automatic there. Oh, and everything is so easy to do lol

So, if you got, say 153 Deagle kills, that would be considered 100%

If you got 39 knife kills and 21 grenade kills, how would the program determine the percentages?

153kills -> 100%
39kills   ->  X

X = 39kills * 100% = 25,490196078431372549019607843137%
           153kills
« Last Edit: June 28, 2007, 12:13:03 pm by PerroAZUL »
urraka