
SimpleMacros
Assign keyboard shortcuts and add in-game buttons for interaction with other mods through console commands.Details
NEWS: New dependencies, configuration format & In-game configuration
Check out a list of required dependencies below.
Configuration format has changed, but existing configuration files should be automatically upgraded without your intervention.
From now on, you can also configure your macros in-game using new BepInEx ConfigurationManager.
SimpleMacros
SimpleMacros was created to give you a better way of interacting with mods that can only be controlled through console commands.
Features
- Custom commands
- Custom triggers
- In-game menu (shown on the right)
- Keyboard shortcuts
- Run your commands multiple times
Especially recommended when using:
Screenshots
Dependencies
Instructions
- Install SimpleMacros by placing .dll files in the
BepInEx\plugins
folder or use your favorite mod manager - Run the game, this will create the configuration file
Configuration
There are 2 ways of configuring this mod, either through the configuration file as described below or
by using BepInEx.ConfigurationManager
in-game UI (which is much easier to work with).
- Open this file in a text editor:
BepInEx\config\local.recursiveGecko.ror2.SimpleMacros.cfg
- Add your commands, following the syntax described below
- Click
Reload config
Configuration
Above your macro definitions, you can set a shortcut to toggle the visibility of the in-game menu: toggle_menu_shortcut=F11
The configuration file can contain any number of macros, each one defined like this:
[macro_1571601976592]
Name = Toggle God Mode
Command = god
Repeat = 1
Shortcut = G + LeftShift
macro_1571601976592
: Defines a new macro config, must be unique and begin with macro_
Name
: Name of your macro (displayed on in-game buttons)
Command
: Command to run
Shortcut
: Shortcut for this macro. Here is a list of available keys.
Set it to Shortcut =
(nothing on the right side) if you don't want a shortcut attached to this macro.
Repeat
: How many times to execute this command when the macro is triggered.
After running the game, Actions
option will appear in the config file as well, you can safely ignore it.
Full example
[Core]
ToggleMenuShortcut = F11
## DO NOT CHANGE
ConfigVersion = 2
[macro_1571601976592]
Name = Toggle God Mode
Command = god
Repeat = 1
Shortcut = G + LeftShift
[macro_1571602027563]
Name = Spawn 50 wisps
Command = spawn_ai wisp
Repeat = 50
Shortcut = F2
[macro_1571602027564]
Name = Respawn as huntress
Command = spawn_as huntress
Repeat = 1
Shortcut =
[macro_1571602027565]
Name = Kill all enemies
Command = kill_all
Repeat = 1
Shortcut =
Bug reports & Feature requests
Please contact me (@recursiveGecko#4474) on Discord
in #tech-support
or create an issue here.
If you're reporting a bug, make sure to describe what happened, include your configuration file and logs.
Changelog
v2.0.0 - Change configuration format, add integration with BepInEx5 ConfigurationManager to allow in-game configuration
v1.2.0 - Add console command output window, redesign
v1.1.0 - Bump version, edit mod README
v1.0.2 - Only show in-game menu when mouse cursor is available (Game is paused or Tab is being held)
v1.0.1 - Remove stray config file from .zip and update mod description
v1.0.0 - Initial release
Credits
Icon made by Becris