Skip to content

Options

ME1312 edited this page Feb 22, 2023 · 25 revisions

This page goes over the Engine Options that you can set. Engine options can be modified by the app using the GalaxiOption class or at start-up using their respective -Dgalaxi system flags.

APPDATA_DIRECTORY

Default Value: (auto)
Type: File

This option defines the return value of Galaxi.getAppDataDirectory(), which is typically used to store files related to user data that the user doesn't need or shouldn't have direct access to. The default value platform-dependent, meaning that it will be different depending on which operating system you are using (thus, auto).

COLOR_LOG_LEVELS

Start-up Flag: -Dgalaxi.log.color_levels=
Default Value: true
Type: Boolean

This option enables/disables the automatic ansi coloring of the prefix on log messages. This setting only applies to the prefix; apps and plugins still have full control over the formatting of the messages themselves.

CONSOLE_WINDOW_SIZE

Start-up Flag: -Dgalaxi.console.scaling=
Default Value: (auto)
Type: Float

This option sets the scaling factor that Galaxi's console window will be rendered with. When left unset, the console window will automatically scale to fit your screen. Apps have no influence over this option.

ENABLE_RELOAD

Default Value: false
Type: Boolean

This option enables/disables the /reload command. This value defaults to false because it requires the app (and it's plugins) to listen for an extra event in order to be effective (GalaxiReloadEvent). This, however, does not prevent apps from running this event themselves.

LOG_DIRECTORY

Default Value: RUNTIME_DIRECTORY/Logs
Type: File

This option defines where the Galaxi logs will be placed. Despite using another option's value to construct the default, overriding APPLICATION_DIRECTORY alone will not change the value of LOG_DIRECTORY.

MAX_CONSOLE_WINDOW_SCROLLBACK

Start-up Flag: -Dgalaxi.console.max_scrollback=
Default Value: 15000
Type: Integer

This option sets how many log messages should be stored in memory for Galaxi's console window. This option has no effect when the console window is not visible.

PARSE_CONSOLE_VARIABLES

Start-up Flag: -Dgalaxi.console.parse_vars=
Default Value: false
Type: Boolean

This option defines whether or not the Galaxi console will parse both Environment Variables (%) and System Property Variables ($) upon submitting a command. When parsing for these variables is disabled they are treated literally and do not need to be escaped. See the Commands page for more information on using variables in commands.

RUNTIME_DIRECTORY

Start-up Flag: -Duser.dir=
Default Value: ./
Type: File

This option defines the return value of Galaxi.getRuntimeDirectory().

SHOW_CONSOLE_WINDOW

Start-up Flag: -Dgalaxi.console=
Default Value: (auto)
Type: Boolean

This option defines whether Galaxi should show the console window on GalaxiEngine.init(). The default value is true when Galaxi is run outside of a terminal on non-headless systems (thus, auto). It should be noted that the console window can be opened at any time regardless of this option's value using ConsoleCommandSender.openWindow().

SHOW_DEBUG_MESSAGES

Start-up Flag: -Dgalaxi.log.debug=
Default Value: false
Type: Boolean

This option defines whether the DEBUG log level is visible in both the console and log files.

USE_ANSI

Start-up Flag: -Dgalaxi.terminal.ansi=
Default Value: true
Type: Boolean

Changing this option signals to Galaxi that your terminal does not support ansi formatting. As such, it may correct some issues with formatting. This has no effect on Galaxi's own console window. Apps have no influence over this option.

USE_JLINE

Start-up Flag: -Dgalaxi.terminal.jline=
Default Value: true
Type: Boolean

Changing this option signals to Galaxi that your terminal does not support jline functionality. As such, it may correct some issues with formatting. This has no effect on Galaxi's own console window. Apps have no influence over this option.

USE_TERMINAL_INTERRUPTS

Start-up Flag: -Dgalaxi.terminal.interruptable=
Default Value: true
Type: Boolean

Changing this option signals to Galaxi that it should ignore CTRL+C and terminal interrupt signals while your app is running. These will be re-enabled while your application is shutting down, however.

USE_LOG_FILE

Start-up Flag: -Dgalaxi.log=
Default Value: true
Type: Boolean

This option defines whether or not Galaxi will write a log file. When this option is false, LOG_DIRECTORY may not be created.

USE_RAW_LOG

Start-up Flag: -Dgalaxi.log.raw=
Default Value: (auto)
Type: Boolean

This option defines whether or not Galaxi will write the log in HTML formatting or use the raw console output. This can be helpful for debugging because the HTML is only written after every new line character (\n). The default value is false unless Java detects you are running Galaxi on a headless operating system (thus, auto).