Giter Site home page Giter Site logo

cli's Introduction

ci

Rakaly CLI

The Rakaly CLI provides a convenient way of accessing Rakaly functionality locally.

Features

  • ✔ Supports converting (melting) EU4, CK3, HOI4, and Imperator Rome saves to their plaintext equivalent
  • ✔ Cross platform: run rakaly-cli on mac, windows, and linux
  • ✔ Lightweight: Small executable that can be download and ran -- no dependencies

Install

  • Go to the latest releases
  • Download desired build (mac, windows, or linux)
  • Extract
  • (optional): Add to your computers path for easier access
  • Enjoy

Documentation

Melting Save Files

Rakaly CLI can convert binary encoded saves to their plaintext equivalent in a process called melting.

rakaly melt aq.eu4

The above example will create a plaintext aq_melted.eu4 file that one can open up and inspect in a text editor. Moreover, this melted save may be continued in EU4 as if it was a normal game (the other games remain untested in this aspect).

The melt command determines how to interpret the save file by looking at the extension (.eu4, .rome, .hoi4, or .ck3).

If outputting to stdout is more your style:

rakaly melt --to-stdout aq.eu4

Whenever there is a content patch for the supported games, the rakaly-cli will be out of date until the next update. The default behavior of the melt command is to fail when unexpected tokens from the new content is encountered. To make the melt command perserve through the tokens and encode them as hexadecimals in the output:

rakaly melt --unknown-key stringify aq.eu4

When unknown tokens are encountered with the stringify strategy then the unknown tokens are printed to stderr and the exit code is 1.

The melter knows how to melt a given file based on its file extension. In the event this heuristic is incorrect, one can explicitly provide the desired format:

rakaly melt --format eu4 --to-stdout gamestate

Conversion to JSON

The json subcommand will convert game and save files (including binary ones) into JSON output on stdout.

rakaly json aq.eu4

The output can be pretty printed:

rakaly json --pretty aq.eu4

By default, duplicate keys are preserved in the JSON, but this can be configured:

rakaly json --duplicate-keys preserve  aq.eu4
rakaly json --duplicate-keys group aq.eu4
rakaly json --duplicate-keys key-value-pairs aq.eu4

When converting game files, pass the character encoding so that non-ascii characters are represented correctly:

rakaly json --format windows-1252 achievements.txt

cli's People

Contributors

crschnick avatar nickbabcock avatar pr0methean avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cli's Issues

Expose additional rakaly API endpoints

Not sure what this would look like but if this is about exposing server commands locally:

  • PATCH aar
  • PATCH filename
  • DELETE save
  • List saves
  • Download save

Vicky 3 dates parsed wrong

When trying to parse a vicky 3 save it will fail to parse the dates. It turns the date string into an int causing the save to be loaded wrong. For an example melt a vicky 3 file and check admirals/generals cooldown_repair_date value.

Exe in Windows is not working

Hi ,
i have downloaded the latest version for windows and extracted it but nothing happens when i try to open. I have tried the previous version as well.
Even with checking my registry entries regarding exe values and calling the exe out of the cmd it just shows a short window for if i really want to start it and when i confirm nothing happens. Any idea what i'm doing wrong? The Antivir program is disabled as well.

image

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.