aaazalea / webdip-parser

Parser for WebDiplomacy orders, written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is this

This is a parser for the format of orders shown on the "Orders" page of a game on WebDiplomacy. The output format is compatible with jDip's multiple order entry dialog.

Prerequisites

You should install rustup.

Using it

  1. Copy all the orders from the orders page into a text file. It should begin with something like Autumn, 1913 arge map with whatever the most recent season is, and end with Russia's orders from Spring 1901.
  2. save in a file called data.txt. Maybe I'll add argument parsing later.
  3. Run cargo run in the root of this repository. jDip-friendly orders will come over standard output.
  4. Paste each chunk of them into jDip's multi-order box. It may complain that "there is no unit in Bulgaria" or similar, when the unit is auto-disbanded and WebDiplomacy wants to destroy it. That's okay.

About

Parser for WebDiplomacy orders, written in Rust

License:MIT License


Languages

Language:Rust 100.0%