Coder Social home page Coder Social logo

seanrobinson1114 / blizzconv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dogganz/blizzconv

0.0 2.0 0.0 342 KB

This project aims to provide functionality for converting different proprietary formats into modern formats with open specifications.

Go 100.00%

blizzconv's Introduction

blizzconv

Build Status Coverage Status GoDoc

This project aims to provide functionality for converting different proprietary formats into modern formats with open specifications.

Supported formats

  • cel
  • cl2
  • min
  • til

Partially supported formats

  • dun
  • trn

Usage

The following steps can be taken to convert all CEL, CL2, MIN, TIL and DUN files to PNG images.

  1. Install Go from a binary distribution or from source.

  2. Configure the GOPATH environment variable.

     $ mkdir $HOME/go
     $ export GOPATH=$HOME/go
     $ export PATH=$PATH:$GOPATH/bin
    
  3. Extract DIABDAT.MPQ using Ladislav Zezula's MPQ Editor. Make sure to convert the file names in the listfile to lower case.

  4. Download and compile the mpqfix, img_dump, min_dump, til_dump and dun_dump commands by running:

     $ go get github.com/mewrnd/blizzconv/cmd/mpqfix
     $ go get github.com/mewrnd/blizzconv/images/cmd/img_dump
     $ go get github.com/mewrnd/blizzconv/configs/cmd/min_dump
     $ go get github.com/mewrnd/blizzconv/configs/cmd/til_dump
     $ go get github.com/mewrnd/blizzconv/configs/cmd/dun_dump
    
  5. Set up the environment required by img_dump, min_dump, til_dump and dun_dump:

     $ mkdir dump
     $ cd dump
     $ ln -s /path/to/extracted/diabdat_mpq/ mpqdump
     $ ln -s $GOPATH/src/github.com/mewrnd/blizzconv/mpq/mpq.ini mpq.ini
     $ ln -s $GOPATH/src/github.com/mewrnd/blizzconv/images/imgconf/cel.ini cel.ini
     $ ln -s $GOPATH/src/github.com/mewrnd/blizzconv/images/imgconf/cl2.ini cl2.ini
     $ ln -s $GOPATH/src/github.com/mewrnd/blizzconv/configs/dunconf/dun.ini dun.ini
     # Fixes the two faulty files `unravw.cel` and `banner2.dun`.
     # ref: https://github.com/mewrnd/blizzconv/issues/2#issuecomment-58065868
     $ mpqfix
    
  6. Convert all CEL images to PNG images. The following command creates 12045 PNG images (57 MB) and takes about 1m20s to complete on my computer.

     $ time img_dump -imgini=cel.ini -a
    
  7. Convert all CL2 images to PNG images. The following command creates 373967 PNG images (1.8 GB) and takes about 1h45m to complete on my computer.

     $ time img_dump -imgini=cl2.ini -a
    
  8. Convert all MIN files to PNG images. The following command creates 3286 PNG images (19 MB) and takes about 1m to complete on my computer.

     $ time min_dump l1.min l2.min l3.min l4.min town.min
    
  9. Convert all TIL files to PNG images. The following command creates 1001 PNG images (14 MB) and takes about 40s to complete on my computer.

     $ time til_dump l1.til l2.til l3.til l4.til town.til
    
  10. Convert all DUN files to PNG images. The following command creates 45 PNG images (62 MB) and takes about 4m20s to complete on my computer.

    $ time dun_dump -a
    

Public domain

The source code and any original content of this repository is hereby released into the public domain.

blizzconv's People

Contributors

mewmew avatar

Watchers

James Cloos avatar sean robinson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.