home · contact · privacy
Document "wait" action in log help and README.
[plomrogue] / README
1 7DRL 2015 project: Please the Island God
2 ========================================
3
4 Description
5 -----------
6
7 See <http://www.plomlompom.de/PlomRogue/plomwiki.php?title=7DRL2015Day2>
8 and <http://www.plomlompom.de/PlomRogue/plomwiki.php?title=7DRL2015Day3>.
9
10 System requirements / installation / running the game
11 -----------------------------------------------------
12
13 The game is expected to run:
14 - on Unix systems with a vt100-like terminal environment (xterm will do)
15 - that contain the ncurses library
16 - and Python3 (version >= 3.2.3).
17
18 To build it, this is furthermore necessary:
19 - gcc (version >= 4.7.2); some llvm masked as gcc was tested successfully on OSX
20 - libc library headers (libc6-dev?)
21 - ncurses library headers (libncurses5-dev?)
22
23 To build and start, do the following steps:
24
25 $ ./redo
26 $ ./roguelike
27
28 (If you got a version of djb's redo build system installed and in your $PATH,
29 you could also do a simple "redo" instead of "./redo". The ./redo script calls a
30 simple partial shell script implementation of redo stored below
31 ./build/redo_scripts/, written by Nils Dagsson Moskopp a.k.a. erlehmann.)
32
33 There are two executables ./roguelike-server and ./roguelike-client.
34 ./roguelike is a pre-existing shell script that merely executes both of them,
35 with the server as a background job. You can also ignore the script and start
36 any of the two by hand.
37
38 Keybindings
39 -----------
40
41 a - let AI decide move
42
43 w - move north-west
44 e - move north-east
45 s - move west
46 d - move east
47 x - move south-west
48 c - move south-east
49
50 w - wait one turn
51
52 l - toggle "look" mode, investigate map cells by moving a cursor over the map
53     instead of the player avatar
54
55 p - pick up item
56 D - drop item selected in inventory
57 u - use item selected in inventory
58
59 UP - navigate upwards in Inventory
60 DOWN - navigate downwards in inventory
61
62 Replay game recording
63 ---------------------
64
65 Once you start a new world, every move of yours is recorded in a file called
66 "record". It gets overwritten when a new game world is started after deletion
67 of the "savefile" file. Run "./roguelike -s" to watch the current game's
68 recording from the beginning. Hit any player action key to increment turns (they
69 will not trigger the actions usually mapped to them, only repeat the actions
70 done at that point in the game as defined in the "record" file). Keys to manage
71 windows, scroll on the map and quit the program do their usual thing. Append a
72 number to the -s option (like "-s100") to start the recording at the respective
73 turn number.
74
75 Hacking / server internals and configuration
76 --------------------------------------------
77
78 The game world is set up and made subject to player commands by
79 ./roguelike-server. It's controlled by commands explained in the file
80 ./SERVER_COMMANDS. The server usually reads these from the files ./server/in
81 (written to by ./roguelike-client), ./confserver/world, ./record and ./savefile.
82
83 All source files are thoroughly documented to explain more details of
84 plomrogue's internals. The ./roguelike-server executable can be run with a -v
85 option for helpful debugging info (mostly: what messages the client sends to the
86 server). Server and client communicate via files in the ./server/ directory
87 (generated when the server is first run). The ./server/in file is read by the
88 server for newline-delimited commands. The ./server/out file contains server
89 messages to be read by clients. The ./server/worldstate file contains a
90 serialized representation of the game world's data as it is to be visible to
91 the player / the player's client.