Digital Paint Discussion Board

Development => General Development => Topic started by: ViciouZ on December 30, 2008, 05:47:33 PM

Title: Patch: Local Statistic Tracking
Post by: ViciouZ on December 30, 2008, 05:47:33 PM
(http://www.viciouz.co.uk/images/localstats.jpg)

This patch adds very simple local tracking which saves kills, deaths, grabs and captures on the local machine. It uses a different file for each profile on the computer.

Commands:
localstats: Display collected statistics
clearlocalstats: Clear local statistics file for current profile

http://www.viciouz.co.uk/other/miscfiles/paintball2_localstats.patch
Title: Re: Patch: Local Statistic Tracking
Post by: Garrett on December 30, 2008, 06:39:21 PM
Great job.  Is it possible to make the stat output more 'table ish'?  Having two columns, one for the strings and one for the numbers?
Title: Re: Patch: Local Statistic Tracking
Post by: Lapppy on December 30, 2008, 07:13:44 PM
How do we install it? ;D
Title: Re: Patch: Local Statistic Tracking
Post by: ViciouZ on December 30, 2008, 07:33:13 PM
It's a source code patch, it will be included in build 24 or 25 if jitspoe thinks it's of a good standard.

@Garrett: Yeah, I'll have a go at that tomorrow :-)
Title: Re: Patch: Local Statistic Tracking
Post by: i_am_a_pirate on January 05, 2009, 03:09:46 PM
does this do total for the lifetime for the profile??
Title: Re: Patch: Local Statistic Tracking
Post by: ViciouZ on January 05, 2009, 03:21:06 PM
Wha?
Title: Re: Patch: Local Statistic Tracking
Post by: Garrett on January 05, 2009, 06:58:54 PM
does this do total for the lifetime for the profile??
How could it possibly?  If that were the case, all of the information would to have been already stored. 
Title: Re: Patch: Local Statistic Tracking
Post by: wafflez205 on January 05, 2009, 11:28:03 PM
this sounds like a great idea. Could it be put in a menu  not just in the console
Title: Re: Patch: Local Statistic Tracking
Post by: Garrett on January 06, 2009, 09:33:27 AM
It isn't actually implemented yet.  Vic posted the programming patch for Jitspoe.
Title: Re: Patch: Local Statistic Tracking
Post by: wafflez205 on January 06, 2009, 10:42:51 AM
I know that I'm just wondering if it will be in the console or a menu
Title: Re: Patch: Local Statistic Tracking
Post by: Garrett on January 06, 2009, 10:55:55 AM
It will most likely be console based at the time of the release.  Zorch will probably add a menu for it after the DP build release.
Title: Re: Patch: Local Statistic Tracking
Post by: i_am_a_pirate on January 12, 2009, 11:29:17 AM
How could it possibly?  If that were the case, all of the information would to have been already stored. 
No, no, no, what i mean is does it track the kills etc in total or for just everytime you, say, change server? So could it display the kill to death ratio for the LIFETIME as well as for that map?

EDIT

oh, and is possible for me to put this in my paintball2.exe without getting banned for modified content?
Title: Re: Patch: Local Statistic Tracking
Post by: ViciouZ on January 12, 2009, 12:03:32 PM
It is not wiped when you change server, and you can compile it into paintball2.exe but if you play online you will get banned.
Title: Re: Patch: Local Statistic Tracking
Post by: i_am_a_pirate on January 14, 2009, 04:07:46 PM
This is probably gonna be the first step towards a proper statistics tracking system to be incorperated into the GLS. Well done KnacK ViciouZ!!
Title: Re: Patch: Local Statistic Tracking
Post by: ViciouZ on January 14, 2009, 04:16:19 PM
YEAH!! HURRAY FOR KNACK!!! BECAUSE HE HASN'T EVEN POSTED IN THIS THREAD AND NEEDS YOUR CONGRATULATIONS!!!!!!!

:P
Title: Re: Patch: Local Statistic Tracking
Post by: wafflez205 on January 14, 2009, 06:20:17 PM
WOOOT!
Title: Re: Patch: Local Statistic Tracking
Post by: i_am_a_pirate on January 17, 2009, 04:54:47 PM
ahahhahahahah!!! lol!! sorry guys! Complete typo.  I have KnacK bound to ctrl-shft-k and Viciouz bound to ctrl-shft-; in firefox so i missed the key :P
Title: Re: Patch: Local Statistic Tracking
Post by: Garrett on January 17, 2009, 05:19:44 PM
Why do you have them bond to keys?
Title: Re: Patch: Local Statistic Tracking
Post by: Zorchenhimer on January 17, 2009, 10:08:23 PM
Hes a stalker.
Title: Re: Patch: Local Statistic Tracking
Post by: i_am_a_pirate on January 18, 2009, 11:54:07 AM
I'm not quite sure sarcasm is very easy to convey over the internet without going Rof1c0pt4r!!!!!!!!! so err....

ahahhahahahah!!! lol!! sorry guys! Complete typo.  I have KnacK bound to ctrl-shft-k and Viciouz bound to ctrl-shft-; in firefox so i missed the key :P Rof1c0pt4r!!!!!!!!
Title: Re: Patch: Local Statistic Tracking
Post by: jitspoe on January 20, 2009, 11:32:42 PM
I got 4 grabs and 0 caps, and my stats were 1.#J:1, hehe, but that's a minor bug.  Good work.  This will be in the next build.
Title: Re: Patch: Local Statistic Tracking
Post by: Zorchenhimer on January 22, 2009, 12:24:53 AM
Found another small bug.  If there are no profiles on the computer and you use "localstats" it spits back a command not found error.  Might be useful if it said you had to be logged in or something.
Title: Re: Patch: Local Statistic Tracking
Post by: ViciouZ on January 22, 2009, 05:42:02 AM
It's designed to be like that, it only registers the commands if the system loads correctly, and isn't loaded until you log in.
Title: Re: Patch: Local Statistic Tracking
Post by: Zorchenhimer on January 22, 2009, 01:51:15 PM
But a nice "Login stupid!" message would be nice if they weren't logged in.  :P
Title: Re: Patch: Local Statistic Tracking
Post by: Garrett on January 28, 2009, 04:04:54 PM
Would I be a good for a database to be created so the local info could be uploaded for the public to see?  I could do one in java.  I need practice at it.
Title: Re: Patch: Local Statistic Tracking
Post by: jitspoe on January 28, 2009, 06:13:37 PM
Would I be a good for a database to be created so the local info could be uploaded for the public to see?  I could do one in java.  I need practice at it.
I'm not sure if that's a good idea.  Client-side stats are easy to fake, so they wouldn't hold much meaning, and I despise java. :)
Title: Re: Patch: Local Statistic Tracking
Post by: Garrett on January 28, 2009, 06:53:51 PM
True about the faking part.  I like java but, my opinion will likely change once I learn c/c++/c#.
Title: Re: Patch: Local Statistic Tracking
Post by: Eiii on January 28, 2009, 07:09:18 PM
Why do the stats have to hold any meaning? If the stats system has significant meaning then people will only try harder to game it. My ideal system would be server side, but it would also allow the user to reset their stats whenever they'd like to, but client side works just fine for that too.
Title: Re: Patch: Local Statistic Tracking
Post by: Garrett on January 28, 2009, 11:02:51 PM
I never understood stats tracking.  With stats tracking, people just try to find ways to make their stats look better.  People should know how good you are by how you play, not how your stats look.
Title: Re: Patch: Local Statistic Tracking
Post by: jitspoe on January 29, 2009, 12:09:55 PM
I never understood stats tracking.  With stats tracking, people just try to find ways to make their stats look better.  People should know how good you are by how you play, not how your stats look.
Another reason it probably shouldn't be made public.  People would probably spawn camp on the speed servers for 8 hours a day to rack up kills.
Title: Re: Patch: Local Statistic Tracking
Post by: T3RR0R15T on January 29, 2009, 12:20:38 PM
Another reason it probably shouldn't be made public.  People would probably spawn camp on the speed servers for 8 hours a day to rack up kills.

No problem, if it works only on a "certificated" server. Means a server with special settings and (finished (http://dplogin.com/forums/index.php?board=20.0)) maps.
Title: Re: Patch: Local Statistic Tracking
Post by: T3RR0R15T on May 13, 2009, 09:40:58 AM
U work on it anymore?

If yes, it would be nice if u could add the weapon stats.