Code Monkey home page Code Monkey logo

khkh_xldm's Introduction

khkh_xldM

Fork of kenjiuno's KH2 MDLX tools including various fixes and features.

Introduction

The main purpose of this fork is to provide a working library for exporting ASET animation files from MDLX/MSET file pairs. This is done by porting the original (fixed) khkh_xldMii_revel8n tool into a .NET 6 library, removing all Windows Forms dependencies.

Installing/building

Currently, there are no pre-built releases for download as further testing needs to be done. The library ships with all legacy dependencies, including SlimDX, so you should be able to build (working) projects yourself. Package dependencies, such as SharpDX or System.Drawing.Common, need to be installed via NuGet.

API

The main functionality of this library is provided by the MdlxConvert class. The following list describes the most important methods in a brief manner:

MdlxConvert.ToAset(string, Action, IntPtr)

bool MdlxConvert.ToAset(string mdlxPath, Action<ExportState, ExportStatus> onProgress, IntPtr handle)

Converts the MDLX file at the specified path to an ASET file. The method requires a corresponding MSET file in the same directory as the MDLX file.

Parameters

  • string mdlxPath: The path of the MDLX file to convert
  • Action<ExportState, ExportStatus> onProgress: Callback function for the export progress. The function is called at several states of the export process containing the current state/status information.
  • IntPtr handle (optional): A reference to the handle (hWnd) of the calling window/process (required by SlimDX). Default: the current (invoking) process handle.

Returns

True if the conversion has been successful.

Examples

Check out the included (WinForms) project khkh_xldMii_slim for reference and example usage.

khkh_xldm's People

Contributors

krokettenkoal 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.