Skip to content

Using the Console

SlimeCubed edited this page Jul 9, 2021 · 3 revisions

Opening the console

The console can be opened by pressing backtick (`). Most of the time this is on the same key as the tilde (~). Afterwards, it may be closed by pressing the same key or escape.

Typing and running commands

Commands in the console are split into arguments separated by whitespace. The first argument is the name, but the rest change meaning based on the command. If you need an argument to contain whitespace, it may be surrounded in double quotes ("). If you need quotes inside of a quote, they may be escaped with a backslash before them (e.g. "abc \" 123"). Backslashes may be escaped in the same way.

Some keys have special functions:

  • Enter - Run the current command
  • Backspace - Delete the last character entered
  • Ctrl+Backspace - Delete the last word entered
  • Tab - Autocomplete the current argument
  • Up Arrow/Down Arrow - Cycle through autocompletion options
  • Ctrl+Up Arrow/Down Arrow - Cycle through previously input commands
  • Ctrl+V - Paste clipboard text into the console

Rain World's built-in font only includes what it has to, so there are many symbols that it's missing, such as equals signs (=). Typing these characters will work, they will just be invisible in the console. Running font devconsolas will switch the console to a different font that includes many more symbols. You can set this as the default font in Dev Console's Config Machine interface.

Running commands on startup

Some commands, such as alias or bind, may be convenient to run immediately upon startup. To do this, create a file called devConsoleStartup.txt in the Rain World folder. This file will be read shortly after the game starts and is executed line-by-line. Blank lines or lines starting with // will be ignored, so they may be used for formatting.

Clone this wiki locally