Git Product home page Git Product logo

fabrc's Introduction

fabrc

A script for parsing Fab Resource (What is Fab?) found in Pokemon Pokémon Art Academy

Requirements

  • python 3
  • python-fire
  • python-lz4

Usage

fabfnt.py

You can generate a *.fabfnt file and the corresponding font image(s) with this script.

fabfnt.py FONTNAME CHARSET_PATH CHARSET_ENCODING FACEPATH SIZE SAVEDIR BASELINE [IMAGEGLYPHS]...
  • FONTNAME: The internal name of the generated font file.
  • CHARSET_PATH: Path to the charset file which you want to included in the generated font.
  • CHARSET_ENCODING: Charset file encoding.
  • FACEPATH: Font file path (*.ttf, *.ttc, etc.).
  • SIZE: Font pixel size.
  • SAVEDIR: Where the output files being saved to.
  • BASELINE: Baseline position.
  • [IMAGEGLYPHS]...: Special glyphs, such as button icons. The file name should be the glyph's charcode in decimal.

fabndl.py

Pack a folder to a fab resource bundle

fabndl.py pack PATH PATH_OUT
  • PATH: Path to the folder
  • PATH_OUT: Path to the output file.

Repack a bundle

fabndl.py repack PATH LOAD_DIR PATH_OUT
  • PATH: Path to an existing bundle file.
  • LOAD_DIR: Path to the folder you want to load the replacement files.
  • PATH_OUT: Path to the output file.

Unpack a bundle

fabndl.py unpack PATH PATH_OUT <flags>
  optional flags:        --decompress
  • PATH: Path to the bundle file.
  • PATH_OUT: Path to the unpacked folder.
  • --decompress: Decompress the lz4 compressed file data if specified.

fabtex.py

Convert a ctpk file to a fabtex file. Supports L4/A4/ETC1A4 pixel format only.

fabtex.py CTPK FABTEX

fabrc's People

Contributors

littoma avatar

Watchers

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