perl/schtarr.git
16 years agoseperate class Data::StarCraft::PvPGN::Report
Shiar [Tue, 1 Jan 2008 22:26:01 +0000 (22:26 +0000)]
seperate class Data::StarCraft::PvPGN::Report

Move pvpgn report file parser code into its own class.
Same functionality, except now reusable outside of pvpgnreport.

16 years agosupport auto-add of recordless replays
Shiar [Sat, 12 Jan 2008 21:23:23 +0000 (21:23 +0000)]
support auto-add of recordless replays

16 years agonew replay name shorthand 'Nxxnxn' for date prefix of N days ago
Shiar [Sat, 12 Jan 2008 21:21:24 +0000 (21:21 +0000)]
new replay name shorthand 'Nxxnxn' for date prefix of N days ago

16 years ago'new' script for automatic game insertion into database
Shiar [Fri, 11 Jan 2008 01:14:46 +0000 (01:14 +0000)]
'new' script for automatic game insertion into database

16 years agogive an error if pvpgn report insertion fails
Shiar [Mon, 31 Dec 2007 16:19:26 +0000 (16:19 +0000)]
give an error if pvpgn report insertion fails

16 years agostrip path name to pvpgn report file for name
Shiar [Mon, 31 Dec 2007 16:18:35 +0000 (16:18 +0000)]
strip path name to pvpgn report file for name

16 years agoirc bot reporting on bnetd activities
Shiar [Mon, 31 Dec 2007 16:11:46 +0000 (16:11 +0000)]
irc bot reporting on bnetd activities

Connects to #schtarr at flutnet and prints out basic Starcraft activity
on the server (players entering/leaving, games starting/ending).

16 years agorecognize team in replay's player data
Shiar [Mon, 31 Dec 2007 15:42:53 +0000 (15:42 +0000)]
recognize team in replay's player data

16 years agoparse ladder info from pvpgn logs
Shiar [Tue, 13 Nov 2007 23:36:27 +0000 (23:36 +0000)]
parse ladder info from pvpgn logs

16 years agopvpgn report file parser
Shiar [Sun, 11 Nov 2007 23:50:51 +0000 (23:50 +0000)]
pvpgn report file parser

Reads a game report file (mixed formatting of formatted text and xml),
and inserts basic game information into the database.

16 years agoscrep -a to write an SVG file with apm history per player
Shiar [Mon, 12 Nov 2007 20:06:05 +0000 (21:06 +0100)]
screp -a to write an SVG file with apm history per player

Uses SVG::TT::Graph::TimeSeries to draw a (very) nice graph of average
action speeds per user over the course of the game.

16 years agoscrep: parse player data
Shiar [Mon, 12 Nov 2007 20:03:52 +0000 (21:03 +0100)]
screp: parse player data

Shows players by name and race.

16 years agoscrep: do not include trailing nulls in map name
Shiar [Mon, 12 Nov 2007 15:15:17 +0000 (16:15 +0100)]
screp: do not include trailing nulls in map name

16 years agoscrep: document unknown command 0x1B
Shiar [Mon, 12 Nov 2007 15:14:46 +0000 (16:14 +0100)]
screp: document unknown command 0x1B

16 years agoscrep: fix apm (ignore first 1'20 correctly)
Shiar [Mon, 12 Nov 2007 15:14:22 +0000 (16:14 +0100)]
screp: fix apm (ignore first 1'20 correctly)

16 years agoscrep: show number of played frames
Shiar [Mon, 12 Nov 2007 14:05:03 +0000 (15:05 +0100)]
screp: show number of played frames

Last frame (and it's time at fastest) for each player.
No more need to show general last frame ('duration').

16 years agoalso read replay header in screp
Shiar [Mon, 12 Nov 2007 04:24:26 +0000 (05:24 +0100)]
also read replay header in screp

Parses the header leading commands (no problem since it should always
have a constant size), so input (extractor) needs to be modified.
Recognizes most data, but players array can benefit from some additional
parsing and usage in commands output.

16 years agostarcraft replay parser
Shiar [Sun, 11 Nov 2007 23:38:03 +0000 (00:38 +0100)]
starcraft replay parser

Read commands part from a StarCraft replay file on stdin (cannot extract
this itself yet), and parses all command blocks. Outputs each player's
apm by default.

Maps ids of commands, build types, units, upgrades, and actions into an
appropriate text. Gives warnings when it encounters something not
recognized.

Most format details were supplied by the document 'Starcraft Replay file
format description' version 0.10 by Soar Chin <webmaster@soarchin.com>.

16 years agostarcraft replay map parser
Shiar [Wed, 7 Nov 2007 03:30:52 +0000 (04:30 +0100)]
starcraft replay map parser

Reads a raw map extracted from a replay, and parses its data into a perl
hash. Input is given on stdin, and accepts command line arguments for
setting options.

Can also format map tiles to an ascii or ppm picture, as far as I could
determine the tile identifier. It handles Jungle maps quite decently
(though all data was set up by comparing output to minimaps and map
thumbnails); especially all data in most Lost Temple maps are defined.

Started on support for other tilesets (not only colors differ, but
apparantly also meanings (ramp = wall for example)), but needs to be
worked out.

After collecting sufficient guess points, hopefully a more
complete/abstract determination can be made.

16 years agopure perl mopaq parser setup
Shiar [Sun, 4 Nov 2007 18:05:43 +0000 (19:05 +0100)]
pure perl mopaq parser setup

To get started. Can read and parse a mpq header, but neither good nor
efficient. Built from format description at
https://zohar.devklog.net/projects/mpqkit/wiki/MoPaQ_Format