Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Games::FEAR::Log 0.02

    Download button

    No screenshots available
    Downloads: 693  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.4/5)
    7 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Evan Kaufman | More programs
    Perl Artistic License / FREE
    June 16th, 2008, 11:57 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Games::FEAR::Log description

    Games::FEAR::Log is a og analysis tool for F.E.A.R. dedicated servers.

    Games::FEAR::Log is a og analysis tool for F.E.A.R. dedicated servers.

    SYNOPSIS

    use Games::FEAR::Log;

    # instantiate new object, passing a hash reference of options
    my $log_obj = Games::FEAR::Log->new( {
    # database information: a dsn, username, and password
    -dbi => [
    'DBI:mysql:database=scoreboard;host=localhost;port=3306',
    'scoreboard_admin',
    'scoreboard_password'
    ],
    # table to store info
    -table => 'deathmatch1',
    # create table if it doesnt exist
    -create => ,
    # full path to logfile
    -logfile => '/var/log/FEAR/mp_scores.log',
    # empty the source logfile after reading it
    -truncate => 1,
    # delete any records older than 30 days
    -history => '30d'
    } );

    # process log file, importing new entries
    $log_obj->process() or die 'processing failed';

    # get ID of first user
    my @uids = $log_obj->get_uids();

    # get playernames this user goes by
    my @names = $log_obj->get_playernames( $uid[0] );

    # get stats for this user
    my $stats = $log_obj->get_stats( $uid[0] );

    # get history for this user
    my $history = $log_obj->get_history( $uid[0] );
    my @gametimes = keys %{$history};

    # get information for a game played by said user
    my $game = $log_obj->get_game( $gametimes[0] );

    # get scoreboard-structured informatuon
    my @scores = build_scoreboard('player', 'asc');

    This module allows the parsing of a F.E.A.R. multiplayer server log into a manageable database format, and provides an easy to use object-oriented interface to access that information. This information could then be used to create a CGI scoreboard application, such as the one included in the /examples directory.

    The underlying system uses a SQL relational database to store and retrieve game information. Initially, this implimentation is built to use a MySQL or PostgreSQL database, but I can add support for other database systems if there is a demand.

    Ideally, there could be two different 'pieces' to an application using this module, an administrative interface to import new log entries into the database, and a public interface to display and/or cross-reference already imported information.

    If performance is not a concern, however, it could be a one-piece application where new entries are checked for and added every time the interface is viewed.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    F.E.A.R. server | log analyzer | Perl module | F.E.A.R. | server | log

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM