perl/schtarr.git
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