Mercurial > hg > early-roguelike
view README.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 | 65f3da34578a |
line wrap: on
line source
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.