[net.games.rogue] Cheating Utility

bryan@utep-vaxa.UUCP (Bryan R. Davies) (04/01/85)

Expires:
References:
Sender:
Keywords:


*** REPLACE THIS LINE WITH YOURSELF ***
   (and then mail yourself to Hawaii)

What follows is a shell archive containing a program set that will
allow you to easily exit a rogue game, play a buffer game, and then
return knowing more about that particular game.  It generates three
files:  README, cheat, and cheat.script1, so make sure there are not
any files with those names in the directory that you sh the file.

# This is a shell archive.  Remove anything before this line, then
# unpack it by saving it in a file and typing "sh file".  (Files
# unpacked will be owned by you and have proper permissions.
#
# This archive contains:
# README cheat cheat.script1
echo x - README
cat > README << '//E*O*FREADME//'
     The program enclosed allows you to save your  current  rogue  game,
enter  a  "buffer"  game,  find  out ahead of time information, and then
return to your previous rogue game at the point  that  you  left.   Note
that the score you get in that game WILL BE SAVED.


                              INSTALLATION

    1.  Extract the files from the shell archive.
        (you already have done this)

    2.  <optional> Change your ROGUEOPTS variable to include
        the text "file=yarn".  This sets the default save file
        name to yarn.

    3.  If you have the "cheat" program in other than your home
        directory, change line 5 of "cheat" to reflect this fact.
	(You should check this line, anyway, to make sure it's right)



                               INVOCATION

    Once "cheat" has been installed, use the following to invoke it:

    1.  Make sure your save file name is "yarn".  This is necessary
        for "cheat" to work.

    2.  Execute "cheat" by typing its name if your have the directory
        in which it resides included as part of your $PATH, or use the
        full pathname to execute it.  The shell archive presets the
        mode of this program to executable.

    3.  "Cheat" puts you in a buffer game, which you can play for a bit
        to discover nice to know facts about the current game.  You can:
        a.  Read all scrolls and record what they were...
        b.  Quaff all potions and record what they were...
        c.  Explore and find out what is around...
        d.  Hit a monster and see if you will die by doing so...
        e.  Etc...

    4.  Exit the buffer game either by dying or by quitting.
        ***** DO NOT SAVE THE BUFFER GAME *****
        While saving the buffer game will not destroy your current game,
        it will put an extra file in your directory.

    5.  Continue playing your previous game.  "Cheat" automatically
        returns you to your game, you need type nothing to resume.



                            ADDITIONAL NOTES

    1.  This method is not totally without problems, perhaps because
	there is something strange about the way rogue handles its
	saved games.  There is no reason a prefectly untouched save
	file should bomb, but sometimes it does.  Thus, use this program
	at your own risk; if you lose a particularly good game, don't
	flame me!  YOU are the one who was cheating!

    2.  I do not approve of using this program to boost your own score
	while carefully hiding its existence from other people.
	Everyone should have a fair chance of cheating equally
	(that sounds kind of strange), so share this with other users.

    3.  If you discover a bug, or make an improvement, MAIL me at the
	below address.  If you just want to flame me for this, then
	route the mail through /dev/null. (:-))

    4.  Don't assume that this works on your system.
	Try it a couple of times.


******************************************************************************
"Welcome to the machine."            Bryan R. Davies
             (Pink Floyd)            ihnp4!ut-sally!utep!bryan
******************************************************************************
//E*O*FREADME//
echo x - cheat
cat > cheat << '//E*O*Fcheat//'
#! /bin/sh
echo 'Be sure to QUIT (do not save) the game I am putting you in.'
rm -f yarn1 yarn2
cp yarn yarn1
rogue yarn < $HOME/cheat.script1 > /dev/null
cp yarn1 yarn
rogue yarn
echo '*** Returning you to your game ***'
rm -f yarn1
rogue yarn2
//E*O*Fcheat//
echo x - cheat.script1
cat > cheat.script1 << '//E*O*Fcheat.script1//'
o








yarn2
Sy
//E*O*Fcheat.script1//
chmod +x cheat
-- 

"Welcome to the machine."            Bryan R. Davies
             (Pink Floyd)            ihnp4!ut-sally!utep!bryan