Skip to content

yradunchev/glhacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

SUMMARY

Saves or loads glhack save state.

DESCRIPTION

You must save before in glhack for this to work.
You cannot use this script while glhack is running: glhack must be off for saving and loading!!!
Output save dir is created automatically first time the script is run.

INSTALLATION

Nethack dir, output save dir must and save separtor must be specified by modifying the variables sep, glhack_save_dir and glhack_state_dir at the beginning of the source code of this script.

If you do this after saving, old saves will be lost.

SAMPLE CALLS

First save glhack with S command.
While the game is quit use:

#saves state 1, and comes back to the game:
glhckcht s 1; glhack

#saves state "hard part":
glhckckt s "hard part"; glhack

To load a state, quit with #quit
While the game is quit do:

loads state 1, and comes back to the game:

glhckcht l 1; glhack

loads state "hard part":

glhckcht l "hard part"; glhack

When you start the game it should be back at last place.
TIP: hit up on the terminal to access terminal history after loading and saving to quickly load and save.

Based on original work of Ciro D. Santilli (https://github.com/cirosantilli/bash-cheat)

Releases

No releases published

Packages

No packages published

Languages