jak-project/goal_src/user
Tyler Wilding a0a85eb60a
repl: Add a few new quality of life improvements (#2030)
- You can define a `startup.gc` in your user folder, each line will be
executed on startup (deprecates the usefulness of some cli flags)
- You can define a `repl-config.json` file to override REPL settings.
Long-term this is a better approach than a bunch of CLI flags as well
- Via this, you can override the amount of time the repl will attempt to
listen for the target
- At the same time, I think i may have found why on Windows it can
sometimes take forever to timeout when the game dies, will dig into this
later
- Added some keybinds for common operations, shown here


https://user-images.githubusercontent.com/13153231/202890278-1ff2bb06-dddf-4bde-9178-aa0883799167.mp4
> builds the game, connects to it, attaches a debugger and continues,
launches it, gets the backtrace, stops the target -- all with only
keybinds.

If you want these keybinds to work inside VSCode's integrated terminal,
you need to add the following to your settings file
```json
"terminal.integrated.commandsToSkipShell": [
    "-workbench.action.quickOpen",
    "-workbench.action.quickOpenView"
  ]
```
2022-11-20 14:28:41 -05:00
..
.gitignore repl: Add a few new quality of life improvements (#2030) 2022-11-20 14:28:41 -05:00
readme.md repl: Add a few new quality of life improvements (#2030) 2022-11-20 14:28:41 -05:00

This directory holds the user profiles.

To make your own profile, create a new directory here with your username. e.g. for username mark make a directory called mark Inside that directory, create user.gs and user.gc files. These are your own user scripts, loaded after the GOOS library and GOAL library respectively.

The rest of the directory can be used however you please!

To automatically log in as a specific user, create a user.txt file in this directory which contains just the username you want to log in as. That way you don't have to modify multiple scripts when you want to change users.

If you want to make your profile public, edit the .gitignore in this directory.

Additionally, you can provide a repl-config.json to set various REPL settings:

  • numConnectToTargetAttempts - the number of times the REPL will attempt to connect to the target on an (lt)

And a startup.gc where each line will be executed upon startup