Skip to content

CommandLine Usage for Tools

Ulysses Wu edited this page Nov 27, 2020 · 30 revisions

EmtConvert

Encrypt/Decrypt a PSB, must specify the key.

pixel

When you extract images from other tools, and images' color looks wrong, use this to convert images to make pixels looks right.

Switch02

For every 4 bytes, switch byte [0] [2].

ROR

Round shift right.

ROL

Round shift left.

RGBA428

Shibuya Scramble!

Extend 2 bytes pixel to 4 bytes pixel.

RGBA2L8Grayscale

Convert color to L8 style GrayScale.

Untile

Unswizzle

Tile

Swizzle

pack

Pack/Unpack PSBs to/from shell such as mdf, lz4 etc. (FreeMote.Plugins required)

print

Print an EMT PSB. (for its initial state, most likely it looks strange)

mdf

Pack/Unpack MT19937 encrypted MDF. (FreeMote.Plugins required)

PsbDecompile

Convert PSB to description jsons and resources.

image

Get combined image from pimg files.

unlink

Unlink textures from an EMT PSB, get all textures and a PSB without textures inside (aka external texture PSB).

info-psb

Extract files from info.psb.m & body.bin . (FreeMote.Plugins required)

PsBuild

Convert description jsons and resources to PSB.

link

Link textures into an external texture (EMT) PSB.

port

Re-compile an EMT PSB to another platform (e.g. from Win to Krkr).

info-psb

Pack files to info.psb.m & body.bin . (FreeMote.Plugins required) Currently cannot support files larger than 2GB.

replace

In-place Replace: replace the PSB's textures. Only works for pure PSBs with not compressed textures (RGBA8, RGBA4444). If there is something wrong with rebuilt PSB, this feature would be useful.

FreeMote Viewer

Preview EMT PSB and its motions.

EmtMake

Convert EMT PSB to MMO project file.

Clone this wiki locally