1 7DRL 2015 project: Please the Island God
2 ========================================
7 See <http://www.plomlompom.de/PlomRogue/plomwiki.php?title=7DRL2015Day2>
8 and <http://www.plomlompom.de/PlomRogue/plomwiki.php?title=7DRL2015Day3>.
10 System requirements / installation / running the game
11 -----------------------------------------------------
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).
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?)
23 To build and start, do the following steps:
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.)
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.
41 a - let AI decide move
52 l - toggle "look" mode, investigate map cells by moving a cursor over the map
53 instead of the player avatar
56 D - drop item selected in inventory
57 u - use item selected in inventory
59 UP - navigate upwards in Inventory
60 DOWN - navigate downwards in inventory
65 Once you start a new world, every move of yours is recorded in a file called
66 "record_save". It gets overwritten when a new game world is started after
67 deletion of the "save" 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 theactions
70 done at that point in the game as defined in the "record_save" file). Keys to
71 manage windows, scroll on the map and quit the program do their usual thing.
72 Append a number to the -s option (like "-s100") to start the recording at the
73 respective turn number.
75 Hacking / server internals and configuration
76 --------------------------------------------
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_save and
84 All source files are thoroughly documented to explain more details of
85 plomrogue's internals. The ./roguelike-server executable can be run with a -v
86 option for helpful debugging info (mostly: what messages the client sends to the
87 server). Server and client communicate via files in the ./server/ directory
88 (generated when the server is first run). The ./server/in file is read by the
89 server for newline-delimited commands. The ./server/out file contains server
90 messages to be read by clients. The ./server/worldstate file contains a
91 serialized representation of the game world's data as it is to be visible to
92 the player / the player's client.