Giter Site home page Giter Site logo

go-casc's Introduction

casc

Library

Library to extract files from the CASC file system used by Blizzard games. Files can be extracted locally from an installed game or online from Blizzard's CDN.
Full documentation available at: https://godoc.org/github.com/jybp/casc

Example

package example

import (
    "github.com/jybp/casc"
    "net/http"
)

func example() {
    explorer, err = casc.Online(casc.Warcraft3, casc.RegionUS, casc.RegionUS, http.DefaultClient)
    // Or fetch files locally using:
    // explorer, err = casc.Local("/Applications/Warcraft III")
    // explorer, err = casc.Local("C:\Program Files\Warcraft III") 
    if err != nil {
        // Handle error
    }
    for _, filename := range explorer.Files() {
        data, err := explorer.Extract(filename)
        if err == casc.ErrNotFound {
            continue
        }
        if err != nil {
            // Handle error
        }
        // Do something with data
    }
}

cmd/casc

A command line program to extract files from a local installation or from Blizzard's CDN.
You can download the latest release here: https://github.com/jybp/casc/releases

Usage

  -app string
        app code
  -cdn string
        cdn region (default "us")
  -dir string
        game install directory
  -o string
        output directory for extracted files
  -region string
        app region code (default "us")
  -v    verbose

Examples

List all Warcraft III files :

$ casc.exe -dir "C:\Program Files\Warcraft III"
$ casc -dir "/Applications/Warcraft III"
$ casc -app w3

Extract all Warcraft III files that are inside the 'War3.w3mod:Movies' folder from Blizzard's CDN into the current directory:

$ ./casc -app w3 | grep '^War3.w3mod:Movies/' | ./casc -app w3

Support

App Code Status
Diablo III d3 done
StarCraft s1 done
Warcraft III w3 done

Thanks

go-casc's People

Contributors

jybp avatar

Stargazers

 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.