mirror of
https://github.com/rr-/pq-cli.git
synced 2026-11-12 22:40:36 -07:00
ui: import and export .pqw files from the menus
The basic interface gets two main menu entries that ask for a path. The curses roster gets [I] Import and [E] Export, with a new text input view for the path, prefilled with NAME.pqw on export, and a message view for the outcome and any warnings. The README explains how to move characters to and from the web version. Resolves #21
This commit is contained in:
7 files changed
+266
-3
No files matched your search
@@ -121,6 +121,27 @@ A few things to keep in mind:
|
||||
- Existing characters keep their race and class even if you remove them from
|
||||
the lists.
|
||||
|
||||
## Moving characters to and from the web version
|
||||
|
||||
pqcli reads and writes the `.pqw` files that the
|
||||
[web version](http://progressquest.com/play/)'s roster page saves and
|
||||
loads. A character keeps its random number generator state either way, so
|
||||
it carries on exactly as it would have where it came from.
|
||||
|
||||
- In either interface, pick *Import* or *Export* from the main menu.
|
||||
- From the command line:
|
||||
|
||||
```console
|
||||
$ pqcli --import-save Grumdrig.pqw
|
||||
$ pqcli --list-saves
|
||||
1. Grumdrig
|
||||
$ pqcli --export-save 1 Grumdrig.pqw
|
||||
```
|
||||
|
||||
Export never overwrites an existing file. pqcli plays offline only, so
|
||||
online realm, guild and motto settings are dropped on import, with a
|
||||
warning.
|
||||
|
||||
## Contributing
|
||||
|
||||
```sh
|
||||
|
||||
Reference in new issue
Block a user