Giter Club home page Giter Club logo

dnftoolkit's Introduction

DNFToolKit

介绍

dnf解析NPK资源文件

软件架构

基于 java 21

安装教程

  1. maven配置
    <dependency>
        <groupId>com.dnf</groupId>
        <artifactId>dnf-toolkit-core</artifactId>
        <version>1.0</version>
    </dependency>
    
    <dependency>
        <groupId>com.dnf</groupId>
        <artifactId>dnf-toolkit-npk</artifactId>
        <version>1.0</version>
    </dependency>
    
    <dependency>
        <groupId>com.dnf</groupId>
        <artifactId>dnf-toolkit-pvf</artifactId>
        <version>1.0</version>
    </dependency>

Usage

  1. 执行测试(解析NPK)
    public static void main(String[] args) {
        // NPK文件路径
        NpkCoder.initialize("D:/DOF/ImagePacks2");
        // img路径
        NpkImg npkImg = NpkCoder.loadImg("sprite/character/swordman/equipment/avatar/skin/sm_body0000.img");
        System.out.println(npkImg);
    }
    public static void main(String[] args) {
        // PVF文件路径
        PvfCoder.initialize("D:/DOF/Script.pvf", Charset.forName("GBK"));
        
        // .ani等其他文件脚本路径 返回对应Json(目前只支持.lst .str .ani)
        JSONObject data = PvfCoder.loadScript("character/common/animation/minimap_effect_dodge.ani");
        System.out.println(data);
        
        // 输出所有存放 <pvf子文件所在父路径名, 对应文件父路径下所有PvfFile>
        System.out.println(PvfCoder.getPvf().getTreeDict());
        
        // 输出占位符对应中文文本
        System.out.println(PvfCoder.getPvf().getPlaceHolderTable().get("condition_message_10770"));
    }

BugFix

  • 修改整个项目以适应60版本初期Act4版本
  • (Fixed) 修改解析.ani文件的Parser
  • (Todo) 补充一下 加载所有的.lst文件
  • (Todo) 导出所有pvf的文本
  • (Todo) 完成后续各种pvf子文件格式的Parser

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

dnftoolkit's People

Contributors

sjy0727 avatar

Stargazers

 avatar

Watchers

 avatar

dnftoolkit's Issues

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.