Quote:
thejeff said:
If you also generate the score dump, you can parse that for the turn number and actually save each turn.
|
Thanks, that was exactly what I was looking for.
I attached a python script. Instead of long winded explanations:
Code:
pia@Lollipop:~/dominions3$ ./dom3backup.py --help
usage: dom3backup.py [options]
options:
-h, --help show this help message and exit
-n NAME, --name=NAME Process file <name>. Otherwise latest file
-f FREQ, --freq=FREQ create a Zipfile every <n> turns. Default: 0 (no
zipfile)
-m MAXFILES, --maxfiles=MAXFILES
keep max. <n> Zipfiles. Delete oldest. Default: 0
(keep all)
-d ARCHDIR, --archdir=ARCHDIR
create Zipfiles in archdir. archdir must exists.
Default: <dom3>/archivedgames
--nocopy don't copy files to backup-dir. Default: False
--clean remove all zipfiles and the backup-dir