diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-29 06:54:12 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-02-29 06:54:12 +0100 |
commit | fc1cec6a65c5567533557ef19d8f2ad5a80e0bf3 (patch) | |
tree | f790050d3e3e024377f05c1a98065417e9f85ea2 /tools/dump_payload | |
parent | 5114770988dc15fe245cd9d0439468f4664134bf (diff) | |
download | RustAndDust-fc1cec6a65c5567533557ef19d8f2ad5a80e0bf3.zip RustAndDust-fc1cec6a65c5567533557ef19d8f2ad5a80e0bf3.tar.gz |
tools/dump_payload: dump state.json and turn.json
Diffstat (limited to 'tools/dump_payload')
-rwxr-xr-x | tools/dump_payload | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/dump_payload b/tools/dump_payload index 11a8ee5..e03beb6 100755 --- a/tools/dump_payload +++ b/tools/dump_payload @@ -1,3 +1,4 @@ #! /bin/bash -sqlite3 android/assets/data/rustanddust.sqlite 'select payload from states where _g=1' > out.json +sqlite3 android/assets/data/rustanddust.sqlite 'select payload from states where _g=(select _id from games order by ts desc limit 1)' > state.json +sqlite3 android/assets/data/rustanddust.sqlite 'select payload from turns where _id=(select max(_id) from turns)' > turn.json |