[RELEASE] (PHP) Demo information extraction.

Bohica

Veteran XV
Veteran XX
http://tribes.tribalwar.com/vup/Bohica/tv_demo.tar.bz2

Code:
INCLUDED IN THIS RELEASE
  - (index.php) Sample demo indexing script
  - (tv_demo.php) Demo information extraction code

REQUIREMENTS
  - Webserver configured to support PHP (tested on Apache2 and: PHP 4.3.8, PHP
    5.0.2)
  - Valid T:V recordings

HOW TO USE
  Include tv_demo.php in your own script (with include_once("tv_demo.php"), for
  example). Call get_demo_info(/path/to/demo/file). On success, returns an
  array of format ('map','player','date'). On error, returns false.

EXAMPLE:
  See index.php for a complete example. In brief:

  include_once("tv_demo.php");

  $info = array();
  $info = get_demo_info("VuP_vs_FTM_Scrim.dem");

  if($info !== false) {
    printf("[Map: %s] [Player: %s] [Date/Time: %s]\n",
           $info['map'], $info['player'], $info['date']);
  } else {
    print "Error getting demo information.\n";
  }

BUGS / FEATURE REQUESTS
  Email bug reports or feature requests to aschorer+bugs@warpedlight.com (yes,
  the +bugs should be there). Alternately, you can contact me on IRC: bohica on
  irc.dynamix.com in #vup.
 
Being able to ff or rw demos and them not effing up and showing no huds would be a better thing to work on.

But thx = )
 
Santa said:
Cool. Regular demos and not just server demos right?
I didn't know server demos were implemented (nor did I have any to examine), so I can't guarentee this will work on them. Assuming I can get my hands on one, I can probably make any changes necessary.
 
nuk|m said:
Being able to ff or rw demos and them not effing up and showing no huds would be a better thing to work on.

But thx = )

wtf. They're not the dev team. T:V doesn't have scripting and demos are effed as is. Grow a brain and say thank you instead of whining like a bitch.
 
Anyone have a working page featuring this? I would like to see it in action for the full effect? I have a general idea of what it does, but would like to see how it could be incorporated into a demo indexing page for a clan.
 
I'm only using the Player name/Map name in this particular index.

tv_demo.jpg
 
Tonez, anything new with this script? Can you pull out other information? Fastest speed, best killer, etc? Or even just a player/points list.

:dapopcorn
 
Back
Top