summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/dump_payload3
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