Early Roguelike Collection
Find a file
John "Elwin" Edwards 46568d24a4 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.
2014-01-06 15:57:17 -05:00
arogue5 arogue5: fix some save/restore-related crashes. 2014-01-06 15:57:17 -05:00
rogue3 Update some of the documentation. 2013-09-04 09:01:44 -07:00
rogue4 rogue4: don't include config.h if it wasn't created. 2013-09-09 07:58:47 -04:00
rogue5 Add config.h to the list of headers in the Makefiles. 2013-09-03 14:14:48 -07:00
srogue Rename daemon() to start_daemon(). 2013-09-07 08:08:00 -04:00
README.txt Update some of the documentation. 2013-09-04 09:01:44 -07:00

This is the source for the Roguelike Gallery's versions of Rogue and other
early roguelike games.

The code was obtained from the Roguelike Restoration Project
(rogue.rogueforge.net).  Modifications have been made mainly for compatibility
with the dgamelaunch online play system.  Some bugs have also been fixed, and
the build process slightly improved.  The essential flavor of a codebase half
as old as stored-program computing machinery remains unchanged.

To install on Unix:

If you checked out the source from Mercurial, run 'autoreconf' first.

Build by running './configure' and then 'make'.  If you just want to play the 
game from your own user account, 'configure' won't need any options.  The 
games will keep the high score lists in whatever directory you run them from.

For a multi-user installation, you will need to set the '--enable-setgid',
'--enable-savedir', '--enable-scorefile', and '--enable-logfile' options.  Run
'make install' after building.

There are other possible options; run './configure --help' for a full list.

To install on Windows:

Use the included Visual Studio solution files.  Warning: they have not been 
tested recently.

See the individual games' subdirectories for further documentation.  Some of 
the manpages may be outdated, but the guides to playing should be accurate.

The games can be played via SSH or the Web at rlgallery.org.

Bugs:

The original authors claimed that the list of bugs was "probably infinite".  If 
you encounter one of these, please report it on the bug tracker at 
https://bitbucket.org/ElwinR/rl.