Archive for the tag 'nethack'

Cheating At Nethack

I’m not really a gamer, I think this has to do with a lack of skill, its no fun playing Americas Army if you die in 30 seconds, and yes they have a Linux installer. One game that I do come back to every now and then is nethack, however just like Americas Army I still die every 30 seconds. My solution … cheat. I use two simple shell scripts (backup.sh and restore.sh) to cheat.

How to cheat

  1. Save backup.sh and restore.sh in /var/games
  2. Play nethack I use nethack-gnome
  3. When you get to a spot you want to save, save and exit <ctrl + s>
  4. Using a terminal navigate to /var/games and run sudo sh backup.sh
  5. Reload nethack and continue to play
  6. If you die or need to reload your save point exit nethack navigate to /var/games and run sudo sh restore.sh then run nethack again

backup.sh
[sourcecode language="jscript"]
rm -rf nethack.bak
cp -ra nethack nethack.bak
[/sourcecode]

restore.sh
[sourcecode language="jscript"]
rm -rf nethack
cp -ra nethack.bak nethack
[/sourcecode]

It would be really great if someone created a version of nethack-gnome with cheating built right in.