Developer Console
Balamod comes with a fully fledged developer console to play with, with some built in commands to help debugging.
Shortcuts
F1: Restart the gameF2: Toggle the console panel on/offF4: Toggle debug mode on/off
If the console is opened, you have access to the following shortcuts as well:
On Mac
Cmd + Shift + C: Copy all messages into the clipboardCmd + C: Copy the currently typed command to the clipboardCmd + V: Paste the contents of the clipboard into the command inputEscape: Close the console panelCmd + Backspace: Delete the console input lineCmd + right: Move text to the most recentCmd + left: Move text to the most ancientCmd + up: Move one page upCmd + down: Move one page downup: Go back one command in the historydown: Go forward one command in the historytab: Complete the current commandReturn: Submit the command to be run
On Windows / Linux
Ctrl + Shift + C: Copy all messages into the clipboardCtrl + C: Copy the currently typed command to the clipboardCtrl + V: Paste the contents of the clipboard into the command inputEscape: Close the console panelDel: Delete the console input lineEnd: Move text to the most recentHome: Move text to the most ancientPageUp: Move one page upPageDown: Move one page downup: Go back one command in the historydown: Go forward one command in the historytab: Complete the current commandReturn: Submit the command to be run
Built in commands
The balamod dev console comes with a number of built-in commands to help you troubleshoot common issues with your mod, or if you’re so inclined, to cheat in the game (if that’s your thing)
clear: clears the log output from the consolediscards <add|remove|set> <amount>: sets the amount of discards the player has.exit: exits the consolegive <item>: gives an item via its internal ID to the player. Example :give j_blueprinthands <add|remove|set> <amount>: sets the amount of hands the player has.help [command]: Prints all available commands with their descriptionshistory: prints the history of commandsinstallmod <url>: installs a mod via its URL, URL must point to a valid tarball.luamod <mod_id>: reloads the specified mod (disables and enables it, performs injections again, and runs itson_game_loadevent)luarun <code>: runs plain lua code in the context of the game. Must be a one-liner though, multiline input is not supportedmoney <add|remove|set> <amount>: Sets the amount of money the player has.sandbox: Loads the sandbox scene which can be used to debug the UIshortcuts: prints the shortcuts (as seen above) to the console output.
Logging information to the console
If you’re a mod developer, you may want to print informations to the console. To that effect, the console comes with a logging API. Log messages will be visible here, and are duplicated in the appropriate, timestamped log file in the logs/ directory in the balatro save directory.
Logging comes with 6 distinct log levels :
TRACE: for the most verbose messagesDEBUG: for debug messages, verbose but not too spammy eitherINFO: the default log level, for informative messages (displayed in blue)WARN: for warnings (displayed in orange)ERROR: for errors (displayed in red)PRINT: for messages you want printed to the console as is, without any extra metadata (such as logger name, timestamp or color)
Use the --log-level=TRACE command line argument when starting balatro (with balamod) to change the minimum level a message must be to be displayed in the console. The default log level is INFO.