formats

module
v0.0.0-...-38e8959 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2019 License: Unlicense

README

formats

Build Status Coverage Status GoDoc

The aim of this project is to provide open source reference decoders for the file formats of the Diablo 1 game engine.

Installation

go get -u github.com/sanctuary/formats/...

Usage

The cel_dump and min_dump tools search for game assets in the diabdat/ directory, which should contains the extracted files of diabdat.mpq.

Extract diabdat.mpq
# Extract DIABDAT.MPQ archive.
go get -u github.com/sanctuary/mpq
mpq -dir diabdat -m diabdat.mpq
Fix broken files in diabdat.mpq

The original diabdat.mpq archive contains three broken files, levels/l1data/banner2.dun, monsters/darkmage/dmagew.cl2 and monsters/unrav/unravw.cel. All of which can be fixed by running the mpqfix tool on the diabdat/ directory containing the extracted game assets.

go get -u github.com/mewrnd/blizzconv/cmd/mpqfix
mpqfix -mpqdump diabdat
Dump CEL files
# Convert all CEL and CL2 files into PNG format.
#
# The command takes ~15 minutes to complete.
cel_dump -a
Dump MIN files
# Convert all MIN files into PNG format.
#
# The command takes ~1 minute to complete.
min_dump -a

Directories

Path Synopsis
cmd
cel_dump
The cel_dump tool converts CEL and CL2 files to PNG images (*.cel -> *.png).
The cel_dump tool converts CEL and CL2 files to PNG images (*.cel -> *.png).
min_dump
The min_dump tool converts MIN files to PNG images (*.min -> *.png).
The min_dump tool converts MIN files to PNG images (*.min -> *.png).
image
cel
Package cel implements a CEL and CL2 image decoder.
Package cel implements a CEL and CL2 image decoder.
cel/config
Package config specifies the data required for decoding CEL images.
Package config specifies the data required for decoding CEL images.
level
min
Package min provides access to MIN files.
Package min provides access to MIN files.
til
Package til implements access to TIL files.
Package til implements access to TIL files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL