GithubHelp home page GithubHelp logo

daphymorph / pkgnx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aatxe/pkgnx

0.0 0.0 0.0 1.11 MB

Blazing fast binary data format for video games – PKG4 for Java

Home Page: http://aaronweiss74.github.io/pkgnx/

License: MIT License

Java 100.00%

pkgnx's Introduction

pkgnx

pkgnx is a simple Java library for the NX file format. The format was designed by Peter Atashian and angelsl and has a public specification available here. The format intended on replacing the proprietary WZ data format designed by Wizet for the popular game, MapleStory.

Using pkgnx

Using pkgnx is really quite simple! The first step, of course, is to include the library as a dependency either by adding it to your classpath or adding it as a maven dependency. Once that's done, you can start coding away. The code itself is quite simple.

You can use an eagerly-loaded NX File like so:

    NXFile file = new EagerNXFile("path/to/file");
    // Do stuff, like...
    System.out.println(file.getRoot().getChild("Mob").getChild("8800000.img"));
    // Or...
    System.out.println(file.resolve("Mob/8800000.img"));

You can use a lazy-loaded NX File like so:

    NXFile file = new LazyNXFile("path/to/file");
    // Do stuff, like...
    System.out.println(file.getRoot().getChild("Mob").getChild("8800000.img"));
    // Or...
    System.out.println(file.resolve("Mob/8800000.img"));

You can also delay the parsing of an eager NX file until later like so:

    EagerNXFile file = new EagerNXFile("path/to/file", false);
    // Do some other stuff and then later...
    file.parse();

Versioning

pkgnx follows the Semantic Versioning guidelines. This means that the versions follow the structure Major.Minor.Patch where increments in patch number mean that no API changes took place, increments in minor number mean that all changes are backwards compatible, and increments in major number mean that changes are backwards-incompatible. This should make it easy to know when it's safe for you as a user to update this library!

Contributing

To contribute a patch to pkgnx, simply fork it and run. When you've finished all of your commits, go ahead and send a pull request. All changes are required to match the official format specification and changes that do not fix bugs or add additional functionality will be rejected. This means no style changes!

Acknowledgements

Licensing

pkgnx is licensed under the MIT License. The full license text can be found in LICENSE.md for your convenience.

pkgnx's People

Contributors

aatxe avatar angelsl 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.