GithubHelp home page GithubHelp logo

maplelib's Introduction

MapleLib2 by haha01haha01; based on MapleLib by Snow; based on WzLib by JonyLeeson; based on information from Fiel\Koolk.

maplelib's People

Contributors

hadeutscher avatar icelemon1314 avatar kagamia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

maplelib's Issues

Harepacker error

To use harepacker, breaking the connection at runtime while trying to change the image UI.WZ or would like to request a corrected error pop up in Harepacker. Please!

Support TMS?

This is either a bug or feature request! Currently if you load TMS's wz you will get unrecognizable character as wz property's ID. It would be great if it's recognizable.

Sound property extraction discussing

KMST client has extension WAVE format sounds in wz file for years, and encrypt sound header in latest client version(1018). I'm dealing with the hex numbers for hours and find the RIGHT way to read the header.

Short of say, the header for MP3 format and WAV format have similar structure, only different in length.
MP3 header (82 bytes)
header_mp3
WAV header (70 bytes)
header_wav

the header structure layout like this:

// header start
// first 51 byte is fixed
byte count1;  //count of guid1, always 2
byte[][] someGuid1 = new byte[count1][16]; 
byte count2;  //always 0
byte[][] someGuid2; // never used
byte count3;  //count of guid3, always 1
byte[][] someGuid3 = new byte[count3][16]; 

// wave format 
byte waveFormatLength;  //0x1e for mp3,  0x12 for wav
WAVEFORMATEX waveFormatEx; //wave format declaration

GUID can find form ffmpeg source code
GUID1 is similar to mediasubtype_mpeg1payload in wtvdec.c
GUID3 is same as ff_format_waveformatex in wtv_common.c
WAVEFORMATEX can find form MMREG.H (windows SDK)
for wav format: WAVEFORMATEX
for mp3 format: MPEGLAYER3WAVEFORMAT

WAV header (encrypted) (70 bytes)
header_wav_kmst

In kmst, waveFormatEx is encrypt, we can use WZKEY decrypt the last 0x12 byte, it will be back.

Everything make sense ๐Ÿ˜„

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.