Mercurial > hg > early-roguelike
view rogue4/INSTALL.txt @ 110:5f51f7d9805f
arogue5: fix some save/restore-related crashes.
The save/restore code took the pointer intended as an argument for the
doctor() daemon and wrote it to the savefile as an int. I don't know
why it took so long to fail horribly. The problem has been avoided by
replacing the value with &player when restoring. That seems to be the
only argument ever actually used.
The code also writes only four bytes for an unsigned long; if
sizeof(long) == 8, it casts to unsigned int first. It failed to do the
cast when reading back, with the result that four bytes were read and
the other half of the number was effectively uninitialized.
It apparently works now, but the save/restore code ought still to be
regarded as decidedly unfortunate.
author | John "Elwin" Edwards |
---|---|
date | Mon, 06 Jan 2014 15:57:17 -0500 |
parents | c191a735f811 |
children |
line wrap: on
line source
Roguelike Gallery (rlgallery.org) This is the source code for the Roguelike Gallery's version of Rogue V4. History Rogue 4.2 was released by Michael Toy, Ken Arnold, and Glenn Wichman, probably early in 1982. Several updates were issued, and the major version number was incremented, so the last of the series was Rogue 5.2, released April 1982. The Roguelike Restoration Project (rogue.rogueforge.net) updated the game to work on modern systems. The Roguelike Gallery's version has been slightly modified for compatibility with dgamelaunch and security for multiple players. Installing On Unix, you can use the "./configure && make && make install" method. If you don't need a system-wide installation, you should be able to ignore all the options for "configure" and leave off the "make install". If you want multi-user play, run configure with the proper options ("configure --help" will explain what they do.) The important ones are savedir (where saved games are stored), scorefile (the high score list), and logfile (the log of all games played). You should probably also use '--enable-setgid=games' and '--disable-lockfile'. On Windows, I haven't tested the Visual Studio project files; the game should build, but the scorefile might not work. Playing For more details, see rogue4.6 (the man page) and rogue4.me (Michael Toy's "Guide to the Dungeons of Doom"). Troff format is a little outdated, but you should be able to discover something with a text editor. I plan to add versions in more common formats soon. Contact rlgallery.org admin: John "Elwin" Edwards <elwin@sdf.org>