Giter Club home page Giter Club logo

wzexplorer's Introduction

MapleStory WZ File Unpack

tools of maplestory wz files include Canvas SoundDX8

  • support multiple directory struct
  • support read directory struct from Base.wz or Base directory
  • lazy loading save memory

Usage

go get -u github.com/anonymous5l/wzexplorer

Examples

example for cms v079 read all struct

package main

import (
	"github.com/anonymous5l/wzexplorer"
	"image/png"
	"os"
)

func main() {
	cp, err := wzexplorer.NewCryptProvider(79, wzexplorer.IvEMS)
	if err != nil {
		panic(err)
	}

	/**
	wz_files_directory
        ├── Base.wz
        └── <...>.wz
	wz_files_directory
        ├── Base
        │   ├── Base.ini
        │   └── <...>.wz
        └── <...>
	*/

	archive, err := wzexplorer.NewBase(cp, "wz_files_directory")
	if err != nil {
		panic(err)
	}
	defer archive.Close()

	obj, err := archive.GetPath("/Map/Back/poisonForest.img/back/12")
	if err != nil {
		panic(err)
	}

	o, err := os.Create("test.png")
	if err != nil {
		panic(err)
	}
	defer o.Close()

	img, err := obj.Canvas().Image()
	if err != nil {
		panic(err)
	}

	if err = png.Encode(o, img); err != nil {
		panic(err)
	}
}
  • example for single file
    cp, err := wzexplorer.NewCryptProvider(79, wzexplorer.IvEMS)
    if err != nil {
        panic(err)
    }

    f, err := wzexplorer.NewFile(cp, "filename.wz")
    if err != nil {
        panic(err)
    }
    defer f.Close()

wzexplorer's People

Contributors

anonymous5l avatar

Watchers

 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.