File: recover_gnomehack.6

package info (click to toggle)
gnomehack 1.0.5-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 10,256 kB
  • ctags: 12,966
  • sloc: ansic: 119,783; yacc: 2,002; sh: 610; lex: 417; makefile: 397
file content (84 lines) | stat: -rw-r--r-- 2,760 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.TH RECOVER 6 "9 January 1993"
.UC 4
.SH NAME
recover \- recover a GnomeHack game interrupted by disaster
.SH SYNOPSIS
.B recover
.I "base1 base2" ...
.SH DESCRIPTION
.PP
Occasionally, a GnomeHack game will be interrupted by disaster
when the game or the system crashes.
Prior to GnomeHack v3.1, these games were lost because various information
like the player's inventory was kept only in memory.
Now, all pertinent information can be written out to disk,
so such games can be recovered at the point of the last level change.
.PP
The
.I base
options tell
.I recover
which files to process.
Each base option specifies recovery of a separate game.
.PP
For recovery to be possible,
.I gnomehack
must have been compiled with the INSURANCE option, and the run-time option
.I checkpoint
must also have been on.
GnomeHack normally writes out files for levels as the player leaves them,
so they will be ready for return visits.
When checkpointing, GnomeHack also writes out the level entered and
the current game state on every level change.
This naturally slows level changes down somewhat.
.PP
The level file names are of the form base.nn, where nn is an internal
bookkeeping number for the level.
The file base.0 is used for game identity, locking, and, when checkpointing,
for the game state.
Various OSes use different strategies for constructing the base name.
Microcomputers use the character name, possibly truncated and modified
to be a legal filename on that system.
Multi-user systems use the (modified) character name prefixed
by a user number to avoid conflicts,
or "xlock" if the number of concurrent players is being limited.
It may be necessary to look in the playground to find the correct
base name of the interrupted game.
.I recover
will transform these level files into a save file of the same name as
.I gnomehack
would have used.
.PP
.I recover
has been installed under Debian GNU/Linux as sgid games. This makes
it possible for users to recover their own games. The security hazards
of possible cheating have been removed, by taking out the
.I -d
option and making sure the only directory auto-save files can be read
from is /var/lib/games/gnomehack. 
.SH NOTES
.PP
Like
.I gnomehack
itself,
.I recover
will overwrite existing savefiles of the same name.
Savefiles created by
.I recover
are uncompressed;
they may be compressed afterwards if desired,
but even a compression-using
.I gnomehack
will find them in the uncompressed form.
.SH "SEE ALSO"
gnomehack(6)
.SH BUGS
.PP
.I recover
makes no attempt to find out if a base name specifies a game in progress.
If multiple machines share a playground, this would be impossible to
determine.
.PP
.I recover
should be taught to use the gnomehack playground locking mechanism to
avoid conflicts.