Hlxml Documentation |
Project Docs | ||
Half-Life Server Logs to XML Converter | ||
What the *** is this?
I wrote a small command-line tool in Java, that reads Half-Life Server logs and transforms them into a XML Representation.
The project is hosted on SourceForge.
-- jan
Features
- SAX XMLReader Implementation
- XML Configuration with HiveMind
- Can be used for other log formats as well, basically everything that can be parsed using a set of Regular Expressions.
History of Changes | ||
Version 0.3.1 (CVS only)
- Added generation of HLSW Player DB text import format files (jawe)
- Changed a lot of internal classes to be HiveMind services (jawe)
- Externalized and localized most of the messages using HiveMind's localization mechanism (jawe)
- Split HiveMind modules into core and cstrike. The core module is intended to be reusable for virtually any kind of logfiles (jawe)
- Minor documentation updates (jawe)
Version 0.3 (2004-08-30)
- Initial CVs Import and upload to sf.net. (jawe)
- Reads single log files or whole directories. (jawe)
- Generated XML can be written to a directory. (jawe)
- Nice command line interface. (jawe)
- Created and uploaded the homepage (= documentation) using forrest. (jawe)
Todo List | ||
medium
- [parser] Add Ant targets for compiling JUnit Tests. → jawe
- [parser] Write/expand JUnit tests. → jawe
- [parser] Implement a SAX ContentHandler that accumulates statistics. → jawe
- [reader] Implement receiving logs via rcon. → jawe
- [stats] Generate HTML displaying the stats. → jawe
low
- [www] Write developer docs: Architecture Overview, Configuration, Guide. → jawe
- [project] Try Maven. → jawe
Hlxml Roadmap | ||
Release 0.4
This version will include the ability to gather overall stats.
Release 0.5
This version will include the ability to gather specific stats (players, maps, weapongs etc.).
Release 0.6
This version will generate a website displaying the stats.
Release 0.7
This version will include the ability to receive and parse logs via rcon.
User Docs | ||
Hlxml User Documentation | ||
Purpose
Hlxml is the first step of an attempt to implement a XML based player stats sytem for half-life servers.
Hlxml Getting started | ||
Preparation
- Download a distribution package
- Install it using a compression tool like WinZip, unzip, tar etc.
- Make sure you have some Half-Life server log files handy.
- Choose or create a directory to write the generated XML files to.
Usage
Open a command line prompt and type java -jar hlxml.jar --help to get a short description of the available command line options.
See the Usage Notes for more information.
Hlxml Download | ||
Download
All files can be downloaded from the SourceForge project site.
Distributions
- Binary
- hlxml-<version>.<extension>
- Documentation
- hlxml-doc-<version>.<extension>
- Source
- hlxml-src-<version>.<extension>
- Source without libraries
- hlxml-src-nolibs-<version>.<extension>
Hlxml Installation | ||
Installation
- Download a distribution package.
- Extract it into a directory of your choice using a compression tool like WinZip, unzip, tar etc.
Hlxml Command line usage | ||
Usage
Change to the program directory (the one where you extracted the distribution package) and type java -jar hlxml.jar --help to get the following output:
java -jar hlxml.jar [options] [files] where options are: -h,--help display a help text and exit -o,--output <Ausgabeverzeichnis> a directory to write the xml files to -p,--parser <Parser Typ> parser type, currently only cstrike is supported
Parsing a single logfile
Change to the program directory and type:
java -jar hlxml.jar -o /path/to/output-directory /path/to/logfile.log
Parsing all logfiles in a directory
Change to the program directory and type:
java -jar hlxml.jar -o /path/to/output-directory /path/to/logfiles
Developer Docs | ||
Hlxml Developer Documentation | ||
Architecture Overview
TODO
Hlxml Parser Configuration | ||
Apache HiveMind
TODO
Matching Log Entries: match
TODO
Matching Tokens: choose and when
TODO
Reacting on matches: do
TODO
Hlxml API Documentation | ||
Guide
TODO
Reference
Click here to view the Javadoc generated API documentation
Standards Compliance
TODO: Describe use of SAX, JAXP and TRAX APIs.