#export #macro #read #xiv #ff14 #command-line-tool

app export-ffxiv-macros

A CLI utility for exporting Final Fantasy XIV macros to TOML

1 unstable release

0.1.0 Jul 15, 2021

#108 in #export

Apache-2.0

10KB
152 lines

Crates.io Apache-2.0 Build Status

Export FFXIV Macros

A simple tool that leverages libxivdat to dump Final Fantasy XIV macros to TOML.

Libxivdat could theoretically support writing back to MACRO.DAT files. I might support that at some point.

Usage

export-ffxiv-macros -> Exports all character-specific and system-wide macros located in the usual places. ($HOME/Documents/My Games/Final Fantasy XIV - A Realm Reborn/)

export-ffxiv-macros path/to/MACRO.DAT path/to/out.toml -> Exports a specific file.

Mac / Linux Caveats

This will search your actual home directory when run without args. If you sandbox your wine user directories, you'll need to run the windows app in wine or manually point the native app at the correct files.

Output Sample

[[macro]]
title = 'Low Spell Fx'
icon = 'Number0'
lines = [
    '/bfx party simple',
    '/bfx other off',
    '/soundeffectsparty 50',
    '/soundeffectsother 20',
    '/ambientsounds 20',
]
text = '/bfx party simple /bfx other off /soundeffectsparty 50 /soundeffectsother 20 /ambientsounds 20'

Contributing

Contributions are always welcomed. Please ensure code passes cargo test , cargo clippy, and rustfmt -v --check **/*.rs before making pull requests.

Dependencies

~0.7–1.7MB
~32K SLoC