perl/schtarr.git
16 years agoscmtomap: extract map data from scm
Shiar [Wed, 28 Nov 2007 03:54:21 +0000 (04:54 +0100)]
scmtomap: extract map data from scm

Perl Archive::MoPaQ map extractor prototype. Assumes the data to be the
first file part, which certainly isn't always correct (detection later).
Can only extract to an external file rightnow.

16 years agodo not track generated files for Archive::MoPaQ
Shiar [Mon, 31 Dec 2007 16:37:54 +0000 (17:37 +0100)]
do not track generated files for Archive::MoPaQ

16 years agoData::StarCraft::Replay package taken out of screp
Shiar [Tue, 27 Nov 2007 19:29:49 +0000 (20:29 +0100)]
Data::StarCraft::Replay package taken out of screp

16 years agoscrep --act to create an animated image of replay actions
Shiar [Wed, 14 Nov 2007 07:55:33 +0000 (08:55 +0100)]
screp --act to create an animated image of replay actions

Creates an animated GIF using GD, with pixels set at move/attack/builds
locations for each player per time period. Could use some love.

16 years agoData::StarCraft::Map package taken out of scmap
Shiar [Tue, 27 Nov 2007 19:18:02 +0000 (20:18 +0100)]
Data::StarCraft::Map package taken out of scmap

16 years agoArchive::MoPaQ - perl interface to libmpq
Shiar [Tue, 27 Nov 2007 18:54:42 +0000 (19:54 +0100)]
Archive::MoPaQ - perl interface to libmpq

Module setup using h2xs.

Provides basic methods to open an archive and extract files by number,
but not much else yet.

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