Author Topic: vsp stats processor  (Read 5281 times)

rasz_pl

  • Guest
vsp stats processor
« on: September 11, 2006, 09:35:36 pm »
http://www.5th-gradient.com/vsp/

anyone up to the challenge of making a trem profile for vsp?
I would try, but for me this :

class VSPParserQ3A { var $V93da65a9; var $V21d8a920; var
$Vae2aeb93; var $Va2bbabfe; var $V6d2b5d2c;
 var $V42dfa3a4; var $Vc3ecd549; var $V9693e947; var $Vdafa753c; var $V50dffd37; var $Vd6d33a32;
var $logdata; var $Va733fe6b; var $Vb3b1075a; function VSPParserQ3A($Ve0d85fdc,&$V4f00ff2f,&$V495c39bf)
 { define("C7e731e80",1024); $this->Fcda1c5ae($Ve0d85fdc); $this->V21d8a920= $V4f00ff2f; $this->Vae2aeb93= $V495c39bf;
 $this->V6d2b5d2c= array(); $this->V42dfa3a4= array(); $this->Va2bbabfe= array(); $this->logdata=array();
 $this->Vdafa753c= false; $this->V42dfa3a4['weapon_name']['search'] =array( "/MOD_/" ,"/_SPLASH/"

looks like a marauder vomit :( and their forum is currently offline.

Stof

  • Posts: 1343
  • Turrets: +1/-1
vsp stats processor
« Reply #1 on: September 11, 2006, 09:51:47 pm »
This looks like the result of an obfuscated code contest, but without any kind of style :eek: This MUST be some PHP or some Perl.
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
vsp stats processor
« Reply #2 on: September 11, 2006, 10:04:50 pm »
Quote from: "rasz_pl"

Code: [Select]

class VSPParserQ3A
{
    var $V93da65a9;
    var $V21d8a920;
    var $Vae2aeb93;
    var $Va2bbabfe;
    var $V6d2b5d2c;
    var $V42dfa3a4;
    var $Vc3ecd549;
    var $V9693e947;
    var $Vdafa753c;
    var $V50dffd37;
    var $Vd6d33a32;
    var $logdata;
    var $Va733fe6b;
    var $Vb3b1075a;
   
    function VSPParserQ3A($Ve0d85fdc,&$V4f00ff2f,&$V495c39bf)
    {
        define("C7e731e80",1024);
        $this->Fcda1c5ae($Ve0d85fdc);
        $this->V21d8a920= $V4f00ff2f;
        $this->Vae2aeb93= $V495c39bf;
        $this->V6d2b5d2c= array();
        $this->V42dfa3a4= array();
        $this->Va2bbabfe= array();
        $this->logdata=array();
        $this->Vdafa753c= false;    
        $this->V42dfa3a4['weapon_name']['search'] =array( "/MOD_/" ,"/_SPLASH/"



What the hell is all this?
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
vsp stats processor
« Reply #3 on: September 12, 2006, 03:47:15 am »
That's certainly one way to prevent someone from stealing your precious source code: make it so uselessly obfuscated that no one wants it. It is indeed PHP. And they said that PHP code is inherently cleaner more mantainable than Perl code...

I don't think I have anything that will automatically reformat PHP files.
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
vsp stats processor
« Reply #4 on: September 12, 2006, 12:07:56 pm »
s/;/;\n/ does wonders to readability.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

rasz_pl

  • Guest
vsp stats processor
« Reply #5 on: September 12, 2006, 12:09:17 pm »
there are parsers for :
                          cod              Call Of Duty, United Offensive    
                           hl               HalfLife 1 & 2, CS:Source etc.    
                           moh              Medal Of Honor AA,SH,BT,PA? etc.  
                           q3a              Quake 3 Arena                      
                           q3a-battle       Quake 3 Arena BattleMod            
                           q3a-cpma         Quake 3 Arena CPMA (Promode)      
                           q3a-freeze       Quake 3 Arena (U)FreezeTag etc.    
                           q3a-lrctf        Quake 3 Arena Lokis Revenge CTF    
                           q3a-osp          Quake 3 Arena OSP                  
                           q3a-ra3          Quake 3 Arena Rocket Arena 3      
                           q3a-threewave    Quake 3 Arena Threewave            
                           q3a-ut           Quake 3 Arena UrbanTerror          
                           q3a-xp           Quake 3 Arena Excessive Plus      
                           rtcw             Return to Castle Wolfenstein      
                           sof2             Soldier of Fortune 2              
                           wet              Wolfenstein: Enemy Territory  

but sadly, they all look like a vomit :(.

ok, the other one with a source is http://idda.planetquake.gamespy.com/
I'll try to compile it in a sec.

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
vsp stats processor
« Reply #6 on: September 12, 2006, 03:08:12 pm »
Quote from: "David"
s/;/;\n/ does wonders to readability.
And what about all the other junk?
s/}(?!\n| ?else)/}\n/
And then I'd have to go through manually indenting everything to get a better idea of scope? Yuck! Then there are the cryptic variable, class, and function names... I pass!
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

Chojin

  • Posts: 96
  • Turrets: +0/-0
    • http://wraths.dyndns.org
vsp stats processor
« Reply #7 on: September 12, 2006, 06:48:46 pm »
wow, that is sick!

next_ghost

  • Posts: 892
  • Turrets: +3/-6
vsp stats processor
« Reply #8 on: September 12, 2006, 07:11:28 pm »
Quote from: "Undeference"
Quote from: "David"
s/;/;\n/ does wonders to readability.
And what about all the other junk?
s/}(?!\n| ?else)/}\n/
And then I'd have to go through manually indenting everything to get a better idea of scope? Yuck! Then there are the cryptic variable, class, and function names... I pass!


AWK can do wonders to indenting :)
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

vcxzet

  • Guest
vsp stats processor
« Reply #9 on: September 12, 2006, 07:54:52 pm »
[]D [] []\/[] []D [] []\[]

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
vsp stats processor
« Reply #10 on: September 13, 2006, 02:22:30 am »
Quote from: "next_ghost"
Quote from: "Undeference"
Quote from: "David"
s/;/;\n/ does wonders to readability.
And what about all the other junk?
s/}(?!\n| ?else)/}\n/
And then I'd have to go through manually indenting everything to get a better idea of scope? Yuck! Then there are the cryptic variable, class, and function names... I pass!


AWK can do wonders to indenting :)
or emacs *ducks*
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

