Giter Site home page Giter Site logo

radj307 / ckconv Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 128 KB

Commandline unit converter for Bethesda games.

License: GNU General Public License v3.0

CMake 4.14% C++ 95.86%
bethesda bethesda-games cli commandline creation-kit creationkit fallout4 gamebryo gamebryo-units linux

ckconv's Introduction

Bethesda Engine Unit Converter


GitHub tag (latest by date)  GitHub all releases

This is a commandline utility that converts between common length measurement units & Bethesda's eponymous Unit

Features

  • Cross-Platform:
    • Windows
    • Linux
    • macOS
  • Supports Metric, Imperial, and Creation Kit measurement units
  • Can be embedded in other programs

If you're new to using CLI programs, see the beginners guide.

Installation

No formal installation is required, simply place the executable somewhere and call it from your preferred shell.

If you want to be able to use the program no matter your shell's current working directory, you'll need to place the executable in a location found in your PATH environment variable.

The program is small enough to embed within another executable, for an example see this synthesis patcher.

Adding to your PATH variable

Linux

Place the executable in /usr/local/bin to add to your path, or add export PATH='$PATH;<PATH_TO_DIRECTORY>' to the end of ~/.bashrc

Windows

See this stackoverflow answer

macOS

I genuinely have no idea as I have never owned or used a mac, but I assume it's similar to Linux.

Usage

Use ckconv -h or ckconv --help to see a usage guide, and documentation on all of the available options.

Use ckconv --units to see a list of all recognized units.
When specifying units, you can use the values in the Symbol or Name columns.

Examples

Simple conversions, and pipe operators:

Multiple conversions at once:

Converting 5 picometers to units, printed in standard notation:

With v6.0.0 comes less-strict syntax support. That means you can use expressions like 260m u or 260 m u instead of the more strict <UNIT> <VALUE> <OUTPUT_UNIT> syntax required by previous versions.

ckconv's People

Contributors

radj307 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ckconv's Issues

Figure out a way to install `gcc-12` on github actions runners

Currently, the github actions script cannot build the program on POSIX (Ubuntu & MacOS) because neither have gcc-12 in their stable APT repositories, and currently the program requires gcc-12 or newer.
I don't know if there is a way around that on a github actions runner, since we're running in a virtualized container... Figure that out!

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.