Personal scripts for the Grey Hack game. Still on early stage.
- The
try
function: https://github.com/ftzi/grey-hack/blob/main/root/try.src - The compiler. It compiles your entry file and its imported files automatically. Supports watch mode, execute after build, automated tests, and an importable function to make your programs self-compile with the latest source when executed.
- Automatic upload of the changed source files to the game while you use your favorite IDE. See
package.json
andwatch.ts
. Note that by choice, I don't use Greybel's build system, only its raw upload.
- Install BepInEx 5.x.x: https://github.com/ayecue/greybel-vs#message-hook
- Clone this repo.
- Have node installed. Bun, as an alternative, didn't work here with Greybel.
- Run
npm i
- Run the game.
- Run
npm start
. All the files will be uploaded to the game and also any changes done to them.
- Run
sudo -s
and enter your password. - Run
build c.src /root
to build the compilation tool. - Run
c
to build all the source files in the current directory (/root
) and their required libraries. - Run
setup home
to secure your home computer and setup the auto-root Terminal on startup.
- You can run the program
clean
to remove all the source files and executables in/root
and related subdirectories. Then you can runnpm start
in your real terminal to upload them again.
- The VS Code extension https://github.com/ayecue/greybel-vs is recommended for syntax highlight.