These Perl scripts were used to read data from Bungie Software's 1991 game Operation: Desert Storm, and create the content for my ODS Annotated Maps site.
These are all command-line tools. Usually the input is expected on stdin and output is written to stdout.
These convert bmap
, pmap
, clut
, and mask
resource data into PNG graphics. My "classic-mac-utils" repository contains scripts for extracting resource data from the application.
This combines a set of pmap and mask PNGs into new PNGs with an alpha channel. ODS hardcoded which masks go with which pmaps; this script uses a reverse-engineered list.
The "Logistics" file in ODS is actually a fairly readable plain text file (with Mac line endings, naturally). However, I wanted something a little better documented and easily parsed for the subsequent steps, so this script produces more verbose XML.
This draws the field for each level. Recreating the border-drawing logic was fun.
These two scripts produced all the HTML for the Annotated Maps site.