Personal scripts for the Grey Hack game. Still on early stage.
- The
tryfunction: 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.jsonandwatch.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 -sand enter your password. - Run
build c.src /rootto build the compilation tool. - Run
cto build all the source files in the current directory (/root) and their required libraries. - Run
setup hometo secure your home computer and setup the auto-root Terminal on startup.
- You can run the program
cleanto remove all the source files and executables in/rootand related subdirectories. Then you can runnpm startin your real terminal to upload them again.
- The VS Code extension https://github.com/ayecue/greybel-vs is recommended for syntax highlight.