squishy

  • Posts: 91
  • Turrets: +1/-0
vsp stats processor
« Reply #11 on: September 13, 2006, 03:37:28 am »
I've begun working on a stats tool for my server. It's still being tweaked, but thought I'd share.

Only thing I don't like is that the stats are logged by username, so players can have multiple names logged in the stats tool. This should be easier to clean up when GUIDs are implemented globally. For now, I added a search tool so players could search for their names and get a tally.

My game server is Win2k3, so I poll the games.log, parse it with a VBS script, and import data into a MySQL db. I then push the MySQL db to my Web host for display on my site.

http://trem.b-tch.com/stats.php
--df

err

  • Posts: 26
  • Turrets: +0/-0
vsp stats processor
« Reply #12 on: September 13, 2006, 04:21:04 am »
Quote from: "digifad"

http://trem.b-tch.com/stats.php


Now that's some cool stuff. My only suggestion is a way to search kills / deaths AND choose your sort - there is no way to get to this page using the form / links... http://trem.b-tch.com/stats.php?s=2&k=stk

:edit: how exactly are you calculating rank btw? percentage*n1 + kills*n2 or something? just curious....
img]http://wilhelmrahn.googlepages.com/trapper-not-floor.png[/img]

squishy

  • Posts: 91
  • Turrets: +1/-0
vsp stats processor
« Reply #13 on: September 13, 2006, 05:15:22 pm »
Thanks for pointing that out, err. I tried to make sure I had all the queries included in the paging and sorting links, but must have missed that one. I'll fix that soon.

At the moment, rank is calculated by "kills-deaths". This ensures that someone with a 4-0 record is not on top with 100% ratio. I'm looking for a better calculation for rank, but have yet to find a good one.

It is still a work in progress, so input is appreciated.
--df