factorio-settings

Crates.iofactorio-settings
lib.rsfactorio-settings
version1.0.0
sourcesrc
created_at2023-10-28 14:13:14.415622
updated_at2023-10-28 14:13:14.415622
descriptionCLI application to deserialize & reserialize Factorio's mod-settings.dat to JSON or TOML
homepage
repositoryhttps://github.com/CerulanLumina/factorio-settings
max_upload_size
id1016960
size145,728
Cerulan Lumina (CerulanLumina)

documentation

README

factorio-settings

A command line utility to decode and encode mod settings (mod-settings.dat) for Factorio


Features

  • Easy-to-use command line interface
  • Byte-parity with Factorio (so far so good)
  • Available formats for decoded representation: JSON, TOML

Quick Examples

factorio-settings mod-settings.dat -f json | jq '.startup["my-color-setting"].value.g=1' | factorio-settings -f json - mod-settings.dat
factorio-settings mod-settings.dat json_settings.json
factorio-settings mod-settings.dat toml_settings.toml

Usage

Usage: factorio-settings [OPTIONS] <INPUT> [OUTPUT]

Arguments:
  <INPUT>   The input path to read binary settings from. Use "-" for stdin
  [OUTPUT]  The output file. Overwrites if present. Stdout if omitted

Options:
  -m, --mode <MODE>      Whether to encode or decode the input. If not provided, will attempt to infer based on output type, or input type, in that order [possible values: decode, encode]
  -f, --format <FORMAT>  The format for the serialized input/output. If omitted, will attempt to infer based on mode and input or output [possible values: toml, json]
  -h, --help             Print help
  -V, --version          Print version
Commit count: 16

cargo fmt